Enum serenity::http::routing::RouteInfo[][src]

#[non_exhaustive]
pub enum RouteInfo<'a> {
Show 141 variants AddMemberRole { guild_id: u64, role_id: u64, user_id: u64, }, GuildBanUser { guild_id: u64, user_id: u64, delete_message_days: Option<u8>, reason: Option<&'a str>, }, BroadcastTyping { channel_id: u64, }, CreateChannel { guild_id: u64, }, CreateStageInstance, CreatePublicThread { channel_id: u64, message_id: u64, }, CreatePrivateThread { channel_id: u64, }, CreateEmoji { guild_id: u64, }, CreateFollowupMessage { application_id: u64, interaction_token: &'a str, }, CreateGlobalApplicationCommand { application_id: u64, }, CreateGlobalApplicationCommands { application_id: u64, }, CreateGuild, CreateGuildApplicationCommand { application_id: u64, guild_id: u64, }, CreateGuildApplicationCommands { application_id: u64, guild_id: u64, }, CreateGuildIntegration { guild_id: u64, integration_id: u64, }, CreateInteractionResponse { interaction_id: u64, interaction_token: &'a str, }, CreateInvite { channel_id: u64, }, CreateMessage { channel_id: u64, }, CreatePermission { channel_id: u64, target_id: u64, }, CreatePrivateChannel, CreateReaction { channel_id: u64, message_id: u64, reaction: &'a str, }, CreateRole { guild_id: u64, }, CreateWebhook { channel_id: u64, }, DeleteChannel { channel_id: u64, }, DeleteStageInstance { channel_id: u64, }, DeleteEmoji { guild_id: u64, emoji_id: u64, }, DeleteFollowupMessage { application_id: u64, interaction_token: &'a str, message_id: u64, }, DeleteGlobalApplicationCommand { application_id: u64, command_id: u64, }, DeleteGuild { guild_id: u64, }, DeleteGuildApplicationCommand { application_id: u64, guild_id: u64, command_id: u64, }, DeleteGuildIntegration { guild_id: u64, integration_id: u64, }, DeleteInvite { code: &'a str, }, DeleteMessage { channel_id: u64, message_id: u64, }, DeleteMessages { channel_id: u64, }, DeleteMessageReactions { channel_id: u64, message_id: u64, }, DeleteMessageReactionEmoji { channel_id: u64, message_id: u64, reaction: &'a str, }, DeleteOriginalInteractionResponse { application_id: u64, interaction_token: &'a str, }, DeletePermission { channel_id: u64, target_id: u64, }, DeleteReaction { channel_id: u64, message_id: u64, user: &'a str, reaction: &'a str, }, DeleteRole { guild_id: u64, role_id: u64, }, DeleteWebhook { webhook_id: u64, }, DeleteWebhookWithToken { token: &'a str, webhook_id: u64, }, DeleteWebhookMessage { token: &'a str, webhook_id: u64, message_id: u64, }, EditChannel { channel_id: u64, }, EditStageInstance { channel_id: u64, }, EditEmoji { guild_id: u64, emoji_id: u64, }, EditFollowupMessage { application_id: u64, interaction_token: &'a str, message_id: u64, }, EditGlobalApplicationCommand { application_id: u64, command_id: u64, }, EditGuild { guild_id: u64, }, EditGuildApplicationCommand { application_id: u64, guild_id: u64, command_id: u64, }, EditGuildApplicationCommandPermission { application_id: u64, guild_id: u64, command_id: u64, }, EditGuildApplicationCommandsPermissions { application_id: u64, guild_id: u64, }, EditGuildChannels { guild_id: u64, }, EditGuildWidget { guild_id: u64, }, EditGuildWelcomeScreen { guild_id: u64, }, EditMember { guild_id: u64, user_id: u64, }, EditMessage { channel_id: u64, message_id: u64, }, CrosspostMessage { channel_id: u64, message_id: u64, }, EditMemberMe { guild_id: u64, }, EditNickname { guild_id: u64, }, GetOriginalInteractionResponse { application_id: u64, interaction_token: &'a str, }, EditOriginalInteractionResponse { application_id: u64, interaction_token: &'a str, }, EditProfile, EditRole { guild_id: u64, role_id: u64, }, EditRolePosition { guild_id: u64, }, EditVoiceState { guild_id: u64, user_id: u64, }, EditVoiceStateMe { guild_id: u64, }, EditWebhook { webhook_id: u64, }, EditWebhookWithToken { token: &'a str, webhook_id: u64, }, EditWebhookMessage { token: &'a str, webhook_id: u64, message_id: u64, }, ExecuteWebhook { token: &'a str, wait: bool, webhook_id: u64, }, JoinThread { channel_id: u64, }, LeaveThread { channel_id: u64, }, AddThreadMember { channel_id: u64, user_id: u64, }, RemoveThreadMember { channel_id: u64, user_id: u64, }, GetActiveMaintenance, GetAuditLogs { action_type: Option<u8>, before: Option<u64>, guild_id: u64, limit: Option<u8>, user_id: Option<u64>, }, GetBans { guild_id: u64, }, GetBotGateway, GetChannel { channel_id: u64, }, GetChannelInvites { channel_id: u64, }, GetChannelWebhooks { channel_id: u64, }, GetChannels { guild_id: u64, }, GetStageInstance { channel_id: u64, }, GetChannelThreadMembers { channel_id: u64, }, GetChannelActiveThreads { channel_id: u64, }, GetChannelArchivedPublicThreads { channel_id: u64, before: Option<u64>, limit: Option<u64>, }, GetChannelArchivedPrivateThreads { channel_id: u64, before: Option<u64>, limit: Option<u64>, }, GetChannelJoinedPrivateArchivedThreads { channel_id: u64, before: Option<u64>, limit: Option<u64>, }, GetCurrentApplicationInfo, GetCurrentUser, GetEmojis { guild_id: u64, }, GetEmoji { guild_id: u64, emoji_id: u64, }, GetGateway, GetGlobalApplicationCommands { application_id: u64, }, GetGlobalApplicationCommand { application_id: u64, command_id: u64, }, GetGuild { guild_id: u64, }, GetGuildWithCounts { guild_id: u64, }, GetGuildApplicationCommands { application_id: u64, guild_id: u64, }, GetGuildApplicationCommand { application_id: u64, guild_id: u64, command_id: u64, }, GetGuildApplicationCommandsPermissions { application_id: u64, guild_id: u64, }, GetGuildApplicationCommandPermissions { application_id: u64, guild_id: u64, command_id: u64, }, GetGuildWidget { guild_id: u64, }, GetGuildPreview { guild_id: u64, }, GetGuildWelcomeScreen { guild_id: u64, }, GetGuildIntegrations { guild_id: u64, }, GetGuildInvites { guild_id: u64, }, GetGuildMembers { after: Option<u64>, limit: Option<u64>, guild_id: u64, }, GetGuildPruneCount { days: u64, guild_id: u64, }, GetGuildRegions { guild_id: u64, }, GetGuildRoles { guild_id: u64, }, GetGuildVanityUrl { guild_id: u64, }, GetGuildWebhooks { guild_id: u64, }, GetGuilds { after: Option<u64>, before: Option<u64>, limit: u64, }, GetInvite { code: &'a str, stats: bool, }, GetMember { guild_id: u64, user_id: u64, }, GetMessage { channel_id: u64, message_id: u64, }, GetMessages { channel_id: u64, query: String, }, GetPins { channel_id: u64, }, GetReactionUsers { after: Option<u64>, channel_id: u64, limit: u8, message_id: u64, reaction: String, }, GetUnresolvedIncidents, GetUpcomingMaintenances, GetUser { user_id: u64, }, GetUserConnections, GetUserDmChannels, GetVoiceRegions, GetWebhook { webhook_id: u64, }, GetWebhookWithToken { token: &'a str, webhook_id: u64, }, KickMember { guild_id: u64, user_id: u64, reason: &'a str, }, LeaveGroup { group_id: u64, }, LeaveGuild { guild_id: u64, }, PinMessage { channel_id: u64, message_id: u64, }, RemoveBan { guild_id: u64, user_id: u64, }, RemoveMemberRole { guild_id: u64, role_id: u64, user_id: u64, }, SearchGuildMembers { guild_id: u64, query: &'a str, limit: Option<u64>, }, StartGuildPrune { days: u64, guild_id: u64, }, StartIntegrationSync { guild_id: u64, integration_id: u64, }, StatusIncidentsUnresolved, StatusMaintenancesActive, StatusMaintenancesUpcoming, UnpinMessage { channel_id: u64, message_id: u64, },
}

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.
AddMemberRole

