Skip to main content

Route

Enum Route 

Source
#[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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

GetGateway

Get Gateway.

GET /gateway

§

GetGatewayBot

Get Gateway Bot.

GET /gateway/bot

§

GetGuild

Get Guild.

GET /guilds/{guild_id}

Fields

§guild_id: GuildId

The guild.

§

GetGuildPreview

Get Guild Preview.

GET /guilds/{guild_id}/preview

Fields

§guild_id: GuildId

The guild.

§

ModifyGuild

Modify Guild.

PATCH /guilds/{guild_id}

Fields

§guild_id: GuildId

The guild.

§

GetGuildChannels

Get Guild Channels.

GET /guilds/{guild_id}/channels

Fields

§guild_id: GuildId

The guild.

§

CreateGuildChannel

Create Guild Channel.

POST /guilds/{guild_id}/channels

Fields

§guild_id: GuildId

The guild.

§

ModifyGuildChannelPositions

Modify Guild Channel Positions.

PATCH /guilds/{guild_id}/channels

Fields

§guild_id: GuildId

The guild.

§

ListActiveGuildThreads

List Active Guild Threads.

GET /guilds/{guild_id}/threads/active

Fields

§guild_id: GuildId

The guild.

§

GetGuildMember

Get Guild Member.

GET /guilds/{guild_id}/members/{user_id}

Fields

§guild_id: GuildId

The guild.

§user_id: UserId

The user.

§

ListGuildMembers

List Guild Members.

GET /guilds/{guild_id}/members

Fields

§guild_id: GuildId

The guild.

§

SearchGuildMembers

Search Guild Members.

GET /guilds/{guild_id}/members/search

Fields

§guild_id: GuildId

The guild.

§

GetGuildMemberPermissions

Get Guild Member Permissions.

GET /guilds/{guild_id}/permissions/member/{user_id}

Fields

§guild_id: GuildId

The guild.

§user_id: UserId

The user.

§

AddGuildMember

Add Guild Member.

PUT /guilds/{guild_id}/members/{user_id}

Fields

§guild_id: GuildId

The guild.

§user_id: UserId

The user.

§

ModifyGuildMember

Modify Guild Member.

PATCH /guilds/{guild_id}/members/{user_id}

Fields

§guild_id: GuildId

The guild.

§user_id: UserId

The user.

§

ModifyCurrentMember

Modify Current Member.

PATCH /guilds/{guild_id}/members/@me

Fields

§guild_id: GuildId

The guild.

§

AddGuildMemberRole

Add Guild Member Role.

PUT /guilds/{guild_id}/members/{user_id}/roles/{role_id}

Fields

§guild_id: GuildId

The guild.

§user_id: UserId

The user.

§role_id: RoleId

The role.

§

RemoveGuildMemberRole

Remove Guild Member Role.

DELETE /guilds/{guild_id}/members/{user_id}/roles/{role_id}

Fields

§guild_id: GuildId

The guild.

§user_id: UserId

The user.

§role_id: RoleId

The role.

§

RemoveGuildMember

Remove Guild Member.

DELETE /guilds/{guild_id}/members/{user_id}

Fields

§guild_id: GuildId

The guild.

§user_id: UserId

The user.

§

GetGuildBans

Get Guild Bans.

GET /guilds/{guild_id}/bans

Fields

§guild_id: GuildId

The guild.

§

GetGuildBan

Get Guild Ban.

GET /guilds/{guild_id}/bans/{user_id}

Fields

§guild_id: GuildId

The guild.

§user_id: UserId

The user.

§

CreateGuildBan

Create Guild Ban.

PUT /guilds/{guild_id}/bans/{user_id}

Fields

§guild_id: GuildId

The guild.

§user_id: UserId

The user.

§

RemoveGuildBan

Remove Guild Ban.

DELETE /guilds/{guild_id}/bans/{user_id}

Fields

§guild_id: GuildId

The guild.

§user_id: UserId

The user.

§

BulkGuildBan

Bulk Guild Ban.

POST /guilds/{guild_id}/bulk-ban

Fields

§guild_id: GuildId

The guild.

§

GetGuildRoles

Get Guild Roles.

GET /guilds/{guild_id}/roles

Fields

§guild_id: GuildId

The guild.

§

GetGuildRole

Get Guild Role.

GET /guilds/{guild_id}/roles/{role_id}

Fields

§guild_id: GuildId

The guild.

§role_id: RoleId

The role.

§

GetGuildRolePermissions

Get Guild Role Permissions.

GET /guilds/{guild_id}/permissions/role/{role_id}

Fields

§guild_id: GuildId

The guild.

§role_id: RoleId

The role.

§

GetGuildRoleMemberCounts

Get Guild Role Member Counts.

GET /guilds/{guild_id}/roles/member-counts

Fields

§guild_id: GuildId

The guild.

§

CreateGuildRole

Create Guild Role.

POST /guilds/{guild_id}/roles

Fields

§guild_id: GuildId

The guild.

§

ModifyGuildRolePositions

Modify Guild Role Positions.

PATCH /guilds/{guild_id}/roles

Fields

§guild_id: GuildId

The guild.

§

ModifyGuildRole

Modify Guild Role.

PATCH /guilds/{guild_id}/roles/{role_id}

Fields

§guild_id: GuildId

The guild.

§role_id: RoleId

The role.

§

DeleteGuildRole

Delete Guild Role.

DELETE /guilds/{guild_id}/roles/{role_id}

Fields

§guild_id: GuildId

The guild.

§role_id: RoleId

The role.

§

GetGuildPruneCount

Get Guild Prune Count.

