eris icon indicating copy to clipboard operation
eris copied to clipboard

Guild Scheduled Events

Open Loliticos opened this issue 3 years ago • 9 comments

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)

Loliticos avatar Sep 06 '21 04:09 Loliticos

ooo this sounds cool

JustCat80 avatar Sep 06 '21 04:09 JustCat80

you need to put the manageEvents permission in the right place (after voiceRequestToSpeak) in the types, and add the permission to both allGuild (should be: 10670833854n) and all (should be: 154618822655n)

I would make the suggestion but github won't let me select those lines

Done, let me know if anything else

Loliticos avatar Oct 07 '21 12:10 Loliticos

Discord just made this go live so if everything is ready you should mark it as open rather then draft uwu

JustCat80 avatar Nov 13 '21 07:11 JustCat80

There's been no official confirmation from Discord whether bots are able to use this yet. Leaving this as draft until then

bsian03 avatar Nov 13 '21 10:11 bsian03

Last comment made was "not too long", but still no actual ETA

bsian03 avatar Nov 13 '21 10:11 bsian03

Looks like they've documented it

https://github.com/discord/discord-api-docs/commit/1298152172d3359abf069d1b24d4bbc85532b735

JustCat80 avatar Nov 16 '21 14:11 JustCat80

We're aware, we're holding off PR merges temporarily

bsian03 avatar Nov 16 '21 14:11 bsian03

[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

bsian03 avatar Apr 13 '22 01:04 bsian03

Testing required for this please

bsian03 avatar Apr 13 '22 14:04 bsian03