Fields of AddMemberRole

guild_id: u64role_id: u64user_id: u64
GuildBanUser

Fields of GuildBanUser

guild_id: u64user_id: u64delete_message_days: Option<u8>reason: Option<&'a str>
BroadcastTyping

Fields of BroadcastTyping

channel_id: u64
CreateChannel

Fields of CreateChannel

guild_id: u64
CreateStageInstance
CreatePublicThread

Fields of CreatePublicThread

channel_id: u64message_id: u64
CreatePrivateThread

Fields of CreatePrivateThread

channel_id: u64
CreateEmoji

Fields of CreateEmoji

guild_id: u64
CreateFollowupMessage
This is supported on crate feature unstable_discord_api only.

Fields of CreateFollowupMessage

application_id: u64interaction_token: &'a str
CreateGlobalApplicationCommand
This is supported on crate feature unstable_discord_api only.

Fields of CreateGlobalApplicationCommand

application_id: u64
CreateGlobalApplicationCommands
This is supported on crate feature unstable_discord_api only.

Fields of CreateGlobalApplicationCommands

application_id: u64
CreateGuild
CreateGuildApplicationCommand
This is supported on crate feature unstable_discord_api only.

Fields of CreateGuildApplicationCommand

application_id: u64guild_id: u64
CreateGuildApplicationCommands
This is supported on crate feature unstable_discord_api only.