GET /guilds/{guild_id}/prune

Fields

§guild_id: GuildId

The guild.

§

BeginGuildPrune

Begin Guild Prune.

POST /guilds/{guild_id}/prune

Fields

§guild_id: GuildId

The guild.

§

GetGuildVoiceRegions

Get Guild Voice Regions.

GET /guilds/{guild_id}/regions

Fields

§guild_id: GuildId

The guild.

§

GetGuildInvites

Get Guild Invites.

GET /guilds/{guild_id}/invites

Fields

§guild_id: GuildId

The guild.

§

GetGuildIntegrations

Get Guild Integrations.

GET /guilds/{guild_id}/integrations

Fields

§guild_id: GuildId

The guild.

§

DeleteGuildIntegration

Delete Guild Integration.

DELETE /guilds/{guild_id}/integrations/{integration_id}

Fields

§guild_id: GuildId

The guild.

§integration_id: IntegrationId

The integration.

§

GetGuildWidgetSettings

Get Guild Widget Settings.

GET /guilds/{guild_id}/widget

Fields

§guild_id: GuildId

The guild.

§

ModifyGuildWidget

Modify Guild Widget.

PATCH /guilds/{guild_id}/widget

Fields

§guild_id: GuildId

The guild.

§

GetGuildWidget

Get Guild Widget.

GET /guilds/{guild_id}/widget.json

Fields

§guild_id: GuildId

The guild.

§

GetGuildVanityUrl

Get Guild Vanity URL.

GET /guilds/{guild_id}/vanity-url

Fields

§guild_id: GuildId

The guild.

§

GetGuildWelcomeScreen

Get Guild Welcome Screen.

GET /guilds/{guild_id}/welcome-screen

Fields

§guild_id: GuildId

The guild.

§

ModifyGuildWelcomeScreen

Modify Guild Welcome Screen.

PATCH /guilds/{guild_id}/welcome-screen

Fields

§guild_id: GuildId

The guild.

§

GetGuildOnboarding

Get Guild Onboarding.

GET /guilds/{guild_id}/onboarding

Fields

§guild_id: GuildId

The guild.

§

ModifyGuildOnboarding

Modify Guild Onboarding.

PUT /guilds/{guild_id}/onboarding

Fields

§guild_id: GuildId

The guild.

§

ModifyGuildIncidentActions

Modify Guild Incident Actions.

PUT /guilds/{guild_id}/incident-actions

Fields

§guild_id: GuildId

The guild.

§

GetCurrentUser

Get Current User.

GET /users/@me

§

GetUser

Get User.

GET /users/{user_id}

Fields

§user_id: UserId

The user.

§

ModifyCurrentUser

Modify Current User.

PATCH /users/@me

§

GetCurrentUserGuilds

Get Current User Guilds.

GET /users/@me/guilds

§

GetCurrentUserGuildMember

Get Current User Guild Member.

GET /users/@me/guilds/{guild_id}/member

Fields

§guild_id: GuildId

The guild.

§

LeaveGuild

Leave Guild.

DELETE /users/@me/guilds/{guild_id}

Fields

§guild_id: GuildId

The guild.

§

CreateDm

Create DM.

POST /users/@me/channels

§

CreateGroupDm

Create Group DM: the same endpoint as CreateDm, with access tokens.

POST /users/@me/channels

§

GetCurrentUserConnections

Get Current User Connections.

GET /users/@me/connections

§

GetCurrentUserApplicationRoleConnection

Get Current User Application Role Connection.

GET /users/@me/applications/{application_id}/role-connection

Fields

§application_id: ApplicationId

The application.

§

UpdateCurrentUserApplicationRoleConnection

Update Current User Application Role Connection.

PUT /users/@me/applications/{application_id}/role-connection

Fields

§application_id: ApplicationId

The application.

§

DeleteCurrentUserApplicationRoleConnection

Delete Current User Application Role Connection.

DELETE /users/@me/applications/{application_id}/role-connection

Fields

§application_id: ApplicationId

The application.

§

CreateWebhook

Create Webhook.

POST /channels/{channel_id}/webhooks

Fields

§channel_id: ChannelId

The channel.

§

GetChannelWebhooks

Get Channel Webhooks.

GET /channels/{channel_id}/webhooks

Fields

§channel_id: ChannelId

The channel.

§

GetGuildWebhooks

Get Guild Webhooks.

GET /guilds/{guild_id}/webhooks

Fields

§guild_id: GuildId

The guild.

§

GetWebhook

Get Webhook.

GET /webhooks/{webhook_id}

Fields

§webhook_id: WebhookId

The webhook.

§

GetWebhookWithToken

Get Webhook with Token.

GET /webhooks/{webhook_id}/{webhook_token}

Fields

§webhook_id: WebhookId

The webhook.

§webhook_token: &'a str

The webhook’s token.

§

ModifyWebhook

Modify Webhook.

PATCH /webhooks/{webhook_id}

Fields

§webhook_id: WebhookId

The webhook.

§

ModifyWebhookWithToken

Modify Webhook with Token.

PATCH /webhooks/{webhook_id}/{webhook_token}

Fields

§webhook_id: WebhookId

The webhook.

§webhook_token: &'a str

The webhook’s token.

§

DeleteWebhook

Delete Webhook.

DELETE /webhooks/{webhook_id}

Fields

§webhook_id: WebhookId

The webhook.

§

DeleteWebhookWithToken

Delete Webhook with Token.

DELETE /webhooks/{webhook_id}/{webhook_token}

Fields

§webhook_id: WebhookId

The webhook.

§webhook_token: &'a str

The webhook’s token.

§

