DiscordPHP icon indicating copy to clipboard operation
DiscordPHP copied to clipboard

Add support for creating scheduled events.

Open halid96 opened this issue 3 years ago • 1 comments

halid96 avatar Aug 09 '22 23:08 halid96

Already exists...

$scheduledEvent = new ScheduledEvent($discord, [...]);

$guild->guild_scheduled_events->save($scheduledEvent);

SQKo avatar Aug 09 '22 23:08 SQKo

Already exists...

$scheduledEvent = new ScheduledEvent($discord, [...]);

$guild->guild_scheduled_events->save($scheduledEvent);

But how to use this code? There is no proper documentation.

halid96 avatar Aug 29 '22 07:08 halid96

Looking for https://discord.com/developers/docs/resources/guild-scheduled-event#create-guild-scheduled-event ?

key2peace avatar Aug 29 '22 14:08 key2peace

Looking for https://discord.com/developers/docs/resources/guild-scheduled-event#create-guild-scheduled-event ?

Yes. I used the Discord API. But I wanted to do it using this library. That's OK, thank you for the info.

halid96 avatar Aug 29 '22 16:08 halid96

well, what I mean with that link is that it shows you what array you need to place in $scheduledEvent = new ScheduledEvent($discord, [<here>]);

key2peace avatar Aug 29 '22 17:08 key2peace