Fields of CreateGuildApplicationCommands

application_id: u64guild_id: u64
CreateGuildIntegration

Fields of CreateGuildIntegration

guild_id: u64integration_id: u64
CreateInteractionResponse
This is supported on crate feature unstable_discord_api only.

Fields of CreateInteractionResponse

interaction_id: u64interaction_token: &'a str
CreateInvite

Fields of CreateInvite

channel_id: u64
CreateMessage

Fields of CreateMessage

channel_id: u64
CreatePermission

Fields of CreatePermission

channel_id: u64target_id: u64
CreatePrivateChannel
CreateReaction

Fields of CreateReaction

channel_id: u64message_id: u64reaction: &'a str
CreateRole

Fields of CreateRole

guild_id: u64
CreateWebhook

Fields of CreateWebhook

channel_id: u64
DeleteChannel

Fields of DeleteChannel

channel_id: u64
DeleteStageInstance

Fields of DeleteStageInstance

channel_id: u64
DeleteEmoji

Fields of DeleteEmoji

guild_id: u64emoji_id: u64
DeleteFollowupMessage
This is supported on crate feature unstable_discord_api only.

Fields of DeleteFollowupMessage

application_id: u64interaction_token: &'a strmessage_id: u64
DeleteGlobalApplicationCommand
This is supported on crate feature unstable_discord_api only.

Fields of DeleteGlobalApplicationCommand

application_id: u64command_id: u64
DeleteGuild

Fields of DeleteGuild

guild_id: u64
DeleteGuildApplicationCommand
This is supported on crate feature unstable_discord_api only.

Fields of DeleteGuildApplicationCommand

application_id: u64guild_id: u64command_id: u64
DeleteGuildIntegration

Fields of DeleteGuildIntegration

guild_id: u64integration_id: u64
DeleteInvite

Fields of DeleteInvite

code: &'a str
DeleteMessage

Fields of DeleteMessage

channel_id: u64message_id: u64
DeleteMessages

Fields of DeleteMessages

channel_id: u64
DeleteMessageReactions

Fields of DeleteMessageReactions

channel_id: u64message_id: u64
DeleteMessageReactionEmoji

Fields of DeleteMessageReactionEmoji

channel_id: u64message_id: u64reaction: &'a str
DeleteOriginalInteractionResponse
This is supported on crate feature unstable_discord_api only.

Fields of DeleteOriginalInteractionResponse

application_id: u64interaction_token: &'a str
DeletePermission

Fields of DeletePermission

channel_id: u64target_id: u64
DeleteReaction

Fields of DeleteReaction

channel_id: u64message_id: u64user: &'a strreaction: &'a str
DeleteRole

Fields of DeleteRole

guild_id: u64role_id: u64
DeleteWebhook

Fields of DeleteWebhook

webhook_id: u64
DeleteWebhookWithToken

Fields of DeleteWebhookWithToken

token: &'a strwebhook_id: u64
DeleteWebhookMessage

Fields of DeleteWebhookMessage

token: &'a strwebhook_id: u64message_id: u64
EditChannel