ExecuteWebhook

Execute Webhook.

POST /webhooks/{webhook_id}/{webhook_token}

Fields

§webhook_id: WebhookId

The webhook.

§webhook_token: &'a str

The webhook’s token.

§

GetWebhookMessage

Get Webhook Message.

GET /webhooks/{webhook_id}/{webhook_token}/messages/{message_id}

Fields

§webhook_id: WebhookId

The webhook.

§webhook_token: &'a str

The webhook’s token.

§message_id: MessageId

The message.

§

EditWebhookMessage

Edit Webhook Message.

PATCH /webhooks/{webhook_id}/{webhook_token}/messages/{message_id}

Fields

§webhook_id: WebhookId

The webhook.

§webhook_token: &'a str

The webhook’s token.

§message_id: MessageId

The message.

§

DeleteWebhookMessage

Delete Webhook Message.

DELETE /webhooks/{webhook_id}/{webhook_token}/messages/{message_id}

Fields

§webhook_id: WebhookId

The webhook.

§webhook_token: &'a str

The webhook’s token.

§message_id: MessageId

The message.

§

ListGuildEmojis

List Guild Emojis.

GET /guilds/{guild_id}/emojis

Fields

§guild_id: GuildId

The guild.

§

GetGuildEmoji

Get Guild Emoji.

GET /guilds/{guild_id}/emojis/{emoji_id}

Fields

§guild_id: GuildId

The guild.

§emoji_id: EmojiId

The emoji.

§

CreateGuildEmoji

Create Guild Emoji.

POST /guilds/{guild_id}/emojis

Fields

§guild_id: GuildId

The guild.

§

ModifyGuildEmoji

Modify Guild Emoji.

PATCH /guilds/{guild_id}/emojis/{emoji_id}

Fields

§guild_id: GuildId

The guild.

§emoji_id: EmojiId

The emoji.

§

DeleteGuildEmoji

Delete Guild Emoji.

DELETE /guilds/{guild_id}/emojis/{emoji_id}

Fields

§guild_id: GuildId

The guild.

§emoji_id: EmojiId

The emoji.

§

ListApplicationEmojis

List Application Emojis.

GET /applications/{application_id}/emojis

Fields

§application_id: ApplicationId

The application.

§

GetApplicationEmoji

Get Application Emoji.

GET /applications/{application_id}/emojis/{emoji_id}

Fields

§application_id: ApplicationId

The application.

§emoji_id: EmojiId

The emoji.

§

CreateApplicationEmoji

Create Application Emoji.

POST /applications/{application_id}/emojis

Fields

§application_id: ApplicationId

The application.

§

ModifyApplicationEmoji

Modify Application Emoji.

PATCH /applications/{application_id}/emojis/{emoji_id}

Fields

§application_id: ApplicationId

The application.

§emoji_id: EmojiId

The emoji.

§

DeleteApplicationEmoji

Delete Application Emoji.

DELETE /applications/{application_id}/emojis/{emoji_id}

Fields

§application_id: ApplicationId

The application.

§emoji_id: EmojiId

The emoji.

§

GetSticker

Get Sticker.

GET /stickers/{sticker_id}

Fields

§sticker_id: StickerId

The sticker.

§

ListStickerPacks

List Sticker Packs.

GET /sticker-packs

§

GetStickerPack

Get Sticker Pack.

GET /sticker-packs/{pack_id}

Fields

§pack_id: StickerPackId

The sticker pack.

§

ListGuildStickers

List Guild Stickers.

GET /guilds/{guild_id}/stickers

Fields

§guild_id: GuildId

The guild.

§

GetGuildSticker

Get Guild Sticker.

GET /guilds/{guild_id}/stickers/{sticker_id}

Fields

§guild_id: GuildId

The guild.

§sticker_id: StickerId

The sticker.

§

CreateGuildSticker

Create Guild Sticker.

POST /guilds/{guild_id}/stickers

Fields

§guild_id: GuildId

The guild.

§

ModifyGuildSticker

Modify Guild Sticker.

PATCH /guilds/{guild_id}/stickers/{sticker_id}

Fields

§guild_id: GuildId

The guild.

§sticker_id: StickerId

The sticker.

§

DeleteGuildSticker

Delete Guild Sticker.

DELETE /guilds/{guild_id}/stickers/{sticker_id}

Fields

§guild_id: GuildId

The guild.

§sticker_id: StickerId

The sticker.

§

SendSoundboardSound

Send Soundboard Sound.

POST /channels/{channel_id}/send-soundboard-sound

Fields

§channel_id: ChannelId

The voice channel.

§

ListDefaultSoundboardSounds

List Default Soundboard Sounds.

GET /soundboard-default-sounds

§

ListGuildSoundboardSounds

List Guild Soundboard Sounds.

GET /guilds/{guild_id}/soundboard-sounds

Fields

§guild_id: GuildId

The guild.

§

GetGuildSoundboardSound

Get Guild Soundboard Sound.

GET /guilds/{guild_id}/soundboard-sounds/{sound_id}

Fields

§guild_id: GuildId

The guild.

§sound_id: SoundboardSoundId

The sound.

§

CreateGuildSoundboardSound

Create Guild Soundboard Sound.

POST /guilds/{guild_id}/soundboard-sounds

Fields

§guild_id: GuildId

The guild.

§

ModifyGuildSoundboardSound

Modify Guild Soundboard Sound.

PATCH /guilds/{guild_id}/soundboard-sounds/{sound_id}

Fields

§guild_id: GuildId

The guild.

§sound_id: SoundboardSoundId

The sound.

§

DeleteGuildSoundboardSound

