-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document Guild Scheduled Event structure and HTTP methods #3586
Conversation
Co-authored-by: Lala Sabathil <[email protected]>
Co-authored-by: Lala Sabathil <[email protected]>
Eventually, you will be able to set up events that arnt tied to a stage, so I don't think stage instance is the correct place for this. |
The endpoint for deleting and patching an event is |
Yeah seems like this |
Co-authored-by: Jupith <[email protected]>
Yeah, I noticed |
guild/:id/events
methods
Thank you everyone for the reviews. I will mark this as a draft again and will try to get to these as soon as possible. |
| approximate_member_count? | integer | approximate count of total members, returned from the `GET /invites/<code>` endpoint when `with_counts` is `true` | | ||
| expires_at? | ?ISO8601 timestamp | the expiration date of this invite, returned from the `GET /invites/<code>` endpoint when `with_expiration` is `true` | | ||
| stage_instance? | [invite stage instance](#DOCS_RESOURCES_INVITE/invite-stage-instance-object) object | stage instance data if there is a [public Stage instance](#DOCS_RESOURCES_STAGE_INSTANCE) in the Stage channel this invite is for | | ||
| guild_scheduled_event? | [guild scheduled event](#DOCS_RESOURCES_GUILD_SCHEDULED_EVENT/guild-scheduled-event-object) object | guild scheduled event data, only included if `guild_scheduled_event_id` contains a valid guild scheduled event id | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| guild_scheduled_event? | [guild scheduled event](#DOCS_RESOURCES_GUILD_SCHEDULED_EVENT/guild-scheduled-event-object) object | guild scheduled event data, only included if `guild_scheduled_event_id` contains a valid guild scheduled event id | | |
| guild_scheduled_event? | [guild scheduled event](#DOCS_RESOURCES_GUILD_SCHEDULED_EVENT/guild-scheduled-event-object) object | guild scheduled event data, only included if `guild_scheduled_event_id` contains a valid guild scheduled event ID | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More consistency requests similar to @Vitorlops
Wanted to double check what the final decision on images was today before responding on this thread re. images. We currently won't be supporting images for this initial launch. I'm going to remove all mentions of images from the docs so that they can be re-added later if support for images is added. Thanks for submitting this change, I think we can hold off on this until we add image support later. |
I'm gonna close it for now then. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really awesome work, thank you to @apacheli and everyone else that contributed to this PR!
@hemu docs contributor badge when xD joking Yeah, that was good work. |
thank you for being so involved and helping document this :) |
Anytime! |
@hemu bots are still not able to use the events api right? |
@Lulalaby I also still cannot use a bot to interact with these endpoints. Previously I was getting an error message saying something like 'Not supported', because at that time bots were blocked. However @hemu announced that was lifted a little bit ago, only now the error has slightly changed to 'Missing access'. Any advice? |
No it's still blocked. |
@Lulalaby Thank you for the update 👍 |
You can use the api with bots just now if you send the x-super-properties header |
I don't think this is true... |
It is true! @hemu - there looks to be some experiment gating based on client version in the x-super-properties header that is causing these woes. |
welp |
Yep we've been debugging this to pinpoint the best way to fix this without breaking the experiment. It's def the experiment gating.
GREAT CATCH. Pretty awesome that you figured this out |
this should be fixed now. sorry about the additional headaches. still awesome that ya'll figured out the X-Super-Properties header workaround |
Thanks @hemu, works now! |
This PR adds documentation for the upcoming guild scheduled event feature.
/guilds/{guild.id}/scheduled-events
/guilds/{guild.id}/scheduled-events/{guild_scheduled_event.id}
/guilds/{guild.id}/scheduled-events/{guild_scheduled_event.id}/users
/guild-events/*
and/guilds/{guild.id}/events
were previously available, but they are now deprecated in favor of the new endpoints listed above.MANAGE_EVENTS
permissionGUILD_SCHEDULED_EVENT_CREATE
GUILD_SCHEDULED_EVENT_UPDATE
GUILD_SCHEDULED_EVENT_DELETE
GUILD_SCHEDULED_EVENT_CREATE
GUILD_SCHEDULED_EVENT_UPDATE
GUILD_SCHEDULED_EVENT_DELETE
GUILD_SCHEDULED_EVENT_USER_ADD
GUILD_SCHEDULED_EVENT_USER_REMOVE
GUILD_SCHEDULED_EVENT_USER_CREATE
andGUILD_SCHEDULED_EVENT_USER_DELETE
are now deprecated.guild_scheduled_event_id