#[non_exhaustive]pub enum Route<'a> {
Show 239 variants
GetGateway,
GetGatewayBot,
GetGuild {
guild_id: GuildId,
},
GetGuildPreview {
guild_id: GuildId,
},
ModifyGuild {
guild_id: GuildId,
},
GetGuildChannels {
guild_id: GuildId,
},
CreateGuildChannel {
guild_id: GuildId,
},
ModifyGuildChannelPositions {
guild_id: GuildId,
},
ListActiveGuildThreads {
guild_id: GuildId,
},
GetGuildMember {
guild_id: GuildId,
user_id: UserId,
},
ListGuildMembers {
guild_id: GuildId,
},
SearchGuildMembers {
guild_id: GuildId,
},
GetGuildMemberPermissions {
guild_id: GuildId,
user_id: UserId,
},
AddGuildMember {
guild_id: GuildId,
user_id: UserId,
},
ModifyGuildMember {
guild_id: GuildId,
user_id: UserId,
},
ModifyCurrentMember {
guild_id: GuildId,
},
AddGuildMemberRole {
guild_id: GuildId,
user_id: UserId,
role_id: RoleId,
},
RemoveGuildMemberRole {
guild_id: GuildId,
user_id: UserId,
role_id: RoleId,
},
RemoveGuildMember {
guild_id: GuildId,
user_id: UserId,
},
GetGuildBans {
guild_id: GuildId,
},
GetGuildBan {
guild_id: GuildId,
user_id: UserId,
},
CreateGuildBan {
guild_id: GuildId,
user_id: UserId,
},
RemoveGuildBan {
guild_id: GuildId,
user_id: UserId,
},
BulkGuildBan {
guild_id: GuildId,
},
GetGuildRoles {
guild_id: GuildId,
},
GetGuildRole {
guild_id: GuildId,
role_id: RoleId,
},
GetGuildRolePermissions {
guild_id: GuildId,
role_id: RoleId,
},
GetGuildRoleMemberCounts {
guild_id: GuildId,
},
CreateGuildRole {
guild_id: GuildId,
},
ModifyGuildRolePositions {
guild_id: GuildId,
},
ModifyGuildRole {
guild_id: GuildId,
role_id: RoleId,
},
DeleteGuildRole {
guild_id: GuildId,
role_id: RoleId,
},
GetGuildPruneCount {
guild_id: GuildId,
},
BeginGuildPrune {
guild_id: GuildId,
},
GetGuildVoiceRegions {
guild_id: GuildId,
},
GetGuildInvites {
guild_id: GuildId,
},
GetGuildIntegrations {
guild_id: GuildId,
},
DeleteGuildIntegration {
guild_id: GuildId,
integration_id: IntegrationId,
},
GetGuildWidgetSettings {
guild_id: GuildId,
},
ModifyGuildWidget {
guild_id: GuildId,
},
GetGuildWidget {
guild_id: GuildId,
},
GetGuildVanityUrl {
guild_id: GuildId,
},
GetGuildWelcomeScreen {
guild_id: GuildId,
},
ModifyGuildWelcomeScreen {
guild_id: GuildId,
},
GetGuildOnboarding {
guild_id: GuildId,
},
ModifyGuildOnboarding {
guild_id: GuildId,
},
ModifyGuildIncidentActions {
guild_id: GuildId,
},
GetCurrentUser,
GetUser {
user_id: UserId,
},
ModifyCurrentUser,
GetCurrentUserGuilds,
GetCurrentUserGuildMember {
guild_id: GuildId,
},
LeaveGuild {
guild_id: GuildId,
},
CreateDm,
CreateGroupDm,
GetCurrentUserConnections,
GetCurrentUserApplicationRoleConnection {
application_id: ApplicationId,
},
UpdateCurrentUserApplicationRoleConnection {
application_id: ApplicationId,
},
DeleteCurrentUserApplicationRoleConnection {
application_id: ApplicationId,
},
CreateWebhook {
channel_id: ChannelId,
},
GetChannelWebhooks {
channel_id: ChannelId,
},
GetGuildWebhooks {
guild_id: GuildId,
},
GetWebhook {
webhook_id: WebhookId,
},
GetWebhookWithToken {
webhook_id: WebhookId,
webhook_token: &'a str,
},
ModifyWebhook {
webhook_id: WebhookId,
},
ModifyWebhookWithToken {
webhook_id: WebhookId,
webhook_token: &'a str,
},
DeleteWebhook {
webhook_id: WebhookId,
},
DeleteWebhookWithToken {
webhook_id: WebhookId,
webhook_token: &'a str,
},
ExecuteWebhook {
webhook_id: WebhookId,
webhook_token: &'a str,
},
GetWebhookMessage {
webhook_id: WebhookId,
webhook_token: &'a str,
message_id: MessageId,
},
EditWebhookMessage {
webhook_id: WebhookId,
webhook_token: &'a str,
message_id: MessageId,
},
DeleteWebhookMessage {
webhook_id: WebhookId,
webhook_token: &'a str,
message_id: MessageId,
},
ListGuildEmojis {
guild_id: GuildId,
},
GetGuildEmoji {
guild_id: GuildId,
emoji_id: EmojiId,
},
CreateGuildEmoji {
guild_id: GuildId,
},
ModifyGuildEmoji {
guild_id: GuildId,
emoji_id: EmojiId,
},
DeleteGuildEmoji {
guild_id: GuildId,
emoji_id: EmojiId,
},
ListApplicationEmojis {
application_id: ApplicationId,
},
GetApplicationEmoji {
application_id: ApplicationId,
emoji_id: EmojiId,
},
CreateApplicationEmoji {
application_id: ApplicationId,
},
ModifyApplicationEmoji {
application_id: ApplicationId,
emoji_id: EmojiId,
},
DeleteApplicationEmoji {
application_id: ApplicationId,
emoji_id: EmojiId,
},
GetSticker {
sticker_id: StickerId,
},
ListStickerPacks,
GetStickerPack {
pack_id: StickerPackId,
},
ListGuildStickers {
guild_id: GuildId,
},
GetGuildSticker {
guild_id: GuildId,
sticker_id: StickerId,
},
CreateGuildSticker {
guild_id: GuildId,
},
ModifyGuildSticker {
guild_id: GuildId,
sticker_id: StickerId,
},
DeleteGuildSticker {
guild_id: GuildId,
sticker_id: StickerId,
},
SendSoundboardSound {
channel_id: ChannelId,
},
ListDefaultSoundboardSounds,
ListGuildSoundboardSounds {
guild_id: GuildId,
},
GetGuildSoundboardSound {
guild_id: GuildId,
sound_id: SoundboardSoundId,
},
CreateGuildSoundboardSound {
guild_id: GuildId,
},
ModifyGuildSoundboardSound {
guild_id: GuildId,
sound_id: SoundboardSoundId,
},
DeleteGuildSoundboardSound {
guild_id: GuildId,
sound_id: SoundboardSoundId,
},
ListScheduledEventsForGuild {
guild_id: GuildId,
},
CreateGuildScheduledEvent {
guild_id: GuildId,
},
GetGuildScheduledEvent {
guild_id: GuildId,
event_id: ScheduledEventId,
},
ModifyGuildScheduledEvent {
guild_id: GuildId,
event_id: ScheduledEventId,
},
DeleteGuildScheduledEvent {
guild_id: GuildId,
event_id: ScheduledEventId,
},
GetGuildScheduledEventUsers {
guild_id: GuildId,
event_id: ScheduledEventId,
},
CreateStageInstance,
GetStageInstance {
channel_id: ChannelId,
},
ModifyStageInstance {
channel_id: ChannelId,
},
DeleteStageInstance {
channel_id: ChannelId,
},
GetInvite {
invite_code: &'a str,
},
DeleteInvite {
invite_code: &'a str,
},
GetTargetUsers {
invite_code: &'a str,
},
AddTargetUser {
invite_code: &'a str,
user_id: UserId,
},
RemoveTargetUser {
invite_code: &'a str,
user_id: UserId,
},
UpdateTargetUsers {
invite_code: &'a str,
},
BulkAddTargetUsers {
invite_code: &'a str,
},
BulkDeleteTargetUsers {
invite_code: &'a str,
},
GetTargetUsersJobStatus {
invite_code: &'a str,
},
GetGuildTemplate {
template_code: &'a str,
},
GetGuildTemplates {
guild_id: GuildId,
},
CreateGuildTemplate {
guild_id: GuildId,
},
SyncGuildTemplate {
guild_id: GuildId,
template_code: &'a str,
},
ModifyGuildTemplate {
guild_id: GuildId,
template_code: &'a str,
},
DeleteGuildTemplate {
guild_id: GuildId,
template_code: &'a str,
},
GetGuildAuditLog {
guild_id: GuildId,
},
GetAnswerVoters {
channel_id: ChannelId,
message_id: MessageId,
answer_id: u32,
},
EndPoll {
channel_id: ChannelId,
message_id: MessageId,
},
ListVoiceRegions,
GetCurrentUserVoiceState {
guild_id: GuildId,
},
GetUserVoiceState {
guild_id: GuildId,
user_id: UserId,
},
ModifyCurrentUserVoiceState {
guild_id: GuildId,
},
ModifyUserVoiceState {
guild_id: GuildId,
user_id: UserId,
},
CreateLobby,
CreateOrJoinLobby,
GetLobby {
lobby_id: LobbyId,
},
ModifyLobby {
lobby_id: LobbyId,
},
DeleteLobby {
lobby_id: LobbyId,
},
AddLobbyMember {
lobby_id: LobbyId,
user_id: UserId,
},
BulkUpdateLobbyMembers {
lobby_id: LobbyId,
},
RemoveLobbyMember {
lobby_id: LobbyId,
user_id: UserId,
},
LeaveLobby {
lobby_id: LobbyId,
},
LinkChannelToLobby {
lobby_id: LobbyId,
},
UnlinkChannelFromLobby {
lobby_id: LobbyId,
},
SendLobbyMessage {
lobby_id: LobbyId,
},
GetLobbyMessages {
lobby_id: LobbyId,
},
UpdateLobbyMessageModerationMetadata {
lobby_id: LobbyId,
message_id: MessageId,
},
CreateLobbyChannelInviteForSelf {
lobby_id: LobbyId,
},
CreateLobbyChannelInviteForUser {
lobby_id: LobbyId,
user_id: UserId,
},
GetCurrentBotApplicationInformation,
GetCurrentAuthorizationInformation,
OAuth2TokenExchange,
OAuth2TokenRevocation,
UpdateApplicationIdentityProfile {
application_id: ApplicationId,
user_id: UserId,
provider_issued_user_id: &'a str,
},
GetApplicationIdentityProfile {
application_id: ApplicationId,
user_id: UserId,
provider_issued_user_id: &'a str,
},
GetApplicationIdentitiesByUserId {
user_id: UserId,
application_id: ApplicationId,
},
GetApplicationIdentitiesByExternalId {
application_id: ApplicationId,
provider_type: &'a str,
provider_issued_user_id: &'a str,
},
DeleteApplicationIdentity {
user_id: UserId,
application_id: ApplicationId,
provider_type: &'a str,
provider_issued_user_id: &'a str,
},
GetCurrentApplication,
EditCurrentApplication,
GetApplicationActivityInstance {
application_id: ApplicationId,
instance_id: &'a str,
},
GetApplicationRoleConnectionMetadataRecords {
application_id: ApplicationId,
},
UpdateApplicationRoleConnectionMetadataRecords {
application_id: ApplicationId,
},
ListSkus {
application_id: ApplicationId,
},
ListEntitlements {
application_id: ApplicationId,
},
GetEntitlement {
application_id: ApplicationId,
entitlement_id: EntitlementId,
},
ConsumeEntitlement {
application_id: ApplicationId,
entitlement_id: EntitlementId,
},
CreateTestEntitlement {
application_id: ApplicationId,
},
DeleteTestEntitlement {
application_id: ApplicationId,
entitlement_id: EntitlementId,
},
ListSkuSubscriptions {
sku_id: SkuId,
},
GetSkuSubscription {
sku_id: SkuId,
subscription_id: SubscriptionId,
},
ListAutoModerationRulesForGuild {
guild_id: GuildId,
},
GetAutoModerationRule {
guild_id: GuildId,
rule_id: AutoModerationRuleId,
},
CreateAutoModerationRule {
guild_id: GuildId,
},
ModifyAutoModerationRule {
guild_id: GuildId,
rule_id: AutoModerationRuleId,
},
DeleteAutoModerationRule {
guild_id: GuildId,
rule_id: AutoModerationRuleId,
},
GetChannel {
channel_id: ChannelId,
},
ModifyChannel {
channel_id: ChannelId,
},
DeleteChannel {
channel_id: ChannelId,
},
GetChannelMemberPermissions {
channel_id: ChannelId,
user_id: UserId,
},
GetChannelRolePermissions {
channel_id: ChannelId,
role_id: RoleId,
},
SetVoiceChannelStatus {
channel_id: ChannelId,
},
EditChannelPermissions {
channel_id: ChannelId,
overwrite_id: GenericId,
},
DeleteChannelPermission {
channel_id: ChannelId,
overwrite_id: GenericId,
},
GetChannelInvites {
channel_id: ChannelId,
},
CreateChannelInvite {
channel_id: ChannelId,
},
FollowAnnouncementChannel {
channel_id: ChannelId,
},
TriggerTypingIndicator {
channel_id: ChannelId,
},
GroupDmAddRecipient {
channel_id: ChannelId,
user_id: UserId,
},
GroupDmRemoveRecipient {
channel_id: ChannelId,
user_id: UserId,
},
StartThreadFromMessage {
channel_id: ChannelId,
message_id: MessageId,
},
StartThreadWithoutMessage {
channel_id: ChannelId,
},
StartThreadInForumOrMediaChannel {
channel_id: ChannelId,
},
JoinThread {
channel_id: ChannelId,
},
AddThreadMember {
channel_id: ChannelId,
user_id: UserId,
},
LeaveThread {
channel_id: ChannelId,
},
RemoveThreadMember {
channel_id: ChannelId,
user_id: UserId,
},
GetThreadMember {
channel_id: ChannelId,
user_id: UserId,
},
ListThreadMembers {
channel_id: ChannelId,
},
ListPublicArchivedThreads {
channel_id: ChannelId,
},
ListPrivateArchivedThreads {
channel_id: ChannelId,
},
ListJoinedPrivateArchivedThreads {
channel_id: ChannelId,
},
GetChannelMessages {
channel_id: ChannelId,
},
SearchGuildMessages {
guild_id: GuildId,
},
GetChannelMessage {
channel_id: ChannelId,
message_id: MessageId,
},
CreateMessage {
channel_id: ChannelId,
},
CrosspostMessage {
channel_id: ChannelId,
message_id: MessageId,
},
CreateReaction {
channel_id: ChannelId,
message_id: MessageId,
emoji: ReactionEmoji<'a>,
},
DeleteOwnReaction {
channel_id: ChannelId,
message_id: MessageId,
emoji: ReactionEmoji<'a>,
},
DeleteUserReaction {
channel_id: ChannelId,
message_id: MessageId,
emoji: ReactionEmoji<'a>,
user_id: UserId,
},
GetReactions {
channel_id: ChannelId,
message_id: MessageId,
emoji: ReactionEmoji<'a>,
},
DeleteAllReactions {
channel_id: ChannelId,
message_id: MessageId,
},
DeleteAllReactionsForEmoji {
channel_id: ChannelId,
message_id: MessageId,
emoji: ReactionEmoji<'a>,
},
EditMessage {
channel_id: ChannelId,
message_id: MessageId,
},
DeleteMessage {
channel_id: ChannelId,
message_id: MessageId,
},
BulkDeleteMessages {
channel_id: ChannelId,
},
GetChannelPins {
channel_id: ChannelId,
},
PinMessage {
channel_id: ChannelId,
message_id: MessageId,
},
UnpinMessage {
channel_id: ChannelId,
message_id: MessageId,
},
CreateInteractionResponse {
interaction_id: InteractionId,
interaction_token: &'a str,
},
GetOriginalInteractionResponse {
application_id: ApplicationId,
interaction_token: &'a str,
},
EditOriginalInteractionResponse {
application_id: ApplicationId,
interaction_token: &'a str,
},
DeleteOriginalInteractionResponse {
application_id: ApplicationId,
interaction_token: &'a str,
},
CreateFollowupMessage {
application_id: ApplicationId,
interaction_token: &'a str,
},
GetFollowupMessage {
application_id: ApplicationId,
interaction_token: &'a str,
message_id: MessageId,
},
EditFollowupMessage {
application_id: ApplicationId,
interaction_token: &'a str,
message_id: MessageId,
},
DeleteFollowupMessage {
application_id: ApplicationId,
interaction_token: &'a str,
message_id: MessageId,
},
GetGlobalApplicationCommands {
application_id: ApplicationId,
},
CreateGlobalApplicationCommand {
application_id: ApplicationId,
},
GetGlobalApplicationCommand {
application_id: ApplicationId,
command_id: CommandId,
},
EditGlobalApplicationCommand {
application_id: ApplicationId,
command_id: CommandId,
},
DeleteGlobalApplicationCommand {
application_id: ApplicationId,
command_id: CommandId,
},
BulkOverwriteGlobalApplicationCommands {
application_id: ApplicationId,
},
GetGuildApplicationCommands {
application_id: ApplicationId,
guild_id: GuildId,
},
CreateGuildApplicationCommand {
application_id: ApplicationId,
guild_id: GuildId,
},
GetGuildApplicationCommand {
application_id: ApplicationId,
guild_id: GuildId,
command_id: CommandId,
},
EditGuildApplicationCommand {
application_id: ApplicationId,
guild_id: GuildId,
command_id: CommandId,
},
DeleteGuildApplicationCommand {
application_id: ApplicationId,
guild_id: GuildId,
command_id: CommandId,
},
BulkOverwriteGuildApplicationCommands {
application_id: ApplicationId,
guild_id: GuildId,
},
GetGuildApplicationCommandPermissions {
application_id: ApplicationId,
guild_id: GuildId,
},
GetApplicationCommandPermissions {
application_id: ApplicationId,
guild_id: GuildId,
command_id: CommandId,
},
EditApplicationCommandPermissions {
application_id: ApplicationId,
guild_id: GuildId,
command_id: CommandId,
},
}Expand description
A Discord REST API endpoint together with its path parameters.
Each route knows its HTTP method, its path and how it is
rate limited. Most code uses
the typed methods on Rest instead of building routes directly;
routes are useful with the low-level Rest::request.
Tokens (interaction and webhook tokens) are borrowed (D-090), percent-encoded in the
path and redacted in the Debug output.
discord.js counterpart: the Routes helper of discord-api-types.
§Examples
use djs_model::id::ChannelId;
use djs_rest::Route;
let route = Route::CreateMessage { channel_id: ChannelId::new(42) };
assert_eq!(route.method(), http::Method::POST);
assert_eq!(route.path(), "/channels/42/messages");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
GetGateway
GET /gateway
GetGatewayBot
GET /gateway/bot
GetGuild
GET /guilds/{guild_id}
Fields
guild_id: GuildIdThe guild.
GetGuildPreview
GET /guilds/{guild_id}/preview
Fields
guild_id: GuildIdThe guild.
ModifyGuild
PATCH /guilds/{guild_id}
Fields
guild_id: GuildIdThe guild.
GetGuildChannels
GET /guilds/{guild_id}/channels
Fields
guild_id: GuildIdThe guild.
CreateGuildChannel
POST /guilds/{guild_id}/channels
Fields
guild_id: GuildIdThe guild.
ModifyGuildChannelPositions
Modify Guild Channel Positions.
PATCH /guilds/{guild_id}/channels
Fields
guild_id: GuildIdThe guild.
ListActiveGuildThreads
GET /guilds/{guild_id}/threads/active
Fields
guild_id: GuildIdThe guild.
GetGuildMember
GET /guilds/{guild_id}/members/{user_id}
ListGuildMembers
GET /guilds/{guild_id}/members
Fields
guild_id: GuildIdThe guild.
SearchGuildMembers
GET /guilds/{guild_id}/members/search
Fields
guild_id: GuildIdThe guild.
GetGuildMemberPermissions
GET /guilds/{guild_id}/permissions/member/{user_id}
AddGuildMember
PUT /guilds/{guild_id}/members/{user_id}
ModifyGuildMember
PATCH /guilds/{guild_id}/members/{user_id}
ModifyCurrentMember
PATCH /guilds/{guild_id}/members/@me
Fields
guild_id: GuildIdThe guild.
AddGuildMemberRole
PUT /guilds/{guild_id}/members/{user_id}/roles/{role_id}
RemoveGuildMemberRole
DELETE /guilds/{guild_id}/members/{user_id}/roles/{role_id}
RemoveGuildMember
DELETE /guilds/{guild_id}/members/{user_id}
GetGuildBans
GET /guilds/{guild_id}/bans
Fields
guild_id: GuildIdThe guild.
GetGuildBan
GET /guilds/{guild_id}/bans/{user_id}
CreateGuildBan
PUT /guilds/{guild_id}/bans/{user_id}
RemoveGuildBan
DELETE /guilds/{guild_id}/bans/{user_id}
BulkGuildBan
POST /guilds/{guild_id}/bulk-ban
Fields
guild_id: GuildIdThe guild.
GetGuildRoles
GET /guilds/{guild_id}/roles
Fields
guild_id: GuildIdThe guild.
GetGuildRole
GET /guilds/{guild_id}/roles/{role_id}
GetGuildRolePermissions
GET /guilds/{guild_id}/permissions/role/{role_id}
GetGuildRoleMemberCounts
GET /guilds/{guild_id}/roles/member-counts
Fields
guild_id: GuildIdThe guild.
CreateGuildRole
POST /guilds/{guild_id}/roles
Fields
guild_id: GuildIdThe guild.
ModifyGuildRolePositions
PATCH /guilds/{guild_id}/roles
Fields
guild_id: GuildIdThe guild.
ModifyGuildRole
PATCH /guilds/{guild_id}/roles/{role_id}
DeleteGuildRole
DELETE /guilds/{guild_id}/roles/{role_id}
GetGuildPruneCount
GET /guilds/{guild_id}/prune
Fields
guild_id: GuildIdThe guild.
BeginGuildPrune
POST /guilds/{guild_id}/prune
Fields
guild_id: GuildIdThe guild.
GetGuildVoiceRegions
GET /guilds/{guild_id}/regions
Fields
guild_id: GuildIdThe guild.
GetGuildInvites
GET /guilds/{guild_id}/invites
Fields
guild_id: GuildIdThe guild.
GetGuildIntegrations
GET /guilds/{guild_id}/integrations
Fields
guild_id: GuildIdThe guild.
DeleteGuildIntegration
DELETE /guilds/{guild_id}/integrations/{integration_id}
GetGuildWidgetSettings
GET /guilds/{guild_id}/widget
Fields
guild_id: GuildIdThe guild.
ModifyGuildWidget
PATCH /guilds/{guild_id}/widget
Fields
guild_id: GuildIdThe guild.
GetGuildWidget
GET /guilds/{guild_id}/widget.json
Fields
guild_id: GuildIdThe guild.
GetGuildVanityUrl
GET /guilds/{guild_id}/vanity-url
Fields
guild_id: GuildIdThe guild.
GetGuildWelcomeScreen
GET /guilds/{guild_id}/welcome-screen
Fields
guild_id: GuildIdThe guild.
ModifyGuildWelcomeScreen
PATCH /guilds/{guild_id}/welcome-screen
Fields
guild_id: GuildIdThe guild.
GetGuildOnboarding
GET /guilds/{guild_id}/onboarding
Fields
guild_id: GuildIdThe guild.
ModifyGuildOnboarding
PUT /guilds/{guild_id}/onboarding
Fields
guild_id: GuildIdThe guild.
ModifyGuildIncidentActions
Modify Guild Incident Actions.
PUT /guilds/{guild_id}/incident-actions
Fields
guild_id: GuildIdThe guild.
GetCurrentUser
GET /users/@me
GetUser
GET /users/{user_id}
Fields
user_id: UserIdThe user.
ModifyCurrentUser
PATCH /users/@me
GetCurrentUserGuilds
GET /users/@me/guilds
GetCurrentUserGuildMember
Get Current User Guild Member.
GET /users/@me/guilds/{guild_id}/member
Fields
guild_id: GuildIdThe guild.
LeaveGuild
DELETE /users/@me/guilds/{guild_id}
Fields
guild_id: GuildIdThe guild.
CreateDm
POST /users/@me/channels
CreateGroupDm
Create Group DM:
the same endpoint as CreateDm, with access tokens.
POST /users/@me/channels
GetCurrentUserConnections
GET /users/@me/connections
GetCurrentUserApplicationRoleConnection
Get Current User Application Role Connection.
GET /users/@me/applications/{application_id}/role-connection
Fields
application_id: ApplicationIdThe application.
UpdateCurrentUserApplicationRoleConnection
Update Current User Application Role Connection.
PUT /users/@me/applications/{application_id}/role-connection
Fields
application_id: ApplicationIdThe application.
DeleteCurrentUserApplicationRoleConnection
Delete Current User Application Role Connection.
DELETE /users/@me/applications/{application_id}/role-connection
Fields
application_id: ApplicationIdThe application.
CreateWebhook
POST /channels/{channel_id}/webhooks
Fields
channel_id: ChannelIdThe channel.
GetChannelWebhooks
GET /channels/{channel_id}/webhooks
Fields
channel_id: ChannelIdThe channel.
GetGuildWebhooks
GET /guilds/{guild_id}/webhooks
Fields
guild_id: GuildIdThe guild.
GetWebhook
GET /webhooks/{webhook_id}
Fields
webhook_id: WebhookIdThe webhook.
GetWebhookWithToken
GET /webhooks/{webhook_id}/{webhook_token}
ModifyWebhook
PATCH /webhooks/{webhook_id}
Fields
webhook_id: WebhookIdThe webhook.
ModifyWebhookWithToken
PATCH /webhooks/{webhook_id}/{webhook_token}
DeleteWebhook
DELETE /webhooks/{webhook_id}
Fields
webhook_id: WebhookIdThe webhook.
DeleteWebhookWithToken
DELETE /webhooks/{webhook_id}/{webhook_token}
ExecuteWebhook
POST /webhooks/{webhook_id}/{webhook_token}
GetWebhookMessage
GET /webhooks/{webhook_id}/{webhook_token}/messages/{message_id}
EditWebhookMessage
PATCH /webhooks/{webhook_id}/{webhook_token}/messages/{message_id}
DeleteWebhookMessage
DELETE /webhooks/{webhook_id}/{webhook_token}/messages/{message_id}
ListGuildEmojis
GET /guilds/{guild_id}/emojis
Fields
guild_id: GuildIdThe guild.
GetGuildEmoji
GET /guilds/{guild_id}/emojis/{emoji_id}
CreateGuildEmoji
POST /guilds/{guild_id}/emojis
Fields
guild_id: GuildIdThe guild.
ModifyGuildEmoji
PATCH /guilds/{guild_id}/emojis/{emoji_id}
DeleteGuildEmoji
DELETE /guilds/{guild_id}/emojis/{emoji_id}
ListApplicationEmojis
GET /applications/{application_id}/emojis
Fields
application_id: ApplicationIdThe application.
GetApplicationEmoji
GET /applications/{application_id}/emojis/{emoji_id}
CreateApplicationEmoji
POST /applications/{application_id}/emojis
Fields
application_id: ApplicationIdThe application.
ModifyApplicationEmoji
PATCH /applications/{application_id}/emojis/{emoji_id}
DeleteApplicationEmoji
DELETE /applications/{application_id}/emojis/{emoji_id}
GetSticker
GET /stickers/{sticker_id}
Fields
sticker_id: StickerIdThe sticker.
ListStickerPacks
GET /sticker-packs
GetStickerPack
GET /sticker-packs/{pack_id}
Fields
pack_id: StickerPackIdThe sticker pack.
ListGuildStickers
GET /guilds/{guild_id}/stickers
Fields
guild_id: GuildIdThe guild.
GetGuildSticker
GET /guilds/{guild_id}/stickers/{sticker_id}
CreateGuildSticker
POST /guilds/{guild_id}/stickers
Fields
guild_id: GuildIdThe guild.
ModifyGuildSticker
PATCH /guilds/{guild_id}/stickers/{sticker_id}
DeleteGuildSticker
DELETE /guilds/{guild_id}/stickers/{sticker_id}
SendSoundboardSound
POST /channels/{channel_id}/send-soundboard-sound
Fields
channel_id: ChannelIdThe voice channel.
ListDefaultSoundboardSounds
List Default Soundboard Sounds.
GET /soundboard-default-sounds
ListGuildSoundboardSounds
GET /guilds/{guild_id}/soundboard-sounds
Fields
guild_id: GuildIdThe guild.
GetGuildSoundboardSound
GET /guilds/{guild_id}/soundboard-sounds/{sound_id}
CreateGuildSoundboardSound
Create Guild Soundboard Sound.
POST /guilds/{guild_id}/soundboard-sounds
Fields
guild_id: GuildIdThe guild.
ModifyGuildSoundboardSound
Modify Guild Soundboard Sound.
PATCH /guilds/{guild_id}/soundboard-sounds/{sound_id}
DeleteGuildSoundboardSound
Delete Guild Soundboard Sound.
DELETE /guilds/{guild_id}/soundboard-sounds/{sound_id}
ListScheduledEventsForGuild
List Scheduled Events for Guild.
GET /guilds/{guild_id}/scheduled-events
Fields
guild_id: GuildIdThe guild.
CreateGuildScheduledEvent
POST /guilds/{guild_id}/scheduled-events
Fields
guild_id: GuildIdThe guild.
GetGuildScheduledEvent
GET /guilds/{guild_id}/scheduled-events/{event_id}
ModifyGuildScheduledEvent
PATCH /guilds/{guild_id}/scheduled-events/{event_id}
DeleteGuildScheduledEvent
DELETE /guilds/{guild_id}/scheduled-events/{event_id}
GetGuildScheduledEventUsers
Get Guild Scheduled Event Users.
GET /guilds/{guild_id}/scheduled-events/{event_id}/users
CreateStageInstance
POST /stage-instances
GetStageInstance
GET /stage-instances/{channel_id}
Fields
channel_id: ChannelIdThe stage channel.
ModifyStageInstance
PATCH /stage-instances/{channel_id}
Fields
channel_id: ChannelIdThe stage channel.
DeleteStageInstance
DELETE /stage-instances/{channel_id}
Fields
channel_id: ChannelIdThe stage channel.
GetInvite
GET /invites/{invite_code}
DeleteInvite
DELETE /invites/{invite_code}
GetTargetUsers
GET /invites/{invite_code}/target-users
AddTargetUser
PUT /invites/{invite_code}/target-users/{user_id}
RemoveTargetUser
DELETE /invites/{invite_code}/target-users/{user_id}
UpdateTargetUsers
PUT /invites/{invite_code}/target-users
BulkAddTargetUsers
POST /invites/{invite_code}/target-users/bulk-add
BulkDeleteTargetUsers
POST /invites/{invite_code}/target-users/bulk-delete
GetTargetUsersJobStatus
GET /invites/{invite_code}/target-users/job-status
GetGuildTemplate
GET /guilds/templates/{template_code}
GetGuildTemplates
GET /guilds/{guild_id}/templates
Fields
guild_id: GuildIdThe guild.
CreateGuildTemplate
POST /guilds/{guild_id}/templates
Fields
guild_id: GuildIdThe guild.
SyncGuildTemplate
PUT /guilds/{guild_id}/templates/{template_code}
ModifyGuildTemplate
PATCH /guilds/{guild_id}/templates/{template_code}
DeleteGuildTemplate
DELETE /guilds/{guild_id}/templates/{template_code}
GetGuildAuditLog
GET /guilds/{guild_id}/audit-logs
Fields
guild_id: GuildIdThe guild.
GetAnswerVoters
GET /channels/{channel_id}/polls/{message_id}/answers/{answer_id}
EndPoll
POST /channels/{channel_id}/polls/{message_id}/expire
ListVoiceRegions
GET /voice/regions
GetCurrentUserVoiceState
GET /guilds/{guild_id}/voice-states/@me
Fields
guild_id: GuildIdThe guild.
GetUserVoiceState
GET /guilds/{guild_id}/voice-states/{user_id}
ModifyCurrentUserVoiceState
Modify Current User Voice State.
PATCH /guilds/{guild_id}/voice-states/@me
Fields
guild_id: GuildIdThe guild.
ModifyUserVoiceState
PATCH /guilds/{guild_id}/voice-states/{user_id}
CreateLobby
POST /lobbies
CreateOrJoinLobby
PUT /lobbies
GetLobby
GET /lobbies/{lobby_id}
Fields
lobby_id: LobbyIdThe lobby.
ModifyLobby
PATCH /lobbies/{lobby_id}
Fields
lobby_id: LobbyIdThe lobby.
DeleteLobby
DELETE /lobbies/{lobby_id}
Fields
lobby_id: LobbyIdThe lobby.
AddLobbyMember
PUT /lobbies/{lobby_id}/members/{user_id}
BulkUpdateLobbyMembers
POST /lobbies/{lobby_id}/members/bulk
Fields
lobby_id: LobbyIdThe lobby.
RemoveLobbyMember
DELETE /lobbies/{lobby_id}/members/{user_id}
LeaveLobby
DELETE /lobbies/{lobby_id}/members/@me
Fields
lobby_id: LobbyIdThe lobby.
LinkChannelToLobby
PATCH /lobbies/{lobby_id}/channel-linking
Fields
lobby_id: LobbyIdThe lobby.
UnlinkChannelFromLobby
PATCH /lobbies/{lobby_id}/channel-linking
Fields
lobby_id: LobbyIdThe lobby.
SendLobbyMessage
POST /lobbies/{lobby_id}/messages
Fields
lobby_id: LobbyIdThe lobby.
GetLobbyMessages
GET /lobbies/{lobby_id}/messages
Fields
lobby_id: LobbyIdThe lobby.
UpdateLobbyMessageModerationMetadata
Update Lobby Message Moderation Metadata.
PUT /lobbies/{lobby_id}/messages/{message_id}/moderation-metadata
CreateLobbyChannelInviteForSelf
Create Lobby Channel Invite for Self.
POST /lobbies/{lobby_id}/members/@me/invites
Fields
lobby_id: LobbyIdThe lobby.
CreateLobbyChannelInviteForUser
Create Lobby Channel Invite for User.
POST /lobbies/{lobby_id}/members/{user_id}/invites
GetCurrentBotApplicationInformation
Get Current Bot Application Information.
GET /oauth2/applications/@me
GetCurrentAuthorizationInformation
Get Current Authorization Information.
GET /oauth2/@me
OAuth2TokenExchange
The token URL: exchanges an authorization code, a refresh token or the client credentials for an access token. Sent without the client’s token (D-132).
POST /oauth2/token
OAuth2TokenRevocation
The token revocation URL. Sent without the client’s token (D-132).
POST /oauth2/token/revoke
UpdateApplicationIdentityProfile
Update Application Identity Profile.
PATCH /applications/{application_id}/users/{user_id}/identities/{provider_issued_user_id}/profile
GetApplicationIdentityProfile
Get Application Identity Profile.
GET /applications/{application_id}/users/{user_id}/identities/{provider_issued_user_id}/profile
GetApplicationIdentitiesByUserId
Get Application Identities by User ID.
GET /users/{user_id}/application-identities/{application_id}
GetApplicationIdentitiesByExternalId
Get Application Identities by External ID.
GET /applications/{application_id}/application-identities/{provider_type}/{provider_issued_user_id}
Fields
application_id: ApplicationIdThe application.
DeleteApplicationIdentity
POST /users/{user_id}/application-identities/{application_id}/{provider_type}/{provider_issued_user_id}/delete
GetCurrentApplication
GET /applications/@me
EditCurrentApplication
PATCH /applications/@me
GetApplicationActivityInstance
Get Application Activity Instance.
GET /applications/{application_id}/activity-instances/{instance_id}
GetApplicationRoleConnectionMetadataRecords
Get Application Role Connection Metadata Records.
GET /applications/{application_id}/role-connections/metadata
Fields
application_id: ApplicationIdThe application.
UpdateApplicationRoleConnectionMetadataRecords
Update Application Role Connection Metadata Records.
PUT /applications/{application_id}/role-connections/metadata
Fields
application_id: ApplicationIdThe application.
ListSkus
GET /applications/{application_id}/skus
Fields
application_id: ApplicationIdThe application.
ListEntitlements
GET /applications/{application_id}/entitlements
Fields
application_id: ApplicationIdThe application.
GetEntitlement
GET /applications/{application_id}/entitlements/{entitlement_id}
ConsumeEntitlement
POST /applications/{application_id}/entitlements/{entitlement_id}/consume
CreateTestEntitlement
POST /applications/{application_id}/entitlements
Fields
application_id: ApplicationIdThe application.
DeleteTestEntitlement
DELETE /applications/{application_id}/entitlements/{entitlement_id}
Fields
application_id: ApplicationIdThe application.
entitlement_id: EntitlementIdThe test entitlement.
ListSkuSubscriptions
GET /skus/{sku_id}/subscriptions
Fields
sku_id: SkuIdThe SKU.
GetSkuSubscription
GET /skus/{sku_id}/subscriptions/{subscription_id}
ListAutoModerationRulesForGuild
List Auto Moderation Rules for Guild.
GET /guilds/{guild_id}/auto-moderation/rules
Fields
guild_id: GuildIdThe guild.
GetAutoModerationRule
GET /guilds/{guild_id}/auto-moderation/rules/{rule_id}
CreateAutoModerationRule
POST /guilds/{guild_id}/auto-moderation/rules
Fields
guild_id: GuildIdThe guild.
ModifyAutoModerationRule
PATCH /guilds/{guild_id}/auto-moderation/rules/{rule_id}
DeleteAutoModerationRule
DELETE /guilds/{guild_id}/auto-moderation/rules/{rule_id}
GetChannel
GET /channels/{channel_id}
Fields
channel_id: ChannelIdThe channel.
ModifyChannel
PATCH /channels/{channel_id}
Fields
channel_id: ChannelIdThe channel.
DeleteChannel
DELETE /channels/{channel_id}
Fields
channel_id: ChannelIdThe channel.
GetChannelMemberPermissions
Get Channel Member Permissions.
GET /channels/{channel_id}/permissions/member/{user_id}
GetChannelRolePermissions
GET /channels/{channel_id}/permissions/role/{role_id}
SetVoiceChannelStatus
PUT /channels/{channel_id}/voice-status
Fields
channel_id: ChannelIdThe channel.
EditChannelPermissions
PUT /channels/{channel_id}/permissions/{overwrite_id}
DeleteChannelPermission
DELETE /channels/{channel_id}/permissions/{overwrite_id}
GetChannelInvites
GET /channels/{channel_id}/invites
Fields
channel_id: ChannelIdThe channel.
CreateChannelInvite
POST /channels/{channel_id}/invites
Fields
channel_id: ChannelIdThe channel.
FollowAnnouncementChannel
POST /channels/{channel_id}/followers
Fields
channel_id: ChannelIdThe channel.
TriggerTypingIndicator
POST /channels/{channel_id}/typing
Fields
channel_id: ChannelIdThe channel.
GroupDmAddRecipient
PUT /channels/{channel_id}/recipients/{user_id}
GroupDmRemoveRecipient
DELETE /channels/{channel_id}/recipients/{user_id}
StartThreadFromMessage
POST /channels/{channel_id}/messages/{message_id}/threads
StartThreadWithoutMessage
POST /channels/{channel_id}/threads
Fields
channel_id: ChannelIdThe channel.
StartThreadInForumOrMediaChannel
Start Thread in Forum or Media Channel:
the same endpoint as StartThreadWithoutMessage, with
a message body.
POST /channels/{channel_id}/threads
Fields
channel_id: ChannelIdThe channel.
JoinThread
PUT /channels/{channel_id}/thread-members/@me
Fields
channel_id: ChannelIdThe thread.
AddThreadMember
PUT /channels/{channel_id}/thread-members/{user_id}
LeaveThread
DELETE /channels/{channel_id}/thread-members/@me
Fields
channel_id: ChannelIdThe thread.
RemoveThreadMember
DELETE /channels/{channel_id}/thread-members/{user_id}
GetThreadMember
GET /channels/{channel_id}/thread-members/{user_id}
ListThreadMembers
GET /channels/{channel_id}/thread-members
Fields
channel_id: ChannelIdThe thread.
ListPublicArchivedThreads
GET /channels/{channel_id}/threads/archived/public
Fields
channel_id: ChannelIdThe channel.
ListPrivateArchivedThreads
List Private Archived Threads.
GET /channels/{channel_id}/threads/archived/private
Fields
channel_id: ChannelIdThe channel.
ListJoinedPrivateArchivedThreads
List Joined Private Archived Threads.
GET /channels/{channel_id}/users/@me/threads/archived/private
Fields
channel_id: ChannelIdThe channel.
GetChannelMessages
GET /channels/{channel_id}/messages
Fields
channel_id: ChannelIdThe channel.
SearchGuildMessages
GET /guilds/{guild_id}/messages/search
Fields
guild_id: GuildIdThe guild.
GetChannelMessage
GET /channels/{channel_id}/messages/{message_id}
CreateMessage
POST /channels/{channel_id}/messages
Fields
channel_id: ChannelIdThe channel to send the message in.
CrosspostMessage
POST /channels/{channel_id}/messages/{message_id}/crosspost
CreateReaction
PUT /channels/{channel_id}/messages/{message_id}/reactions/{emoji}/@me
Fields
channel_id: ChannelIdThe channel.
message_id: MessageIdThe message.
emoji: ReactionEmoji<'a>The emoji.
DeleteOwnReaction
DELETE /channels/{channel_id}/messages/{message_id}/reactions/{emoji}/@me
Fields
channel_id: ChannelIdThe channel.
message_id: MessageIdThe message.
emoji: ReactionEmoji<'a>The emoji.
DeleteUserReaction
DELETE /channels/{channel_id}/messages/{message_id}/reactions/{emoji}/{user_id}
Fields
channel_id: ChannelIdThe channel.
message_id: MessageIdThe message.
emoji: ReactionEmoji<'a>The emoji.
user_id: UserIdThe user whose reaction is removed.
GetReactions
GET /channels/{channel_id}/messages/{message_id}/reactions/{emoji}
Fields
channel_id: ChannelIdThe channel.
message_id: MessageIdThe message.
emoji: ReactionEmoji<'a>The emoji.
DeleteAllReactions
DELETE /channels/{channel_id}/messages/{message_id}/reactions
DeleteAllReactionsForEmoji
Delete All Reactions for Emoji.
DELETE /channels/{channel_id}/messages/{message_id}/reactions/{emoji}
Fields
channel_id: ChannelIdThe channel.
message_id: MessageIdThe message.
emoji: ReactionEmoji<'a>The emoji.
EditMessage
PATCH /channels/{channel_id}/messages/{message_id}
DeleteMessage
Delete Message. Messages older than two weeks are deleted under a separate rate limit.
DELETE /channels/{channel_id}/messages/{message_id}
Fields
channel_id: ChannelIdThe channel of the message.
message_id: MessageIdThe message to delete.
BulkDeleteMessages
POST /channels/{channel_id}/messages/bulk-delete
Fields
channel_id: ChannelIdThe channel.
GetChannelPins
GET /channels/{channel_id}/messages/pins
Fields
channel_id: ChannelIdThe channel.
PinMessage
PUT /channels/{channel_id}/messages/pins/{message_id}
UnpinMessage
DELETE /channels/{channel_id}/messages/pins/{message_id}
CreateInteractionResponse
Create Interaction Response: the initial response to an interaction (within 3 seconds). Not bound to the global rate limit, and never queued behind other callbacks.
POST /interactions/{interaction_id}/{interaction_token}/callback
Fields
interaction_id: InteractionIdThe interaction.
GetOriginalInteractionResponse
Get Original Interaction Response.
GET /webhooks/{application_id}/{interaction_token}/messages/@original
Fields
application_id: ApplicationIdThe application.
EditOriginalInteractionResponse
Edit Original Interaction Response.
PATCH /webhooks/{application_id}/{interaction_token}/messages/@original
Fields
application_id: ApplicationIdThe application.
DeleteOriginalInteractionResponse
Delete Original Interaction Response.
DELETE /webhooks/{application_id}/{interaction_token}/messages/@original
Fields
application_id: ApplicationIdThe application.
CreateFollowupMessage
POST /webhooks/{application_id}/{interaction_token}
Fields
application_id: ApplicationIdThe application.
GetFollowupMessage
GET /webhooks/{application_id}/{interaction_token}/messages/{message_id}
EditFollowupMessage
PATCH /webhooks/{application_id}/{interaction_token}/messages/{message_id}
DeleteFollowupMessage
DELETE /webhooks/{application_id}/{interaction_token}/messages/{message_id}
GetGlobalApplicationCommands
Get Global Application Commands.
GET /applications/{application_id}/commands
Fields
application_id: ApplicationIdThe application.
CreateGlobalApplicationCommand
Create Global Application Command.
POST /applications/{application_id}/commands
Fields
application_id: ApplicationIdThe application.
GetGlobalApplicationCommand
Get Global Application Command.
GET /applications/{application_id}/commands/{command_id}
EditGlobalApplicationCommand
Edit Global Application Command.
PATCH /applications/{application_id}/commands/{command_id}
DeleteGlobalApplicationCommand
Delete Global Application Command.
DELETE /applications/{application_id}/commands/{command_id}
BulkOverwriteGlobalApplicationCommands
Bulk Overwrite Global Application Commands.
PUT /applications/{application_id}/commands
Fields
application_id: ApplicationIdThe application.
GetGuildApplicationCommands
Get Guild Application Commands.
GET /applications/{application_id}/guilds/{guild_id}/commands
CreateGuildApplicationCommand
Create Guild Application Command.
POST /applications/{application_id}/guilds/{guild_id}/commands
GetGuildApplicationCommand
Get Guild Application Command.
GET /applications/{application_id}/guilds/{guild_id}/commands/{command_id}
Fields
application_id: ApplicationIdThe application.
guild_id: GuildIdThe guild.
command_id: CommandIdThe command.
EditGuildApplicationCommand
Edit Guild Application Command.
PATCH /applications/{application_id}/guilds/{guild_id}/commands/{command_id}
Fields
application_id: ApplicationIdThe application.
guild_id: GuildIdThe guild.
command_id: CommandIdThe command.
DeleteGuildApplicationCommand
Delete Guild Application Command.
DELETE /applications/{application_id}/guilds/{guild_id}/commands/{command_id}
Fields
application_id: ApplicationIdThe application.
guild_id: GuildIdThe guild.
command_id: CommandIdThe command.
BulkOverwriteGuildApplicationCommands
Bulk Overwrite Guild Application Commands.
PUT /applications/{application_id}/guilds/{guild_id}/commands
GetGuildApplicationCommandPermissions
Get Guild Application Command Permissions.
GET /applications/{application_id}/guilds/{guild_id}/commands/permissions
GetApplicationCommandPermissions
Get Application Command Permissions.
GET /applications/{application_id}/guilds/{guild_id}/commands/{command_id}/permissions
Fields
application_id: ApplicationIdThe application.
guild_id: GuildIdThe guild.
command_id: CommandIdThe command.
EditApplicationCommandPermissions
Edit Application Command Permissions: needs a Bearer token of a user who can manage the guild and the command.
PUT /applications/{application_id}/guilds/{guild_id}/commands/{command_id}/permissions
Implementations§
Trait Implementations§
impl<'a> Copy for Route<'a>
impl<'a> Eq for Route<'a>
impl<'a> StructuralPartialEq for Route<'a>
Auto Trait Implementations§
impl<'a> Freeze for Route<'a>
impl<'a> RefUnwindSafe for Route<'a>
impl<'a> Send for Route<'a>
impl<'a> Sync for Route<'a>
impl<'a> Unpin for Route<'a>
impl<'a> UnsafeUnpin for Route<'a>
impl<'a> UnwindSafe for Route<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.