Delete Guild Soundboard Sound.

DELETE /guilds/{guild_id}/soundboard-sounds/{sound_id}

Fields

§guild_id: GuildId

The guild.

§sound_id: SoundboardSoundId

The sound.

§

ListScheduledEventsForGuild

List Scheduled Events for Guild.

GET /guilds/{guild_id}/scheduled-events

Fields

§guild_id: GuildId

The guild.

§

CreateGuildScheduledEvent

Create Guild Scheduled Event.

POST /guilds/{guild_id}/scheduled-events

Fields

§guild_id: GuildId

The guild.

§

GetGuildScheduledEvent

Get Guild Scheduled Event.

GET /guilds/{guild_id}/scheduled-events/{event_id}

Fields

§guild_id: GuildId

The guild.

§event_id: ScheduledEventId

The event.

§

ModifyGuildScheduledEvent

Modify Guild Scheduled Event.

PATCH /guilds/{guild_id}/scheduled-events/{event_id}

Fields

§guild_id: GuildId

The guild.

§event_id: ScheduledEventId

The event.

§

DeleteGuildScheduledEvent

Delete Guild Scheduled Event.

DELETE /guilds/{guild_id}/scheduled-events/{event_id}

Fields

§guild_id: GuildId

The guild.

§event_id: ScheduledEventId

The event.

§

GetGuildScheduledEventUsers

Get Guild Scheduled Event Users.

GET /guilds/{guild_id}/scheduled-events/{event_id}/users

Fields

§guild_id: GuildId

The guild.

§event_id: ScheduledEventId

The event.

§

CreateStageInstance

Create Stage Instance.

POST /stage-instances

§

GetStageInstance

Get Stage Instance.

GET /stage-instances/{channel_id}

Fields

§channel_id: ChannelId

The stage channel.

§

ModifyStageInstance

Modify Stage Instance.

PATCH /stage-instances/{channel_id}

Fields

§channel_id: ChannelId

The stage channel.

§

DeleteStageInstance

Delete Stage Instance.

DELETE /stage-instances/{channel_id}

Fields

§channel_id: ChannelId

The stage channel.

§

GetInvite

Get Invite.

GET /invites/{invite_code}

Fields

§invite_code: &'a str

The invite code.

§

DeleteInvite

Delete Invite.

DELETE /invites/{invite_code}

Fields

§invite_code: &'a str

The invite code.

§

GetTargetUsers

Get Target Users.

GET /invites/{invite_code}/target-users

Fields

§invite_code: &'a str

The invite code.

§

AddTargetUser

Add Target User.

PUT /invites/{invite_code}/target-users/{user_id}

Fields

§invite_code: &'a str

The invite code.

§user_id: UserId

The user.

§

RemoveTargetUser

Remove Target User.

DELETE /invites/{invite_code}/target-users/{user_id}

Fields

§invite_code: &'a str

The invite code.

§user_id: UserId

The user.

§

UpdateTargetUsers

Update Target Users.

PUT /invites/{invite_code}/target-users

Fields

§invite_code: &'a str

The invite code.

§

BulkAddTargetUsers

Bulk-Add Target Users.

POST /invites/{invite_code}/target-users/bulk-add

Fields

§invite_code: &'a str

The invite code.

§

BulkDeleteTargetUsers

Bulk-Delete Target Users.

POST /invites/{invite_code}/target-users/bulk-delete

Fields

§invite_code: &'a str

The invite code.

§

GetTargetUsersJobStatus

Get Target Users Job Status.

GET /invites/{invite_code}/target-users/job-status

Fields

§invite_code: &'a str

The invite code.

§

GetGuildTemplate

Get Guild Template.

GET /guilds/templates/{template_code}

Fields

§template_code: &'a str

The template code.

§

GetGuildTemplates

Get Guild Templates.

GET /guilds/{guild_id}/templates

Fields

§guild_id: GuildId

The guild.

§

CreateGuildTemplate

Create Guild Template.

POST /guilds/{guild_id}/templates

Fields

§guild_id: GuildId

The guild.

§

SyncGuildTemplate

Sync Guild Template.

PUT /guilds/{guild_id}/templates/{template_code}

Fields

§guild_id: GuildId

The guild.

§template_code: &'a str

The template code.

§

ModifyGuildTemplate

Modify Guild Template.

PATCH /guilds/{guild_id}/templates/{template_code}

Fields

§guild_id: GuildId

The guild.

§template_code: &'a str

The template code.

§

DeleteGuildTemplate

Delete Guild Template.

DELETE /guilds/{guild_id}/templates/{template_code}

Fields

§guild_id: GuildId

The guild.

§template_code: &'a str

The template code.

§

GetGuildAuditLog

Get Guild Audit Log.

GET /guilds/{guild_id}/audit-logs

Fields

§guild_id: GuildId

The guild.

§

GetAnswerVoters

Get Answer Voters.

GET /channels/{channel_id}/polls/{message_id}/answers/{answer_id}

Fields

§channel_id: ChannelId

The channel.

§message_id: MessageId

The message with the poll.

§answer_id: u32

The answer’s answer_id.

§

EndPoll

End Poll.

POST /channels/{channel_id}/polls/{message_id}/expire

Fields

§channel_id: ChannelId

The channel.

§message_id: MessageId

The message with the poll.

§

ListVoiceRegions

List Voice Regions.

GET /voice/regions

§

GetCurrentUserVoiceState

Get Current User Voice State.

GET /guilds/{guild_id}/voice-states/@me

Fields

§guild_id: GuildId

The guild.

§

GetUserVoiceState

Get User Voice State.