Fields of EditChannel

channel_id: u64
EditStageInstance

Fields of EditStageInstance

channel_id: u64
EditEmoji

Fields of EditEmoji

guild_id: u64emoji_id: u64
EditFollowupMessage
This is supported on crate feature unstable_discord_api only.

Fields of EditFollowupMessage

application_id: u64interaction_token: &'a strmessage_id: u64
EditGlobalApplicationCommand
This is supported on crate feature unstable_discord_api only.

Fields of EditGlobalApplicationCommand

application_id: u64command_id: u64
EditGuild

Fields of EditGuild

guild_id: u64
EditGuildApplicationCommand
This is supported on crate feature unstable_discord_api only.

Fields of EditGuildApplicationCommand

application_id: u64guild_id: u64command_id: u64
EditGuildApplicationCommandPermission
This is supported on crate feature unstable_discord_api only.

Fields of EditGuildApplicationCommandPermission

application_id: u64guild_id: u64command_id: u64
EditGuildApplicationCommandsPermissions
This is supported on crate feature unstable_discord_api only.

Fields of EditGuildApplicationCommandsPermissions

application_id: u64guild_id: u64
EditGuildChannels

Fields of EditGuildChannels

guild_id: u64
EditGuildWidget

Fields of EditGuildWidget

guild_id: u64
EditGuildWelcomeScreen

Fields of EditGuildWelcomeScreen

guild_id: u64
EditMember

Fields of EditMember

guild_id: u64user_id: u64
EditMessage

Fields of EditMessage

channel_id: u64message_id: u64
CrosspostMessage

Fields of CrosspostMessage

channel_id: u64message_id: u64
EditMemberMe

Fields of EditMemberMe

guild_id: u64
EditNickname

Fields of EditNickname

guild_id: u64
GetOriginalInteractionResponse
This is supported on crate feature unstable_discord_api only.

Fields of GetOriginalInteractionResponse

application_id: u64interaction_token: &'a str
EditOriginalInteractionResponse
This is supported on crate feature unstable_discord_api only.

Fields of EditOriginalInteractionResponse

application_id: u64interaction_token: &'a str
EditProfile
EditRole

Fields of EditRole

guild_id: u64role_id: u64
EditRolePosition

Fields of EditRolePosition

guild_id: u64
EditVoiceState

Fields of EditVoiceState

guild_id: u64user_id: u64
EditVoiceStateMe

Fields of EditVoiceStateMe

guild_id: u64
EditWebhook

Fields of EditWebhook

webhook_id: u64
EditWebhookWithToken

Fields of EditWebhookWithToken

token: &'a strwebhook_id: u64
EditWebhookMessage

Fields of EditWebhookMessage

token: &'a strwebhook_id: u64message_id: u64
ExecuteWebhook

Fields of ExecuteWebhook

token: &'a strwait: boolwebhook_id: u64
JoinThread

Fields of JoinThread

channel_id: u64
LeaveThread

Fields of LeaveThread

channel_id: u64
AddThreadMember

Fields of AddThreadMember

channel_id: u64user_id: u64
RemoveThreadMember

Fields of RemoveThreadMember

channel_id: u64user_id: u64
GetActiveMaintenance
GetAuditLogs

Fields of GetAuditLogs

action_type: Option<u8>before: Option<u64>guild_id: u64limit: Option<u8>user_id: Option<u64>
GetBans

Fields of GetBans

guild_id: u64
GetBotGateway
GetChannel

Fields of GetChannel

channel_id: u64
GetChannelInvites

Fields of GetChannelInvites

channel_id: u64
GetChannelWebhooks

Fields of GetChannelWebhooks

channel_id: u64
GetChannels

Fields of GetChannels

guild_id: u64
GetStageInstance

Fields of GetStageInstance

channel_id: u64
GetChannelThreadMembers

Fields of GetChannelThreadMembers

channel_id: u64
GetChannelActiveThreads

Fields of GetChannelActiveThreads

channel_id: u64
GetChannelArchivedPublicThreads

Fields of GetChannelArchivedPublicThreads

channel_id: u64before: Option<u64>limit: Option<u64>
GetChannelArchivedPrivateThreads

Fields of GetChannelArchivedPrivateThreads

channel_id: u64before: Option<u64>limit: Option<u64>
GetChannelJoinedPrivateArchivedThreads

Fields of GetChannelJoinedPrivateArchivedThreads

