Class Routes
Route object definitions.- Since:
- 3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Routestatic final Routestatic final Routestatic final Routestatic final RouteCreate a new emoji for the application.static final RouteDelete the given emoji.static final RouteReturns an emoji object for the given application and emoji IDs.static final RouteModify the given emoji.static final RouteReturns an object containing a list of emoji objects for the given application under the items key.static final RouteReturns the bot's OAuth2 application info.static final Routestatic final RouteReturns a list of application role connection metadata objects for the given application.static final RouteUpdates and returns a list of application role connection metadata objects for the given application.static final RouteReturns an audit log object for the guild.static final Routestatic final RouteCreate a new rule.static final RouteDelete a rule.static final RouteGet a single rule.static final RouteModify an existing rule.static final RouteGet a list of all rules currently configured for guild.static final StringThe base URL for all API requests.static final RouteDelete a guild channel, or close a private message.static final RouteGet a channel by ID.static final RouteCreate a new invite object for the channel.static final RouteReturns a list of invite objects (with invite metadata) for the channel.static final RouteUpdate a channels settings.static final RouteUpdate a channels settings.static final RouteDelete a channel permission overwrite for a user or role in a channel.static final RouteEdit the channel permission overwrites for a user or role in a channel.static final RouteCreate a new webhook.static final RouteReturns a list of channel webhook objects.static final RouteFor One-Time Purchase consumable SKUs, marks a given entitlement for the user as consumed.static final RouteCreate a new soundboard sound for the guild.static final Routestatic final RouteCreates a test entitlement for a given application.static final RouteCrosspost a Message into all guilds what follow the news channel indicated.static final RouteModifies the current member in a guild.static final RouteReturns the user object of the requester's account.static final RouteReturns a guild member object for the current user.static final RouteReturns a list of partial guild objects the current user is a member of.static final RouteModify the requester's user account settings.static final RouteDelete the given soundboard sound.static final Routestatic final RouteDeletes a test entitlement for a given application.static final RouteRequest to end a poll early.static final RouteFollow a News Channel to send messages to a target channel.static final RouteReturns an object with the same information as Get Gateway, plus a shards key, containing the recommended number of shards to connect with (as an integer).static final RouteReturns an object with a single valid WSS URL, which the client can use as a basis for Connecting.static final RouteReturns a soundboard sound object for the given sound id.static final RouteGet a subscription by its ID.static final Routestatic final Routestatic final Routestatic final Routestatic final Routestatic final Routestatic final Routestatic final Routestatic final RouteCreate a new group DM channel with multiple users.static final RouteAdds a recipient to a Group DM using their access token.static final RouteRemoves a recipient from a Group DM.static final Routestatic final Routestatic final Routestatic final Routestatic final Routestatic final Routestatic final Routestatic final RouteBan up to 200 users from a guild, and optionally delete previous messages sent by the banned users.static final RouteCreate a guild ban, and optionally delete previous messages sent by the banned user.static final RouteReturns a ban object for the given user or a 404 not found if the ban cannot be found.static final RouteRemove the ban for a user.static final RouteReturns a list of ban objects for the users banned from this guild.static final RouteCreate a new channel object for the guild.static final RouteModify the positions of a set of role objects for the guild.static final RouteReturns a list of guild channel objects.static final RouteCreate a new guild.static final RouteDelete a guild permanently.static final RouteCreate a new emoji for the guild.static final RouteDelete the given emoji.static final RouteReturns an emoji object for the given guild and emoji IDs.static final RouteModify the given emoji.static final RouteReturns a list of emoji objects for the given guild.static final RouteReturns the guild object for the given id.static final RouteAttach an integration object from the current user to the guild.static final RouteDelete the attached integration object for the guild.static final RouteModify the behavior and settings of a integration object for the guild.static final RouteSync an integration.static final RouteReturns a list of integration objects for the guild.static final RouteReturns a list of invite objects (with invite metadata) for the guild.static final RouteLeave a guild.static final RouteAdds a user to the guild, provided you have a valid oauth2 access token for the user with the guilds.join scope.static final RouteReturns a guild member object for the specified user.static final RouteModify attributes of a guild member.static final RouteRemove a member from a guild.static final RouteAdds a role to a guild member.static final RouteRemoves a role from a guild member.static final RouteReturns a list of guild member objects that are members of the guild.static final RouteModify a guild's settings.static final RouteReturns the Onboarding object for the guild.static final RouteModifies the onboarding configuration of the guild.static final RouteReturns the guild preview object.static final RouteBegin a prune operation.static final RouteReturns an object with one 'pruned' key indicating the number of members that would be removed in a prune operation.static final RouteCreate a new role for the guild.static final RouteDelete a guild role.static final RouteReturns a role object for the specified role id.static final RouteModify a guild role.static final RouteModify the positions of a set of role objects for the guild.static final RouteReturns a list of role objects for the guild.static final RouteCreates a guild scheduled event for the given guild.static final RouteDeletes a scheduled event for the given guild.static final RouteReturns a scheduled event for the given guild.static final RouteModifies a scheduled event for the given guild.static final RouteReturns a list of users RSVP'd to the scheduled event for the given guild.static final RouteReturns a list of all scheduled events for a guild.static final RouteCreate a new sticker for the guild.static final RouteDelete the given sticker.static final RouteReturns a sticker object for the given guild and sticker IDs.static final RouteModify the given sticker.static final RouteReturns an array of sticker objects for the given guild.static final RouteCreates a template for the guild.static final RouteDeletes the template.static final RouteGet a template.static final RouteReturns an array of template objects.static final RouteModifies the template's metadata.static final RouteSyncs the template to the guild's current state.static final RouteReturns a list of voice region objects for the guild.static final RouteReturns a list of guild webhook objects.static final RouteReturns the guild widget object.static final RouteModify a guild widget object for the guild.static final Routestatic final RouteAccept an invite.static final RouteDelete an invite.static final RouteReturns an invite object for the given code.static final Routestatic final Routestatic final Routestatic final RouteReturns an array of soundboard sound objects that can be used by all users.static final RouteReturns a list of entitlements for a given application.static final RouteReturns a list of the guild's soundboard sounds.static final Routestatic final Routestatic final Routestatic final RouteReturns all subscriptions containing the SKU, filtered by user.static final RouteReturns a list of SKUs for a given application.static final Routestatic final RoutePost a message to a guild text or DM channel.static final RouteDelete a message.static final RouteDelete multiple messages in a single request.static final RouteEdit a previously sent message.static final RouteReturns a specific message in the channel.static final RouteReturns the messages for a channel.static final RoutePin a message in a channel.static final RouteDelete a pinned message in a channel.static final RouteReturns all pinned messages in the channel as an array of message objects.static final RouteModify the given soundboard sound.static final Routestatic final RouteReturns the specified user's voice state in the guild.static final RouteUpdates another user's voice state.static final RouteReturns a list of users that voted for the given `answer_id` in the poll for the given message represented by its `message.id` and `channel.id`.static final RouteCreate a reaction for the message.static final RouteDeletes all the reactions for a given emoji on a message.static final RouteDelete a reaction the current user has made for the message.static final RouteDeletes another user's reaction.static final RouteDeletes all reactions on a message.static final RouteGet a list of users that reacted with this emoji.static final Routestatic final RouteReturns a list of guild member objects whose username or nickname starts with a provided string.static final RouteReturns the current user's voice state in the guild.static final RouteUpdates the current user's voice state.static final RouteSend a soundboard sound to a voice channel the user is connected to.static final Routestatic final Routestatic final Routestatic final RouteReturns a sticker object for the given sticker ID.static final RouteReturns a sticker pack object for the given sticker pack ID.static final RouteReturns the list of available sticker packs.static final RouteCreate a new guild from template.static final Routestatic final Routestatic final RoutePost a typing indicator for the specified channel.static final RouteReturns the application role connection for the user.static final RouteUpdates and returns the application role connection for the user.static final RouteReturns a list of connection objects.static final RouteCreate a new DM channel with a user.static final RouteReturns a user object for a given user ID.static final RouteReturns an array of voice region objects that can be used when creating servers.static final RouteDelete a webhook permanently.static final RouteThis endpoint supports both JSON and form data bodies.static final Routestatic final Routestatic final RouteReturns the new webhook object for the given id.static final Routestatic final Routestatic final Routestatic final RouteModify a webhook.static final RouteSame as above, except this call does not require authentication.static final RouteSame asWEBHOOK_GET, except this call does not require authentication and returns no user in the webhook object.static final RouteSame asWEBHOOK_MODIFY, except this call does not require authentication and returns no user in the webhook object. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
BASE_URL
The base URL for all API requests. -
GATEWAY_GET
Returns an object with a single valid WSS URL, which the client can use as a basis for Connecting. Clients should cache this value and only call this endpoint to retrieve a new URL if they are unable to properly establish a connection using the cached version of the URL. -
GATEWAY_BOT_GET
Returns an object with the same information as Get Gateway, plus a shards key, containing the recommended number of shards to connect with (as an integer). Bots that want to dynamically/automatically spawn shard processes should use this endpoint to determine the number of processes to run. This route should be called once when starting up numerous shards, with the response being cached and passed to all sub-shards/processes. Unlike the Get Gateway, this route should not be cached for extended periods of time as the value is not guaranteed to be the same per-call, and changes as the bot joins/leaves guilds. -
AUDIT_LOG_GET
Returns an audit log object for the guild. Requires the 'VIEW_AUDIT_LOG' permission. -
AUTO_MOD_RULES_GET
Get a list of all rules currently configured for guild. Returns a list of auto moderation rule objects for the given guild. Requires the 'MANAGE_GUILD' permission. -
AUTO_MOD_RULE_GET
Get a single rule. Returns an auto moderation rule object. Requires the 'MANAGE_GUILD' permission. -
AUTO_MOD_RULE_CREATE
Create a new rule. Returns an auto moderation rule on success. Requires the 'MANAGE_GUILD' permission. -
AUTO_MOD_RULE_MODIFY
Modify an existing rule. Returns an auto moderation rule on success. Requires the 'MANAGE_GUILD' permission. -
AUTO_MOD_RULE_DELETE
Delete a rule. Returns a 204 on success. Requires the 'MANAGE_GUILD' permission. -
CHANNEL_GET
Get a channel by ID. Returns a guild channel or dm channel object. -
CHANNEL_MODIFY
Update a channels settings. Requires the 'MANAGE_CHANNELS' permission for the guild. Returns a guild channel on success, and a 400 BAD REQUEST on invalid parameters. Fires a Channel Update Gateway event. -
CHANNEL_MODIFY_PARTIAL
Update a channels settings. Requires the 'MANAGE_CHANNELS' permission for the guild. Returns a guild channel on success, and a 400 BAD REQUEST on invalid parameters. Fires a Channel Update Gateway event. All the JSON Params are optional. -
CHANNEL_DELETE
Delete a guild channel, or close a private message. Requires the 'MANAGE_CHANNELS' permission for the guild. Returns a guild channel or dm channel object on success. Fires a Channel Delete Gateway event. -
MESSAGES_GET
Returns the messages for a channel. If operating on a guild channel, this endpoint requires the 'READ_MESSAGES' permission to be present on the current user. Returns an array of message objects on success. -
MESSAGE_GET
Returns a specific message in the channel. If operating on a guild channel, this endpoints requires the 'READ_MESSAGE_HISTORY' permission to be present on the current user. Returns a message object on success. -
MESSAGE_CREATE
Post a message to a guild text or DM channel. If operating on a guild channel, this endpoint requires the 'SEND_MESSAGES' permission to be present on the current user. Returns a message object. Fires a Message Create Gateway event. See message formatting for more information on how to properly format messages.This endpoint supports both JSON and form data bodies. It does require multipart/form-data requests instead of the normal JSON request type when uploading files. Make sure you set your Content-Type to multipart/form-data if you're doing that. Note that in that case, the embed field cannot be used, but you can pass an url-encoded JSON body as a form value for payload_json.
-
REACTION_CREATE
Create a reaction for the message. This endpoint requires the 'READ_MESSAGE_HISTORY' permission to be present on the current user. Additionally, if nobody else has reacted to the message using this emoji, this endpoint requires the 'ADD_REACTIONS' permission to be present on the current user. Returns a 204 empty response on success. -
REACTION_DELETE_OWN
Delete a reaction the current user has made for the message. Returns a 204 empty response on success. -
REACTION_DELETE_USER
Deletes another user's reaction. This endpoint requires the 'MANAGE_MESSAGES' permission to be present on the current user. Returns a 204 empty response on success. -
REACTION_DELETE
Deletes all the reactions for a given emoji on a message. This endpoint requires the 'MANAGE_MESSAGES' permission to be present on the current user. -
REACTIONS_GET
Get a list of users that reacted with this emoji. Returns an array of user objects on success. -
REACTIONS_DELETE_ALL
Deletes all reactions on a message. This endpoint requires the 'MANAGE_MESSAGES' permission to be present on the current user. -
MESSAGE_EDIT
Edit a previously sent message. You can only edit messages that have been sent by the current user. Returns a message object. Fires a Message Update Gateway event. -
MESSAGE_DELETE
Delete a message. If operating on a guild channel and trying to delete a message that was not sent by the current user, this endpoint requires the 'MANAGE_MESSAGES' permission. Returns a 204 empty response on success. Fires a Message Delete Gateway event. -
MESSAGE_DELETE_BULK
Delete multiple messages in a single request. This endpoint can only be used on guild channels and requires the 'MANAGE_MESSAGES' permission. Returns a 204 empty response on success. Fires multiple Message Delete Gateway events.The gateway will ignore any individual messages that do not exist or do not belong to this channel, but these will count towards the minimum and maximum message count. Duplicate snowflakes will only be counted once for these limits.
This endpoint will not delete messages older than 2 weeks, and will fail if any message provided is older than that. An endpoint will be added in the future to prune messages older than 2 weeks from a channel.
-
CROSSPOST_MESSAGE
Crosspost a Message into all guilds what follow the news channel indicated. This endpoint requires the 'DISCOVERY' feature to be present for the guild and requires the 'SEND_MESSAGES' permission, if the current user sent the message, or additionally the 'MANAGE_MESSAGES' permission, for all other messages, to be present for the current user.Returns a 204 empty response on success.
-
CHANNEL_PERMISSIONS_EDIT
Edit the channel permission overwrites for a user or role in a channel. Only usable for guild channels. Requires the 'MANAGE_ROLES' permission. Returns a 204 empty response on success. For more information about permissions, see permissions. -
CHANNEL_INVITES_GET
Returns a list of invite objects (with invite metadata) for the channel. Only usable for guild channels. Requires the 'MANAGE_CHANNELS' permission. -
CHANNEL_INVITE_CREATE
Create a new invite object for the channel. Only usable for guild channels. Requires the CREATE_INSTANT_INVITE permission. All JSON parameters for this route are optional, however the request body is not. If you are not sending any fields, you still have to send an empty JSON object ({}). Returns an invite object. -
CHANNEL_PERMISSION_DELETE
Delete a channel permission overwrite for a user or role in a channel. Only usable for guild channels. Requires the 'MANAGE_ROLES' permission. Returns a 204 empty response on success. For more information about permissions, see permissions. -
FOLLOW_NEWS_CHANNEL
Follow a News Channel to send messages to a target channel. Requires the `MANAGE_WEBHOOKS` permission in the target channel. Returns a followed channel object. -
TYPING_INDICATOR_TRIGGER
Post a typing indicator for the specified channel. Generally bots should not implement this route. However, if a bot is responding to a command and expects the computation to take a few seconds, this endpoint may be called to let the user know that the bot is processing their message. Returns a 204 empty response on success. Fires a Typing Start Gateway event. -
MESSAGES_PINNED_GET
Returns all pinned messages in the channel as an array of message objects. Requires the `VIEW_CHANNEL` permission. If the user is missing the `READ_MESSAGE_HISTORY` permission in the channel, then no pins will be returned. -
MESSAGES_PINNED_ADD
Pin a message in a channel. Requires the 'PIN_MESSAGES' permission. Returns a 204 empty response on success. -
MESSAGES_PINNED_DELETE
Delete a pinned message in a channel. Requires the 'PIN_MESSAGES' permission. Returns a 204 empty response on success. -
GROUP_DM_RECIPIENT_ADD
Adds a recipient to a Group DM using their access token. -
GROUP_DM_RECIPIENT_DELETE
Removes a recipient from a Group DM. -
START_THREAD_WITH_MESSAGE
-
START_THREAD_WITHOUT_MESSAGE
-
START_THREAD_IN_FORUM_CHANNEL_MESSAGE
-
JOIN_THREAD
-
ADD_THREAD_MEMBER
-
LEAVE_THREAD
-
REMOVE_THREAD_MEMBER
-
GET_THREAD_MEMBER
-
LIST_THREAD_MEMBERS
-
LIST_PUBLIC_ARCHIVED_THREADS
-
LIST_PRIVATE_ARCHIVED_THREADS
-
LIST_JOINED_PRIVATE_ARCHIVED_THREADS
-
POLL_ANSWER_VOTERS_GET
Returns a list of users that voted for the given `answer_id` in the poll for the given message represented by its `message.id` and `channel.id`. -
END_POLL
Request to end a poll early. This will end the poll and return the final results. -
STICKER_GET
Returns a sticker object for the given sticker ID. -
STICKER_PACKS_GET
Returns the list of available sticker packs. -
STICKER_PACK_GET
Returns a sticker pack object for the given sticker pack ID. -
GUILD_STICKERS_GET
Returns an array of sticker objects for the given guild. Includes user fields if the bot has the MANAGE_EMOJIS_AND_STICKERS permission. -
GUILD_STICKER_GET
Returns a sticker object for the given guild and sticker IDs. Includes the user field if the bot has the MANAGE_EMOJIS_AND_STICKERS permission. -
GUILD_STICKER_CREATE
Create a new sticker for the guild. Send a multipart/form-data body. Requires the MANAGE_EMOJIS_AND_STICKERS permission. Returns the new sticker object on success. -
GUILD_STICKER_MODIFY
Modify the given sticker. Requires the MANAGE_EMOJIS_AND_STICKERS permission. Returns the updated sticker object on success. -
GUILD_STICKER_DELETE
Delete the given sticker. Requires the MANAGE_EMOJIS_AND_STICKERS permission. Returns 204 No Content on success. -
GUILD_EMOJIS_GET
Returns a list of emoji objects for the given guild. -
GUILD_EMOJI_GET
Returns an emoji object for the given guild and emoji IDs. -
GUILD_EMOJI_CREATE
Create a new emoji for the guild. Returns the new emoji object on success. Fires a Guild Emojis Update Gateway event. -
GUILD_EMOJI_MODIFY
Modify the given emoji. Returns the updated emoji object on success. Fires a Guild Emojis Update Gateway event. -
GUILD_EMOJI_DELETE
Delete the given emoji. Returns 204 No Content on success. Fires a Guild Emojis Update Gateway event. -
GUILD_CREATE
Create a new guild. Returns a guild object on success. Fires a Guild Create Gateway event.By default this endpoint is limited to 10 active guilds. These limits are raised for whitelisted GameBridge applications.
-
GUILD_GET
Returns the guild object for the given id. -
GUILD_MODIFY
Modify a guild's settings. Returns the updated guild object on success. Fires a Guild Update Gateway event. -
GUILD_DELETE
Delete a guild permanently. User must be owner. Returns 204 No Content on success. Fires a Guild Delete Gateway event. -
GUILD_CHANNELS_GET
Returns a list of guild channel objects. -
GUILD_CHANNEL_CREATE
Create a new channel object for the guild. Requires the 'MANAGE_CHANNELS' permission. Returns the new channel object on success. Fires a Channel Create Gateway event. -
GUILD_CHANNEL_POSITIONS_MODIFY
Modify the positions of a set of role objects for the guild. Requires the 'MANAGE_ROLES' permission. Returns a list of all of the guild's role objects on success. Fires multiple Guild Role Update Gateway events. -
GUILD_MEMBER_GET
Returns a guild member object for the specified user. -
GUILD_MEMBERS_LIST
Returns a list of guild member objects that are members of the guild. -
SEARCH_GUILD_MEMBERS_GET
Returns a list of guild member objects whose username or nickname starts with a provided string. -
GUILD_MEMBER_ADD
Adds a user to the guild, provided you have a valid oauth2 access token for the user with the guilds.join scope. Returns a 201 Created with the guild member as the body. Fires a Guild Member Add Gateway event. Requires the bot to have the CREATE_INSTANT_INVITE permission. -
GUILD_MEMBER_MODIFY
Modify attributes of a guild member. Returns a 200 OK with the guild member on success. Fires a Guild Member Update Gateway event. -
CURRENT_MEMBER_MODIFY
Modifies the current member in a guild. Returns a 200 with the updated member on success. Fires a Guild Member Update Gateway event.- See Also:
-
GUILD_MEMBER_ROLE_ADD
Adds a role to a guild member. Requires the 'MANAGE_ROLES' permission. Returns a 204 empty response on success. Fires a Guild Member Update Gateway event. -
GUILD_MEMBER_ROLE_REMOVE
Removes a role from a guild member. Requires the 'MANAGE_ROLES' permission. Returns a 204 empty response on success. Fires a Guild Member Update Gateway event. -
GUILD_MEMBER_REMOVE
Remove a member from a guild. Requires 'KICK_MEMBERS' permission. Returns a 204 empty response on success. Fires a Guild Member Remove Gateway event. -
GUILD_BANS_GET
Returns a list of ban objects for the users banned from this guild. Requires the 'BAN_MEMBERS' permission. -
GUILD_BAN_GET
Returns a ban object for the given user or a 404 not found if the ban cannot be found. Requires the 'BAN_MEMBERS' permission. -
GUILD_BAN_CREATE
Create a guild ban, and optionally delete previous messages sent by the banned user. Requires the 'BAN_MEMBERS' permission. Returns a 204 empty response on success. Fires a Guild Ban Add Gateway event. -
GUILD_BAN_REMOVE
Remove the ban for a user. Requires the 'BAN_MEMBERS' permissions. Returns a 204 empty response on success. Fires a Guild Ban Remove Gateway event. -
GUILD_BAN_BULK
Ban up to 200 users from a guild, and optionally delete previous messages sent by the banned users. Requires both the `BAN_MEMBERS` and `MANAGE_GUILD` permissions. Returns a 200 response on success, including the fields banned_users with the IDs of the banned users and failed_users with IDs that could not be banned or were already banned. -
GUILD_ROLES_GET
Returns a list of role objects for the guild. Requires the 'MANAGE_ROLES' permission. -
GUILD_ROLE_GET
Returns a role object for the specified role id. Requires the 'MANAGE_ROLES' permission. -
GUILD_ROLE_CREATE
Create a new role for the guild. Requires the 'MANAGE_ROLES' permission. Returns the new role object on success. Fires a Guild Role Create Gateway event. All JSON params are optional. -
GUILD_ROLE_POSITIONS_MODIFY
Modify the positions of a set of role objects for the guild. Requires the 'MANAGE_ROLES' permission. Returns a list of all of the guild's role objects on success. Fires multiple Guild Role Update Gateway events. -
GUILD_ROLE_MODIFY
Modify a guild role. Requires the 'MANAGE_ROLES' permission. Returns the updated role on success. Fires a Guild Role Update Gateway event. -
GUILD_ROLE_DELETE
Delete a guild role. Requires the 'MANAGE_ROLES' permission. Returns a 204 empty response on success. Fires a Guild Role Delete Gateway event. -
GUILD_PRUNE_COUNT_GET
Returns an object with one 'pruned' key indicating the number of members that would be removed in a prune operation. Requires the 'KICK_MEMBERS' permission. -
GUILD_PRUNE_BEGIN
Begin a prune operation. Requires the 'KICK_MEMBERS' permission. Returns an object with one 'pruned' key indicating the number of members that were removed in the prune operation. Fires multiple Guild Member Remove Gateway events. -
GUILD_VOICE_REGIONS_GET
Returns a list of voice region objects for the guild. Unlike the similar /voice route, this returns VIP servers when the guild is VIP-enabled. -
GUILD_INVITES_GET
Returns a list of invite objects (with invite metadata) for the guild. Requires the 'MANAGE_GUILD' permission. -
GUILD_INTEGRATIONS_GET
Returns a list of integration objects for the guild. Requires the 'MANAGE_GUILD' permission. -
GUILD_INTEGRATION_CREATE
Attach an integration object from the current user to the guild. Requires the 'MANAGE_GUILD' permission. Returns a 204 empty response on success. Fires a Guild Integrations Update Gateway event. -
GUILD_INTEGRATION_MODIFY
Modify the behavior and settings of a integration object for the guild. Requires the 'MANAGE_GUILD' permission. Returns a 204 empty response on success. Fires a Guild Integrations Update Gateway event. -
GUILD_INTEGRATION_DELETE
Delete the attached integration object for the guild. Requires the 'MANAGE_GUILD' permission. Returns a 204 empty response on success. Fires a Guild Integrations Update Gateway event. -
GUILD_INTEGRATION_SYNC
Sync an integration. Requires the 'MANAGE_GUILD' permission. Returns a 204 empty response on success. -
GUILD_WIDGET_GET
Returns the guild widget object. Requires the 'MANAGE_GUILD' permission. -
GUILD_WIDGET_MODIFY
Modify a guild widget object for the guild. All attributes may be passed in with JSON and modified. Requires the 'MANAGE_GUILD' permission. Returns the updated guild widget object. -
GUILD_PREVIEW_GET
Returns the guild preview object. If the user is not in the guild, then the guild must be Discoverable. -
SELF_VOICE_STATE_GET
Returns the current user's voice state in the guild. -
OTHERS_VOICE_STATE_GET
Returns the specified user's voice state in the guild. -
SELF_VOICE_STATE_MODIFY
Updates the current user's voice state. -
OTHERS_VOICE_STATE_MODIFY
Updates another user's voice state. -
LIST_ACTIVE_GUILD_THREADS
-
INVITE_GET
Returns an invite object for the given code. -
INVITE_DELETE
Delete an invite. Requires the MANAGE_CHANNELS permission. Returns an invite object on success. -
INVITE_ACCEPT
Accept an invite. This requires the guilds.join OAuth2 scope to be able to accept invites on behalf of normal users (via an OAuth2 Bearer token). Bot users are disallowed. Returns an invite object on success. -
GUILD_TEMPLATE_GET
Get a template. Returns a template object for the given code on success. -
TEMPLATE_GUILD_CREATE
Create a new guild from template. Returns a guild object on success. Fires a Guild Create Gateway event. By default this endpoint can be used only by bots in less than 10 guilds. -
GUILD_TEMPLATE_LIST_GET
Returns an array of template objects. Requires the MANAGE_GUILD permission. Returns an array of template objects. -
GUILD_TEMPLATE_CREATE
Creates a template for the guild. Requires the MANAGE_GUILD permission. Returns the created template object on success. -
GUILD_TEMPLATE_SYNC
Syncs the template to the guild's current state. Requires the MANAGE_GUILD permission. Returns the template object on success. -
GUILD_TEMPLATE_MODIFY
Modifies the template's metadata. Requires the MANAGE_GUILD permission. Returns the template object on success. -
GUILD_TEMPLATE_DELETE
Deletes the template. Requires the MANAGE_GUILD permission. Returns the deleted template object on success. -
CURRENT_USER_GET
Returns the user object of the requester's account. For OAuth2, this requires the identify scope, which will return the object without an email, and optionally the email scope, which returns the object with an email. -
USER_GET
Returns a user object for a given user ID. -
CURRENT_USER_MODIFY
Modify the requester's user account settings. Returns a user object on success. -
CURRENT_USER_GUILDS_GET
Returns a list of partial guild objects the current user is a member of. Requires the guilds OAuth2 scope. -
CURRENT_USER_GUILD_MEMBER_GET
Returns a guild member object for the current user. Requires the guilds.members.read OAuth2 scope.- See Also:
-
GUILD_LEAVE
Leave a guild. Returns a 204 empty response on success. -
USER_DM_CREATE
Create a new DM channel with a user. Returns a DM channel object. -
GROUP_DM_CREATE
Create a new group DM channel with multiple users. Returns a DM channel object. -
USER_CONNECTIONS_GET
Returns a list of connection objects. Requires the connections OAuth2 scope. -
USER_APPLICATIONS_ROLE_CONNECTION_GET
Returns the application role connection for the user. Requires an OAuth2 access token with role_connections.write scope for the application specified in the path. -
USER_APPLICATIONS_ROLE_CONNECTION_MODIFY
Updates and returns the application role connection for the user. Requires an OAuth2 access token with role_connections.write scope for the application specified in the path. -
VOICE_REGION_LIST
Returns an array of voice region objects that can be used when creating servers. -
CHANNEL_WEBHOOK_CREATE
Create a new webhook. Returns a webhook object on success. -
CHANNEL_WEBHOOKS_GET
Returns a list of channel webhook objects. -
GUILD_WEBHOOKS_GET
Returns a list of guild webhook objects. -
WEBHOOK_GET
Returns the new webhook object for the given id. -
WEBHOOK_TOKEN_GET
Same asWEBHOOK_GET, except this call does not require authentication and returns no user in the webhook object. -
WEBHOOK_MODIFY
Modify a webhook. Returns the updated webhook object on success. All parameters to this endpoint are optional. -
WEBHOOK_TOKEN_MODIFY
Same asWEBHOOK_MODIFY, except this call does not require authentication and returns no user in the webhook object. -
WEBHOOK_DELETE
Delete a webhook permanently. User must be owner. Returns a 204 NO CONTENT response on success. -
WEBHOOK_TOKEN_DELETE
Same as above, except this call does not require authentication. -
WEBHOOK_EXECUTE
This endpoint supports both JSON and form data bodies. It does require multipart/form-data requests instead of the normal JSON request type when uploading files. Make sure you set your Content-Type to multipart/form-data if you're doing that. Note that in that case, the embeds field cannot be used, but you can pass an url-encoded JSON body as a form value for payload_json. -
WEBHOOK_EXECUTE_SLACK
-
WEBHOOK_EXECUTE_GITHUB
-
WEBHOOK_MESSAGE_GET
-
WEBHOOK_MESSAGE_EDIT
-
WEBHOOK_MESSAGE_DELETE
-
APPLICATION_INFO_GET
Returns the bot's OAuth2 application info. -
APPLICATION_INFO_MODIFY
-
GLOBAL_APPLICATION_COMMANDS_GET
-
GLOBAL_APPLICATION_COMMANDS_CREATE
-
GLOBAL_APPLICATION_COMMANDS_BULK_OVERWRITE
-
GLOBAL_APPLICATION_COMMAND_GET
-
GLOBAL_APPLICATION_COMMAND_MODIFY
-
GLOBAL_APPLICATION_COMMAND_DELETE
-
GUILD_APPLICATION_COMMANDS_GET
-
GUILD_APPLICATION_COMMANDS_CREATE
-
GUILD_APPLICATION_COMMANDS_BULK_OVERWRITE
-
GUILD_APPLICATION_COMMAND_GET
-
GUILD_APPLICATION_COMMAND_MODIFY
-
GUILD_APPLICATION_COMMAND_DELETE
-
GUILD_APPLICATION_COMMAND_PERMISSIONS_GET
-
APPLICATION_COMMAND_PERMISSIONS_GET
-
APPLICATION_COMMAND_PERMISSIONS_MODIFY
-
APPLICATION_COMMAND_PERMISSIONS_BULK_MODIFY
-
APPLICATION_EMOJIS_GET
Returns an object containing a list of emoji objects for the given application under the items key.
Includes a user object for the team member that uploaded the emoji from the app's settings, or for the bot user if uploaded using the API. -
APPLICATION_EMOJI_GET
Returns an emoji object for the given application and emoji IDs. Includes the user field. -
APPLICATION_EMOJI_CREATE
Create a new emoji for the application. Returns the new emoji object on success.
Emojis and animated emojis have a maximum file size of 256 KiB. Attempting to upload an emoji larger than this limit will fail and return 400 Bad Request and an error message, but not a JSON status code. -
APPLICATION_EMOJI_MODIFY
Modify the given emoji. Returns the updated emoji object on success. -
APPLICATION_EMOJI_DELETE
Delete the given emoji. Returns 204 No Content on success. -
APPLICATION_ROLE_CONNECTION_METADATA_GET
Returns a list of application role connection metadata objects for the given application. -
APPLICATION_ROLE_CONNECTION_METADATA_MODIFY
Updates and returns a list of application role connection metadata objects for the given application. An application can have a maximum of 5 metadata records. -
INTERACTION_RESPONSE_CREATE
-
CREATE_STAGE_INSTANCE
-
GET_STAGE_INSTANCE
-
MODIFY_STAGE_INSTANCE
-
DELETE_STAGE_INSTANCE
-
GUILD_SCHEDULED_EVENTS_GET
Returns a list of all scheduled events for a guild. -
GUILD_SCHEDULED_EVENT_CREATE
Creates a guild scheduled event for the given guild. Returns a scheduled event object on success. -
GUILD_SCHEDULED_EVENT_GET
Returns a scheduled event for the given guild. -
GUILD_SCHEDULED_EVENT_MODIFY
Modifies a scheduled event for the given guild. Returns the modified scheduled event object on success. -
GUILD_SCHEDULED_EVENT_DELETE
Deletes a scheduled event for the given guild. Returns a 204 empty response on success. -
GUILD_SCHEDULED_EVENT_USERS_GET
Returns a list of users RSVP'd to the scheduled event for the given guild. Returns a list of user objects on success with an optional `guild_member` property for each user if `with_member` query param is passed. -
GUILD_ONBOARDING_GET
Returns the Onboarding object for the guild. -
GUILD_ONBOARDING_MODIFY
Modifies the onboarding configuration of the guild. Returns a 200 with the Onboarding object for the guild. Requires the MANAGE_GUILD and MANAGE_ROLES permissions. This endpoint supports the X-Audit-Log-Reason header. -
TOKEN
-
TOKEN_REVOKE
-
AUTHORIZATION_INFO_GET
-
LIST_SKUS
Returns a list of SKUs for a given application.- See Also:
-
LIST_ENTITLEMENTS
Returns a list of entitlements for a given application.- See Also:
-
CREATE_TEST_ENTITLEMENT
Creates a test entitlement for a given application.- See Also:
-
DELETE_TEST_ENTITLEMENT
Deletes a test entitlement for a given application.- See Also:
-
CONSUME_ENTITLEMENT
For One-Time Purchase consumable SKUs, marks a given entitlement for the user as consumed. The entitlement will have consumed=true when usingLIST_ENTITLEMENTS.- See Also:
-
LIST_SKU_SUBSCRIPTIONS
Returns all subscriptions containing the SKU, filtered by user. Returns a list of subscription objects.- See Also:
-
GET_SKU_SUBSCRIPTION
Get a subscription by its ID. Returns a subscription object.- See Also:
-
SEND_SOUNDBOARD_SOUND
Send a soundboard sound to a voice channel the user is connected to.- See Also:
-
LIST_DEFAULT_SOUNDBOARD_SOUNDS
Returns an array of soundboard sound objects that can be used by all users.- See Also:
-
LIST_GUILD_SOUNDBOARD_SOUNDS
Returns a list of the guild's soundboard sounds.- See Also:
-
GET_GUILD_SOUNDBOARD_SOUND
Returns a soundboard sound object for the given sound id.- See Also:
-
CREATE_GUILD_SOUNDBOARD_SOUND
Create a new soundboard sound for the guild.- See Also:
-
MODIFY_GUILD_SOUNDBOARD_SOUND
Modify the given soundboard sound.- See Also:
-
DELETE_GUILD_SOUNDBOARD_SOUND
Delete the given soundboard sound.- See Also:
-
-
Constructor Details
-
Routes
public Routes()
-