GET /guilds/{guild_id}/voice-states/{user_id}

Fields

§guild_id: GuildId

The guild.

§user_id: UserId

The user.

§

ModifyCurrentUserVoiceState

Modify Current User Voice State.

PATCH /guilds/{guild_id}/voice-states/@me

Fields

§guild_id: GuildId

The guild.

§

ModifyUserVoiceState

Modify User Voice State.

PATCH /guilds/{guild_id}/voice-states/{user_id}

Fields

§guild_id: GuildId

The guild.

§user_id: UserId

The user.

§

CreateLobby

Create Lobby.

POST /lobbies

§

CreateOrJoinLobby

Create or Join Lobby.

PUT /lobbies

§

GetLobby

Get Lobby.

GET /lobbies/{lobby_id}

Fields

§lobby_id: LobbyId

The lobby.

§

ModifyLobby

Modify Lobby.

PATCH /lobbies/{lobby_id}

Fields

§lobby_id: LobbyId

The lobby.

§

DeleteLobby

Delete Lobby.

DELETE /lobbies/{lobby_id}

Fields

§lobby_id: LobbyId

The lobby.

§

AddLobbyMember

Add a Member to a Lobby.

PUT /lobbies/{lobby_id}/members/{user_id}

Fields

§lobby_id: LobbyId

The lobby.

§user_id: UserId

The user.

§

BulkUpdateLobbyMembers

Bulk Update Lobby Members.

POST /lobbies/{lobby_id}/members/bulk

Fields

§lobby_id: LobbyId

The lobby.

§

RemoveLobbyMember

Remove a Member from a Lobby.

DELETE /lobbies/{lobby_id}/members/{user_id}

Fields

§lobby_id: LobbyId

The lobby.

§user_id: UserId

The user.

§

LeaveLobby

Leave Lobby.

DELETE /lobbies/{lobby_id}/members/@me

Fields

§lobby_id: LobbyId

The lobby.

§

LinkChannelToLobby

Link Channel to Lobby.

PATCH /lobbies/{lobby_id}/channel-linking

Fields

§lobby_id: LobbyId

The lobby.

§

UnlinkChannelFromLobby

Unlink Channel from Lobby.

PATCH /lobbies/{lobby_id}/channel-linking

Fields

§lobby_id: LobbyId

The lobby.

§

SendLobbyMessage

Send Lobby Message.

POST /lobbies/{lobby_id}/messages

Fields

§lobby_id: LobbyId

The lobby.

§

GetLobbyMessages

Get Lobby Messages.

GET /lobbies/{lobby_id}/messages

Fields

§lobby_id: LobbyId

The lobby.

§

UpdateLobbyMessageModerationMetadata

Update Lobby Message Moderation Metadata.

PUT /lobbies/{lobby_id}/messages/{message_id}/moderation-metadata

Fields

§lobby_id: LobbyId

The lobby.

§message_id: MessageId

The lobby message.

§

CreateLobbyChannelInviteForSelf

Create Lobby Channel Invite for Self.

POST /lobbies/{lobby_id}/members/@me/invites

Fields

§lobby_id: LobbyId

The lobby.

§

CreateLobbyChannelInviteForUser

Create Lobby Channel Invite for User.

POST /lobbies/{lobby_id}/members/{user_id}/invites

Fields

§lobby_id: LobbyId

The lobby.

§user_id: UserId

The user.

§

GetCurrentBotApplicationInformation

Get Current Bot Application Information.

GET /oauth2/applications/@me

§

GetCurrentAuthorizationInformation

§

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

Fields

§application_id: ApplicationId

The application.

§user_id: UserId

The Discord user.

§provider_issued_user_id: &'a str

The user’s ID in the app’s system.

§

GetApplicationIdentityProfile

Get Application Identity Profile.

GET /applications/{application_id}/users/{user_id}/identities/{provider_issued_user_id}/profile

Fields

§application_id: ApplicationId

The application.

§user_id: UserId

The Discord user.

§provider_issued_user_id: &'a str

The user’s ID in the app’s system.

§

GetApplicationIdentitiesByUserId

Get Application Identities by User ID.

GET /users/{user_id}/application-identities/{application_id}

Fields

§user_id: UserId

The Discord user.

§application_id: ApplicationId

The application.

§

GetApplicationIdentitiesByExternalId

Get Application Identities by External ID.

GET /applications/{application_id}/application-identities/{provider_type}/{provider_issued_user_id}

Fields

§application_id: ApplicationId

The application.

§provider_type: &'a str

The external account provider type.

§provider_issued_user_id: &'a str

The user’s ID in the external system.

§

DeleteApplicationIdentity

Delete Application Identity.

POST /users/{user_id}/application-identities/{application_id}/{provider_type}/{provider_issued_user_id}/delete

Fields

§user_id: UserId

The Discord user.

§application_id: ApplicationId

The application.

§provider_type: &'a str

The external account provider type.

§provider_issued_user_id: &'a str

The user’s ID in the external system.

§

GetCurrentApplication

Get Current Application.

GET /applications/@me

§

EditCurrentApplication

Edit Current Application.

PATCH /applications/@me

§

GetApplicationActivityInstance

Get Application Activity Instance.

GET /applications/{application_id}/activity-instances/{instance_id}

Fields

§application_id: ApplicationId

The application.

§instance_id: &'a str

The instance (i-…).

§

GetApplicationRoleConnectionMetadataRecords

Get Application Role Connection Metadata Records.

GET /applications/{application_id}/role-connections/metadata

Fields

§application_id: ApplicationId

The application.

§

UpdateApplicationRoleConnectionMetadataRecords

