Modifier and Type | Field and Description |
---|---|
static Route |
APPLICATION_INFO_GET
Returns the bot's OAuth2 application info.
|
static Route |
AUDIT_LOG_GET
Returns an audit log object for the guild.
|
static String |
BASE_URL
The base URL for all API requests.
|
static Route |
CHANNEL_DELETE
Delete a guild channel, or close a private message.
|
static Route |
CHANNEL_GET
Get a channel by ID.
|
static Route |
CHANNEL_INVITE_CREATE
Create a new invite object for the channel.
|
static Route |
CHANNEL_INVITES_GET
Returns a list of invite objects (with invite metadata) for the channel.
|
static Route |
CHANNEL_MODIFY
Update a channels settings.
|
static Route |
CHANNEL_MODIFY_PARTIAL
Update a channels settings.
|
static Route |
CHANNEL_PERMISSION_DELETE
Delete a channel permission overwrite for a user or role in a channel.
|
static Route |
CHANNEL_PERMISSIONS_EDIT
Edit the channel permission overwrites for a user or role in a channel.
|
static Route |
CHANNEL_WEBHOOK_CREATE
Create a new webhook.
|
static Route |
CHANNEL_WEBHOOKS_GET
Returns a list of channel webhook objects.
|
static Route |
CROSSPOST_MESSAGE
Crosspost a Message into all guilds what follow the news channel indicated.
|
static Route |
CURRENT_USER_GET
Returns the user object of the requester's account.
|
static Route |
CURRENT_USER_GUILDS_GET
Returns a list of partial guild objects the current user is a member of.
|
static Route |
CURRENT_USER_MODIFY
Modify the requester's user account settings.
|
static Route |
FOLLOW_NEWS_CHANNEL
Follow a News Channel to send messages to a target channel.
|
static Route |
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).
|
static Route |
GATEWAY_GET
Returns an object with a single valid WSS URL, which the client can use as a basis for Connecting.
|
static Route |
GROUP_DM_CREATE
Create a new group DM channel with multiple users.
|
static Route |
GROUP_DM_RECIPIENT_ADD
Adds a recipient to a Group DM using their access token.
|
static Route |
GROUP_DM_RECIPIENT_DELETE
Removes a recipient from a Group DM.
|
static Route |
GUILD_BAN_CREATE
Create a guild ban, and optionally delete previous messages sent by the banned user.
|
static Route |
GUILD_BAN_GET
Returns a ban object for the given user or a 404 not found if the ban cannot be found.
|
static Route |
GUILD_BAN_REMOVE
Remove the ban for a user.
|
static Route |
GUILD_BANS_GET
Returns a list of ban objects for the users banned from this guild.
|
static Route |
GUILD_CHANNEL_CREATE
Create a new channel object for the guild.
|
static Route |
GUILD_CHANNEL_POSITIONS_MODIFY
Modify the positions of a set of role objects for the guild.
|
static Route |
GUILD_CHANNELS_GET
Returns a list of guild channel objects.
|
static Route |
GUILD_CREATE
Create a new guild.
|
static Route |
GUILD_DELETE
Delete a guild permanently.
|
static Route |
GUILD_EMBED_GET
Deprecated.
Use
Routes.GUILD_WIDGET_GET instead. |
static Route |
GUILD_EMBED_MODIFY
Deprecated.
Use
Routes.GUILD_WIDGET_MODIFY instead. |
static Route |
GUILD_EMOJI_CREATE
Create a new emoji for the guild.
|
static Route |
GUILD_EMOJI_DELETE
Delete the given emoji.
|
static Route |
GUILD_EMOJI_GET
Returns an emoji object for the given guild and emoji IDs.
|
static Route |
GUILD_EMOJI_MODIFY
Modify the given emoji.
|
static Route |
GUILD_EMOJIS_GET
Returns a list of emoji objects for the given guild.
|
static Route |
GUILD_GET
Returns the guild object for the given id.
|
static Route |
GUILD_INTEGRATION_CREATE
Attach an integration object from the current user to the guild.
|
static Route |
GUILD_INTEGRATION_DELETE
Delete the attached integration object for the guild.
|
static Route |
GUILD_INTEGRATION_MODIFY
Modify the behavior and settings of a integration object for the guild.
|
static Route |
GUILD_INTEGRATION_SYNC
Sync an integration.
|
static Route |
GUILD_INTEGRATIONS_GET
Returns a list of integration objects for the guild.
|
static Route |
GUILD_INVITES_GET
Returns a list of invite objects (with invite metadata) for the guild.
|
static Route |
GUILD_LEAVE
Leave a guild.
|
static Route |
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.
|
static Route |
GUILD_MEMBER_GET
Returns a guild member object for the specified user.
|
static Route |
GUILD_MEMBER_MODIFY
Modify attributes of a guild member.
|
static Route |
GUILD_MEMBER_REMOVE
Remove a member from a guild.
|
static Route |
GUILD_MEMBER_ROLE_ADD
Adds a role to a guild member.
|
static Route |
GUILD_MEMBER_ROLE_REMOVE
Removes a role from a guild member.
|
static Route |
GUILD_MEMBERS_LIST
Returns a list of guild member objects that are members of the guild.
|
static Route |
GUILD_MODIFY
Modify a guild's settings.
|
static Route |
GUILD_PREVIEW_GET
Returns the guild preview object.
|
static Route |
GUILD_PRUNE_BEGIN
Begin a prune operation.
|
static Route |
GUILD_PRUNE_COUNT_GET
Returns an object with one 'pruned' key indicating the number of members that would be removed in a prune
operation.
|
static Route |
GUILD_ROLE_CREATE
Create a new role for the guild.
|
static Route |
GUILD_ROLE_DELETE
Delete a guild role.
|
static Route |
GUILD_ROLE_MODIFY
Modify a guild role.
|
static Route |
GUILD_ROLE_POSITIONS_MODIFY
Modify the positions of a set of role objects for the guild.
|
static Route |
GUILD_ROLES_GET
Returns a list of role objects for the guild.
|
static Route |
GUILD_VOICE_REGIONS_GET
Returns a list of voice region objects for the guild.
|
static Route |
GUILD_WEBHOOKS_GET
Returns a list of guild webhook objects.
|
static Route |
GUILD_WIDGET_GET
Returns the guild widget object.
|
static Route |
GUILD_WIDGET_MODIFY
Modify a guild widget object for the guild.
|
static Route |
INVITE_ACCEPT
Accept an invite.
|
static Route |
INVITE_DELETE
Delete an invite.
|
static Route |
INVITE_GET
Returns an invite object for the given code.
|
static Route |
MESSAGE_CREATE
Post a message to a guild text or DM channel.
|
static Route |
MESSAGE_DELETE
Delete a message.
|
static Route |
MESSAGE_DELETE_BULK
Delete multiple messages in a single request.
|
static Route |
MESSAGE_EDIT
Edit a previously sent message.
|
static Route |
MESSAGE_GET
Returns a specific message in the channel.
|
static Route |
MESSAGE_SUPPRESS_EMBEDS
Enable/disable suppression of embeds on a Message.
|
static Route |
MESSAGES_GET
Returns the messages for a channel.
|
static Route |
MESSAGES_PINNED_ADD
Pin a message in a channel.
|
static Route |
MESSAGES_PINNED_DELETE
Delete a pinned message in a channel.
|
static Route |
MESSAGES_PINNED_GET
Returns all pinned messages in the channel as an array of message objects.
|
static Route |
NICKNAME_MODIFY_OWN
Modifies the nickname of the current user in a guild.
|
static Route |
REACTION_CREATE
Create a reaction for the message.
|
static Route |
REACTION_DELETE
Deletes all the reactions for a given emoji on a message.
|
static Route |
REACTION_DELETE_OWN
Delete a reaction the current user has made for the message.
|
static Route |
REACTION_DELETE_USER
Deletes another user's reaction.
|
static Route |
REACTIONS_DELETE_ALL
Deletes all reactions on a message.
|
static Route |
REACTIONS_GET
Get a list of users that reacted with this emoji.
|
static Route |
TYPING_INDICATOR_TRIGGER
Post a typing indicator for the specified channel.
|
static Route |
USER_CONNECTIONS_GET
Returns a list of connection objects.
|
static Route |
USER_DM_CREATE
Create a new DM channel with a user.
|
static Route |
USER_DMS_GET
Returns a list of DM channel objects.
|
static Route |
USER_GET
Returns a user object for a given user ID.
|
static Route |
VOICE_REGION_LIST
Returns an array of voice region objects that can be used when creating servers.
|
static Route |
WEBHOOK_DELETE
Delete a webhook permanently.
|
static Route |
WEBHOOK_EXECUTE
This endpoint supports both JSON and form data bodies.
|
static Route |
WEBHOOK_EXECUTE_GITHUB |
static Route |
WEBHOOK_EXECUTE_SLACK |
static Route |
WEBHOOK_GET
Returns the new webhook object for the given id.
|
static Route |
WEBHOOK_MODIFY
Modify a webhook.
|
static Route |
WEBHOOK_TOKEN_DELETE
Same as above, except this call does not require authentication.
|
static Route |
WEBHOOK_TOKEN_GET
Same as
WEBHOOK_GET , except this call does not require authentication and returns no user in the
webhook object. |
static Route |
WEBHOOK_TOKEN_MODIFY
Same as
WEBHOOK_MODIFY , except this call does not require authentication and returns no user in the
webhook object. |
Constructor and Description |
---|
Routes() |
public static final String BASE_URL
public static final Route GATEWAY_GET
public static final Route GATEWAY_BOT_GET
public static final Route AUDIT_LOG_GET
public static final Route CHANNEL_GET
public static final Route CHANNEL_MODIFY
public static final Route CHANNEL_MODIFY_PARTIAL
public static final Route CHANNEL_DELETE
public static final Route MESSAGES_GET
public static final Route MESSAGE_GET
public static final Route MESSAGE_CREATE
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.
public static final Route REACTION_CREATE
public static final Route REACTION_DELETE_OWN
public static final Route REACTION_DELETE_USER
public static final Route REACTION_DELETE
public static final Route REACTIONS_GET
public static final Route REACTIONS_DELETE_ALL
public static final Route MESSAGE_EDIT
public static final Route MESSAGE_DELETE
public static final Route MESSAGE_DELETE_BULK
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.
@Experimental public static final Route MESSAGE_SUPPRESS_EMBEDS
Returns a 204 empty response on success. Fires a Message Update Gateway event.
public static final Route CROSSPOST_MESSAGE
Returns a 204 empty response on success.
public static final Route CHANNEL_PERMISSIONS_EDIT
public static final Route CHANNEL_INVITES_GET
public static final Route CHANNEL_INVITE_CREATE
public static final Route CHANNEL_PERMISSION_DELETE
public static final Route FOLLOW_NEWS_CHANNEL
public static final Route TYPING_INDICATOR_TRIGGER
public static final Route MESSAGES_PINNED_GET
public static final Route MESSAGES_PINNED_ADD
public static final Route MESSAGES_PINNED_DELETE
public static final Route GROUP_DM_RECIPIENT_ADD
public static final Route GROUP_DM_RECIPIENT_DELETE
public static final Route GUILD_EMOJIS_GET
public static final Route GUILD_EMOJI_GET
public static final Route GUILD_EMOJI_CREATE
public static final Route GUILD_EMOJI_MODIFY
public static final Route GUILD_EMOJI_DELETE
public static final Route GUILD_CREATE
By default this endpoint is limited to 10 active guilds. These limits are raised for whitelisted GameBridge applications.
public static final Route GUILD_GET
public static final Route GUILD_MODIFY
public static final Route GUILD_DELETE
public static final Route GUILD_CHANNELS_GET
public static final Route GUILD_CHANNEL_CREATE
public static final Route GUILD_CHANNEL_POSITIONS_MODIFY
public static final Route GUILD_MEMBER_GET
public static final Route GUILD_MEMBERS_LIST
public static final Route GUILD_MEMBER_ADD
public static final Route GUILD_MEMBER_MODIFY
public static final Route NICKNAME_MODIFY_OWN
public static final Route GUILD_MEMBER_ROLE_ADD
public static final Route GUILD_MEMBER_ROLE_REMOVE
public static final Route GUILD_MEMBER_REMOVE
public static final Route GUILD_BANS_GET
public static final Route GUILD_BAN_GET
public static final Route GUILD_BAN_CREATE
public static final Route GUILD_BAN_REMOVE
public static final Route GUILD_ROLES_GET
public static final Route GUILD_ROLE_CREATE
public static final Route GUILD_ROLE_POSITIONS_MODIFY
public static final Route GUILD_ROLE_MODIFY
public static final Route GUILD_ROLE_DELETE
public static final Route GUILD_PRUNE_COUNT_GET
public static final Route GUILD_PRUNE_BEGIN
public static final Route GUILD_VOICE_REGIONS_GET
public static final Route GUILD_INVITES_GET
public static final Route GUILD_INTEGRATIONS_GET
public static final Route GUILD_INTEGRATION_CREATE
public static final Route GUILD_INTEGRATION_MODIFY
public static final Route GUILD_INTEGRATION_DELETE
public static final Route GUILD_INTEGRATION_SYNC
@Deprecated public static final Route GUILD_EMBED_GET
Routes.GUILD_WIDGET_GET
instead.public static final Route GUILD_WIDGET_GET
@Deprecated public static final Route GUILD_EMBED_MODIFY
Routes.GUILD_WIDGET_MODIFY
instead.public static final Route GUILD_WIDGET_MODIFY
public static final Route GUILD_PREVIEW_GET
public static final Route INVITE_GET
public static final Route INVITE_DELETE
public static final Route INVITE_ACCEPT
public static final Route CURRENT_USER_GET
public static final Route USER_GET
public static final Route CURRENT_USER_MODIFY
public static final Route CURRENT_USER_GUILDS_GET
public static final Route GUILD_LEAVE
public static final Route USER_DMS_GET
public static final Route USER_DM_CREATE
public static final Route GROUP_DM_CREATE
public static final Route USER_CONNECTIONS_GET
public static final Route VOICE_REGION_LIST
public static final Route CHANNEL_WEBHOOK_CREATE
public static final Route CHANNEL_WEBHOOKS_GET
public static final Route GUILD_WEBHOOKS_GET
public static final Route WEBHOOK_GET
public static final Route WEBHOOK_TOKEN_GET
WEBHOOK_GET
, except this call does not require authentication and returns no user in the
webhook object.public static final Route WEBHOOK_MODIFY
public static final Route WEBHOOK_TOKEN_MODIFY
WEBHOOK_MODIFY
, except this call does not require authentication and returns no user in the
webhook object.public static final Route WEBHOOK_DELETE
public static final Route WEBHOOK_TOKEN_DELETE
public static final Route WEBHOOK_EXECUTE
public static final Route WEBHOOK_EXECUTE_SLACK
public static final Route WEBHOOK_EXECUTE_GITHUB
public static final Route APPLICATION_INFO_GET