eris
eris copied to clipboard
Guild Scheduled Events
Discord is implementing Scheduled Guild Events
(discord/discord-api-docs#3586). This pull request is a start in order to implement this new feature.
New Events
-
GUILD_SCHEDULED_EVENT_CREATE
(guildScheduledEventCreate) -
GUILD_SCHEDULED_EVENT_UPDATE
(guildScheduledEventUpdate) -
GUILD_SCHEDULED_EVENT_DELETE
(guildScheduledEventDelete) -
GUILD_SCHEDULED_EVENT_USER_ADD
(guildScheduledEventUserAdd) -
GUILD_SCHEDULED_EVENT_USER_REMOVE
(guildScheduledEventUserRemove)
Additions
-
GuildEvent
-
Client#guildEventMap
-
Client#createGuildEvent()
-
Client#deleteGuildEvent()
-
Client#editGuildEvent()
-
Client#getRESTGuildEvent()
-
Guild#events
TODO
- [x] Document new Client, Guild and GuildEvent methods
- [x]
GUILD_SCHEDULED_EVENT_USER_ADD
(Gateway Event) - [x]
GUILD_SCHEDULED_EVENT_USER_REMOVE
(Gateway Event)
ooo this sounds cool
you need to put the
manageEvents
permission in the right place (aftervoiceRequestToSpeak
) in the types, and add the permission to bothallGuild
(should be: 10670833854n) andall
(should be: 154618822655n)I would make the suggestion but github won't let me select those lines
Done, let me know if anything else
Discord just made this go live so if everything is ready you should mark it as open rather then draft uwu
There's been no official confirmation from Discord whether bots are able to use this yet. Leaving this as draft until then
Last comment made was "not too long", but still no actual ETA
Looks like they've documented it
https://github.com/discord/discord-api-docs/commit/1298152172d3359abf069d1b24d4bbc85532b735
We're aware, we're holding off PR merges temporarily
[TODO] Guild methods Add List Scheduled Events for Guild Add Get Guild Scheduled Event Reivew Get Guild Scheduled Event Users Read https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-status-update-automation
Testing required for this please