Update Application Role Connection Metadata Records.

PUT /applications/{application_id}/role-connections/metadata

Fields

§application_id: ApplicationId

The application.

§

ListSkus

List SKUs.

GET /applications/{application_id}/skus

Fields

§application_id: ApplicationId

The application.

§

ListEntitlements

List Entitlements.

GET /applications/{application_id}/entitlements

Fields

§application_id: ApplicationId

The application.

§

GetEntitlement

Get Entitlement.

GET /applications/{application_id}/entitlements/{entitlement_id}

Fields

§application_id: ApplicationId

The application.

§entitlement_id: EntitlementId

The entitlement.

§

ConsumeEntitlement

Consume an Entitlement.

POST /applications/{application_id}/entitlements/{entitlement_id}/consume

Fields

§application_id: ApplicationId

The application.

§entitlement_id: EntitlementId

The entitlement.

§

CreateTestEntitlement

Create Test Entitlement.

POST /applications/{application_id}/entitlements

Fields

§application_id: ApplicationId

The application.

§

DeleteTestEntitlement

Delete Test Entitlement.

DELETE /applications/{application_id}/entitlements/{entitlement_id}

Fields

§application_id: ApplicationId

The application.

§entitlement_id: EntitlementId

The test entitlement.

§

ListSkuSubscriptions

List SKU Subscriptions.

GET /skus/{sku_id}/subscriptions

Fields

§sku_id: SkuId

The SKU.

§

GetSkuSubscription

Get SKU Subscription.

GET /skus/{sku_id}/subscriptions/{subscription_id}

Fields

§sku_id: SkuId

The SKU.

§subscription_id: SubscriptionId

The subscription.

§

ListAutoModerationRulesForGuild

List Auto Moderation Rules for Guild.

GET /guilds/{guild_id}/auto-moderation/rules

Fields

§guild_id: GuildId

The guild.

§

GetAutoModerationRule

Get Auto Moderation Rule.

GET /guilds/{guild_id}/auto-moderation/rules/{rule_id}

Fields

§guild_id: GuildId

The guild.

§rule_id: AutoModerationRuleId

The rule.

§

CreateAutoModerationRule

Create Auto Moderation Rule.

POST /guilds/{guild_id}/auto-moderation/rules

Fields

§guild_id: GuildId

The guild.

§

ModifyAutoModerationRule

Modify Auto Moderation Rule.

PATCH /guilds/{guild_id}/auto-moderation/rules/{rule_id}

Fields

§guild_id: GuildId

The guild.

§rule_id: AutoModerationRuleId

The rule.

§

DeleteAutoModerationRule

Delete Auto Moderation Rule.

DELETE /guilds/{guild_id}/auto-moderation/rules/{rule_id}

Fields

§guild_id: GuildId

The guild.

§rule_id: AutoModerationRuleId

The rule.

§

GetChannel

Get Channel.

GET /channels/{channel_id}

Fields

§channel_id: ChannelId

The channel.

§

ModifyChannel

Modify Channel.

PATCH /channels/{channel_id}

Fields

§channel_id: ChannelId

The channel.

§

DeleteChannel

Delete/Close Channel.

DELETE /channels/{channel_id}

Fields

§channel_id: ChannelId

The channel.

§

GetChannelMemberPermissions

Get Channel Member Permissions.

GET /channels/{channel_id}/permissions/member/{user_id}

Fields

§channel_id: ChannelId

The channel.

§user_id: UserId

The user.

§

GetChannelRolePermissions

Get Channel Role Permissions.

GET /channels/{channel_id}/permissions/role/{role_id}

Fields

§channel_id: ChannelId

The channel.

§role_id: RoleId

The role.

§

SetVoiceChannelStatus

Set Voice Channel Status.

PUT /channels/{channel_id}/voice-status

Fields

§channel_id: ChannelId

The channel.

§

EditChannelPermissions

Edit Channel Permissions.

PUT /channels/{channel_id}/permissions/{overwrite_id}

Fields

§channel_id: ChannelId

The channel.

§overwrite_id: GenericId

The role or user of the overwrite.

§

DeleteChannelPermission

Delete Channel Permission.

DELETE /channels/{channel_id}/permissions/{overwrite_id}

Fields

§channel_id: ChannelId

The channel.

§overwrite_id: GenericId

The role or user of the overwrite.

§

GetChannelInvites

Get Channel Invites.

GET /channels/{channel_id}/invites

Fields

§channel_id: ChannelId

The channel.

§

CreateChannelInvite

Create Channel Invite.

POST /channels/{channel_id}/invites

Fields

§channel_id: ChannelId

The channel.

§

FollowAnnouncementChannel

Follow Announcement Channel.

POST /channels/{channel_id}/followers

Fields

§channel_id: ChannelId

The channel.

§

TriggerTypingIndicator

Trigger Typing Indicator.

POST /channels/{channel_id}/typing

Fields

§channel_id: ChannelId

The channel.

§

GroupDmAddRecipient

Group DM Add Recipient.

PUT /channels/{channel_id}/recipients/{user_id}

Fields

§channel_id: ChannelId

The channel.

§user_id: UserId

The user.

§

GroupDmRemoveRecipient

Group DM Remove Recipient.

DELETE /channels/{channel_id}/recipients/{user_id}

Fields

§channel_id: ChannelId

The channel.

§user_id: UserId

The user.

§

StartThreadFromMessage

Start Thread from Message.

POST /channels/{channel_id}/messages/{message_id}/threads

Fields

§channel_id: ChannelId

The channel.

§message_id: MessageId

The message the thread starts from.

§

StartThreadWithoutMessage