channel_id: u64before: Option<u64>limit: Option<u64>
GetCurrentApplicationInfo
GetCurrentUser
GetEmojis

Fields of GetEmojis

guild_id: u64
GetEmoji

Fields of GetEmoji

guild_id: u64emoji_id: u64
GetGateway
GetGlobalApplicationCommands
This is supported on crate feature unstable_discord_api only.

Fields of GetGlobalApplicationCommands

application_id: u64
GetGlobalApplicationCommand
This is supported on crate feature unstable_discord_api only.

Fields of GetGlobalApplicationCommand

application_id: u64command_id: u64
GetGuild

Fields of GetGuild

guild_id: u64
GetGuildWithCounts

Fields of GetGuildWithCounts

guild_id: u64
GetGuildApplicationCommands
This is supported on crate feature unstable_discord_api only.

Fields of GetGuildApplicationCommands

application_id: u64guild_id: u64
GetGuildApplicationCommand
This is supported on crate feature unstable_discord_api only.

Fields of GetGuildApplicationCommand

application_id: u64guild_id: u64command_id: u64
GetGuildApplicationCommandsPermissions
This is supported on crate feature unstable_discord_api only.

Fields of GetGuildApplicationCommandsPermissions

application_id: u64guild_id: u64
GetGuildApplicationCommandPermissions
This is supported on crate feature unstable_discord_api only.

Fields of GetGuildApplicationCommandPermissions

application_id: u64guild_id: u64command_id: u64
GetGuildWidget

Fields of GetGuildWidget

guild_id: u64
GetGuildPreview

Fields of GetGuildPreview

guild_id: u64
GetGuildWelcomeScreen

Fields of GetGuildWelcomeScreen

guild_id: u64
GetGuildIntegrations

Fields of GetGuildIntegrations

guild_id: u64
GetGuildInvites

Fields of GetGuildInvites

guild_id: u64
GetGuildMembers

Fields of GetGuildMembers

after: Option<u64>limit: Option<u64>guild_id: u64
GetGuildPruneCount

Fields of GetGuildPruneCount

days: u64guild_id: u64
GetGuildRegions

Fields of GetGuildRegions

guild_id: u64
GetGuildRoles

Fields of GetGuildRoles

guild_id: u64
GetGuildVanityUrl

Fields of GetGuildVanityUrl

guild_id: u64
GetGuildWebhooks

Fields of GetGuildWebhooks

guild_id: u64
GetGuilds

Fields of GetGuilds

after: Option<u64>before: Option<u64>limit: u64
GetInvite

Fields of GetInvite

code: &'a strstats: bool
GetMember

Fields of GetMember

guild_id: u64user_id: u64
GetMessage

Fields of GetMessage

channel_id: u64message_id: u64
GetMessages

Fields of GetMessages

channel_id: u64query: String
GetPins

Fields of GetPins

channel_id: u64
GetReactionUsers

Fields of GetReactionUsers

after: Option<u64>channel_id: u64limit: u8message_id: u64reaction: String
GetUnresolvedIncidents
GetUpcomingMaintenances
GetUser

Fields of GetUser

user_id: u64
GetUserConnections
GetUserDmChannels
GetVoiceRegions
GetWebhook

Fields of GetWebhook

webhook_id: u64
GetWebhookWithToken

Fields of GetWebhookWithToken

token: &'a strwebhook_id: u64
KickMember

Fields of KickMember

guild_id: u64user_id: u64reason: &'a str
LeaveGroup

Fields of LeaveGroup

group_id: u64
LeaveGuild

Fields of LeaveGuild

guild_id: u64
PinMessage

Fields of PinMessage

channel_id: u64message_id: u64
RemoveBan

Fields of RemoveBan

guild_id: u64user_id: u64
RemoveMemberRole

Fields of RemoveMemberRole

guild_id: u64role_id: u64user_id: u64
SearchGuildMembers

Fields of SearchGuildMembers

guild_id: u64query: &'a strlimit: Option<u64>
StartGuildPrune

Fields of StartGuildPrune

days: u64guild_id: u64
StartIntegrationSync

Fields of StartIntegrationSync

guild_id: u64integration_id: u64
StatusIncidentsUnresolved
StatusMaintenancesActive
StatusMaintenancesUpcoming
UnpinMessage

Fields of UnpinMessage

channel_id: u64message_id: u64

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

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

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

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

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

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.