Start Thread without Message.

POST /channels/{channel_id}/threads

Fields

§channel_id: ChannelId

The 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: ChannelId

The channel.

§

JoinThread

Join Thread.

PUT /channels/{channel_id}/thread-members/@me

Fields

§channel_id: ChannelId

The thread.

§

AddThreadMember

Add Thread Member.

PUT /channels/{channel_id}/thread-members/{user_id}

Fields

§channel_id: ChannelId

The thread.

§user_id: UserId

The user.

§

LeaveThread

Leave Thread.

DELETE /channels/{channel_id}/thread-members/@me

Fields

§channel_id: ChannelId

The thread.

§

RemoveThreadMember

Remove Thread Member.

DELETE /channels/{channel_id}/thread-members/{user_id}

Fields

§channel_id: ChannelId

The thread.

§user_id: UserId

The user.

§

GetThreadMember

Get Thread Member.

GET /channels/{channel_id}/thread-members/{user_id}

Fields

§channel_id: ChannelId

The thread.

§user_id: UserId

The user.

§

ListThreadMembers

List Thread Members.

GET /channels/{channel_id}/thread-members

Fields

§channel_id: ChannelId

The thread.

§

ListPublicArchivedThreads

List Public Archived Threads.

GET /channels/{channel_id}/threads/archived/public

Fields

§channel_id: ChannelId

The channel.

§

ListPrivateArchivedThreads

List Private Archived Threads.

GET /channels/{channel_id}/threads/archived/private

Fields

§channel_id: ChannelId

The channel.

§

ListJoinedPrivateArchivedThreads

List Joined Private Archived Threads.

GET /channels/{channel_id}/users/@me/threads/archived/private

Fields

§channel_id: ChannelId

The channel.

§

GetChannelMessages

Get Channel Messages.

GET /channels/{channel_id}/messages

Fields

§channel_id: ChannelId

The channel.

§

SearchGuildMessages

Search Guild Messages.

GET /guilds/{guild_id}/messages/search

Fields

§guild_id: GuildId

The guild.

§

GetChannelMessage

Get Channel Message.

GET /channels/{channel_id}/messages/{message_id}

Fields

§channel_id: ChannelId

The channel.

§message_id: MessageId

The message.

§

CreateMessage

Create Message.

POST /channels/{channel_id}/messages

Fields

§channel_id: ChannelId

The channel to send the message in.

§

CrosspostMessage

Crosspost Message.

POST /channels/{channel_id}/messages/{message_id}/crosspost

Fields

§channel_id: ChannelId

The announcement channel.

§message_id: MessageId

The message to publish.

§

CreateReaction

Create Reaction.

PUT /channels/{channel_id}/messages/{message_id}/reactions/{emoji}/@me

Fields

§channel_id: ChannelId

The channel.

§message_id: MessageId

The message.

§emoji: ReactionEmoji<'a>

The emoji.

§

DeleteOwnReaction

Delete Own Reaction.

DELETE /channels/{channel_id}/messages/{message_id}/reactions/{emoji}/@me

Fields

§channel_id: ChannelId

The channel.

§message_id: MessageId

The message.

§emoji: ReactionEmoji<'a>

The emoji.

§

DeleteUserReaction

Delete User Reaction.

DELETE /channels/{channel_id}/messages/{message_id}/reactions/{emoji}/{user_id}

Fields

§channel_id: ChannelId

The channel.

§message_id: MessageId

The message.

§emoji: ReactionEmoji<'a>

The emoji.

§user_id: UserId

The user whose reaction is removed.

§

GetReactions

Get Reactions.

GET /channels/{channel_id}/messages/{message_id}/reactions/{emoji}

Fields

§channel_id: ChannelId

The channel.

§message_id: MessageId

The message.

§emoji: ReactionEmoji<'a>

The emoji.

§

DeleteAllReactions

Delete All Reactions.

DELETE /channels/{channel_id}/messages/{message_id}/reactions

Fields

§channel_id: ChannelId

The channel.

§message_id: MessageId

The message.

§

DeleteAllReactionsForEmoji

Delete All Reactions for Emoji.

DELETE /channels/{channel_id}/messages/{message_id}/reactions/{emoji}

Fields

§channel_id: ChannelId

The channel.

§message_id: MessageId

The message.

§emoji: ReactionEmoji<'a>

The emoji.

§

EditMessage

Edit Message.

PATCH /channels/{channel_id}/messages/{message_id}

Fields

§channel_id: ChannelId

The channel.

§message_id: MessageId

The message.

§

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: ChannelId

The channel of the message.

§message_id: MessageId

The message to delete.

§

BulkDeleteMessages

Bulk Delete Messages.

POST /channels/{channel_id}/messages/bulk-delete

Fields

§channel_id: ChannelId

The channel.

§

GetChannelPins

Get Channel Pins.

GET /channels/{channel_id}/messages/pins

Fields

§channel_id: ChannelId

The channel.

§

PinMessage

Pin Message.

PUT /channels/{channel_id}/messages/pins/{message_id}

Fields

§channel_id: ChannelId

The channel.

§message_id: MessageId

The message.

§

UnpinMessage

Unpin Message.

DELETE /channels/{channel_id}/messages/pins/{message_id}

Fields

§channel_id: ChannelId

The channel.

§message_id: MessageId

The message.

§

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: InteractionId

The interaction.

§interaction_token: &'a str

The interaction’s token.

§

GetOriginalInteractionResponse

Get Original Interaction Response.

GET /webhooks/{application_id}/{interaction_token}/messages/@original

Fields

§application_id: ApplicationId

The application.

§interaction_token: &'a str

The interaction’s token.

§

EditOriginalInteractionResponse

Edit Original Interaction Response.

PATCH /webhooks/{application_id}/{interaction_token}/messages/@original

Fields

§application_id: ApplicationId

The application.

§interaction_token: &'a str

The interaction’s token.

§

DeleteOriginalInteractionResponse

Delete Original Interaction Response.

DELETE /webhooks/{application_id}/{interaction_token}/messages/@original

Fields

§application_id: ApplicationId

The application.

§interaction_token: &'a str

The interaction’s token.

§

CreateFollowupMessage

Create Followup Message.

POST /webhooks/{application_id}/{interaction_token}

Fields

§application_id: ApplicationId

The application.

§interaction_token: &'a str

The interaction’s token.

§

GetFollowupMessage

Get Followup Message.

GET /webhooks/{application_id}/{interaction_token}/messages/{message_id}

Fields

§application_id: ApplicationId

The application.

§interaction_token: &'a str

The interaction’s token.

§message_id: MessageId

The follow-up message.

§

EditFollowupMessage

Edit Followup Message.

PATCH /webhooks/{application_id}/{interaction_token}/messages/{message_id}

Fields

§application_id: ApplicationId

The application.

§interaction_token: &'a str

The interaction’s token.

§message_id: MessageId

The follow-up message.

§

DeleteFollowupMessage

Delete Followup Message.

DELETE /webhooks/{application_id}/{interaction_token}/messages/{message_id}

Fields

§application_id: ApplicationId

The application.

§interaction_token: &'a str

The interaction’s token.

§message_id: MessageId

The follow-up message.

§

GetGlobalApplicationCommands

Get Global Application Commands.

GET /applications/{application_id}/commands

Fields

§application_id: ApplicationId

The application.

§

CreateGlobalApplicationCommand

Create Global Application Command.

POST /applications/{application_id}/commands

Fields

§application_id: ApplicationId

The application.

§

GetGlobalApplicationCommand

Get Global Application Command.

GET /applications/{application_id}/commands/{command_id}

Fields

§application_id: ApplicationId

The application.

§command_id: CommandId

The command.

§

EditGlobalApplicationCommand

Edit Global Application Command.

PATCH /applications/{application_id}/commands/{command_id}

Fields

§application_id: ApplicationId

The application.

§command_id: CommandId

The command.

§

DeleteGlobalApplicationCommand

Delete Global Application Command.

DELETE /applications/{application_id}/commands/{command_id}

Fields

§application_id: ApplicationId

The application.

§command_id: CommandId

The command.

§

BulkOverwriteGlobalApplicationCommands

Bulk Overwrite Global Application Commands.

PUT /applications/{application_id}/commands

Fields

§application_id: ApplicationId

The application.

§

GetGuildApplicationCommands

Get Guild Application Commands.

GET /applications/{application_id}/guilds/{guild_id}/commands

Fields

§application_id: ApplicationId

The application.

§guild_id: GuildId

The guild.

§

CreateGuildApplicationCommand

Create Guild Application Command.

POST /applications/{application_id}/guilds/{guild_id}/commands

Fields

§application_id: ApplicationId

The application.

§guild_id: GuildId

The guild.

§

GetGuildApplicationCommand

Get Guild Application Command.

GET /applications/{application_id}/guilds/{guild_id}/commands/{command_id}

Fields

§application_id: ApplicationId

The application.

§guild_id: GuildId

The guild.

§command_id: CommandId

The command.

§

EditGuildApplicationCommand

Edit Guild Application Command.

PATCH /applications/{application_id}/guilds/{guild_id}/commands/{command_id}

Fields

§application_id: ApplicationId

The application.

§guild_id: GuildId

The guild.

§command_id: CommandId

The command.

§

DeleteGuildApplicationCommand

Delete Guild Application Command.

DELETE /applications/{application_id}/guilds/{guild_id}/commands/{command_id}

Fields

§application_id: ApplicationId

The application.

§guild_id: GuildId

The guild.

§command_id: CommandId

The command.

§

BulkOverwriteGuildApplicationCommands

Bulk Overwrite Guild Application Commands.

PUT /applications/{application_id}/guilds/{guild_id}/commands

Fields

§application_id: ApplicationId

The application.

§guild_id: GuildId

The guild.

§

GetGuildApplicationCommandPermissions

Get Guild Application Command Permissions.

GET /applications/{application_id}/guilds/{guild_id}/commands/permissions

Fields

§application_id: ApplicationId

The application.

§guild_id: GuildId

The guild.

§

GetApplicationCommandPermissions

Get Application Command Permissions.

GET /applications/{application_id}/guilds/{guild_id}/commands/{command_id}/permissions

Fields

§application_id: ApplicationId

The application.

§guild_id: GuildId

The guild.

§command_id: CommandId

The 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

Fields

§application_id: ApplicationId

The application.

§guild_id: GuildId

The guild.

§command_id: CommandId

The command.

Implementations§

Source§

impl Route<'_>

Source

pub fn method(self) -> Method

Returns the HTTP method of the route.

discord.js counterpart: the method REST#request is given (@discordjs/rest).

Source

pub fn path(self) -> String

Returns the path of the route, relative to the versioned API base (e.g. /channels/42/messages).

discord.js counterpart: the fullRoute REST#request is given (@discordjs/rest).

Trait Implementations§

Source§

impl<'a> Clone for Route<'a>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for Route<'a>

Source§

impl Debug for Route<'_>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Eq for Route<'a>

Source§

impl<'a> Hash for Route<'a>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<'a> PartialEq for Route<'a>

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more