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

#[non_exhaustive]
pub enum RouteInfo<'a> {
Show 144 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, }, EditThread { channel_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, }, GetFollowupMessage { application_id: u64, interaction_token: &'a str, message_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, }, GetGuildActiveThreads { 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

guild_id: u64
role_id: u64
user_id: u64

GuildBanUser

Fields

guild_id: u64
user_id: u64
delete_message_days: Option<u8>
reason: Option<&'a str>

BroadcastTyping

Fields

channel_id: u64

CreateChannel

Fields

guild_id: u64

CreateStageInstance

CreatePublicThread

Fields

channel_id: u64
message_id: u64

CreatePrivateThread

Fields

channel_id: u64

CreateEmoji

Fields

guild_id: u64

CreateFollowupMessage

Fields

application_id: u64
interaction_token: &'a str

CreateGlobalApplicationCommand

Fields

application_id: u64

CreateGlobalApplicationCommands

Fields

application_id: u64

CreateGuild

CreateGuildApplicationCommand

Fields

application_id: u64
guild_id: u64

CreateGuildApplicationCommands

Fields

application_id: u64
guild_id: u64

CreateGuildIntegration

Fields

guild_id: u64
integration_id: u64

CreateInteractionResponse

Fields

interaction_id: u64
interaction_token: &'a str

CreateInvite

Fields

channel_id: u64

CreateMessage

Fields

channel_id: u64

CreatePermission

Fields

channel_id: u64
target_id: u64

CreatePrivateChannel

CreateReaction

Fields

channel_id: u64
message_id: u64
reaction: &'a str

CreateRole

Fields

guild_id: u64

CreateWebhook

Fields

channel_id: u64

DeleteChannel

Fields

channel_id: u64

DeleteStageInstance

Fields

channel_id: u64

DeleteEmoji

Fields

guild_id: u64
emoji_id: u64

DeleteFollowupMessage

Fields

application_id: u64
interaction_token: &'a str
message_id: u64

DeleteGlobalApplicationCommand

Fields

application_id: u64
command_id: u64

DeleteGuild

Fields

guild_id: u64

DeleteGuildApplicationCommand

Fields

application_id: u64
guild_id: u64
command_id: u64

DeleteGuildIntegration

Fields

guild_id: u64
integration_id: u64

DeleteInvite

Fields

code: &'a str

DeleteMessage

Fields

channel_id: u64
message_id: u64

DeleteMessages

Fields

channel_id: u64

DeleteMessageReactions

Fields

channel_id: u64
message_id: u64

DeleteMessageReactionEmoji

Fields

channel_id: u64
message_id: u64
reaction: &'a str

DeleteOriginalInteractionResponse

Fields

application_id: u64
interaction_token: &'a str

DeletePermission

Fields

channel_id: u64
target_id: u64

DeleteReaction

Fields

channel_id: u64
message_id: u64
user: &'a str
reaction: &'a str

DeleteRole

Fields

guild_id: u64
role_id: u64

DeleteWebhook

Fields

webhook_id: u64

DeleteWebhookWithToken

Fields

token: &'a str
webhook_id: u64

DeleteWebhookMessage

Fields

token: &'a str
webhook_id: u64
message_id: u64

EditChannel

Fields

channel_id: u64

EditStageInstance

Fields

channel_id: u64

EditEmoji

Fields

guild_id: u64
emoji_id: u64

EditFollowupMessage

Fields

application_id: u64
interaction_token: &'a str
message_id: u64

EditGlobalApplicationCommand

Fields

application_id: u64
command_id: u64

EditGuild

Fields

guild_id: u64

EditGuildApplicationCommand

Fields

application_id: u64
guild_id: u64
command_id: u64

EditGuildApplicationCommandPermission

Fields

application_id: u64
guild_id: u64
command_id: u64

EditGuildApplicationCommandsPermissions

Fields

application_id: u64
guild_id: u64

EditGuildChannels

Fields

guild_id: u64

EditGuildWidget

Fields

guild_id: u64

EditGuildWelcomeScreen

Fields

guild_id: u64

EditMember

Fields

guild_id: u64
user_id: u64

EditMessage

Fields

channel_id: u64
message_id: u64

CrosspostMessage

Fields

channel_id: u64
message_id: u64

EditMemberMe

Fields

guild_id: u64

EditNickname

Fields

guild_id: u64

GetOriginalInteractionResponse

Fields

application_id: u64
interaction_token: &'a str

EditOriginalInteractionResponse

Fields

application_id: u64
interaction_token: &'a str

EditProfile

EditRole

Fields

guild_id: u64
role_id: u64

EditRolePosition

Fields

guild_id: u64

EditThread

Fields

channel_id: u64

EditVoiceState

Fields

guild_id: u64
user_id: u64

EditVoiceStateMe

Fields

guild_id: u64

EditWebhook

Fields

webhook_id: u64

EditWebhookWithToken

Fields

token: &'a str
webhook_id: u64

EditWebhookMessage

Fields

token: &'a str
webhook_id: u64
message_id: u64

ExecuteWebhook

Fields

token: &'a str
wait: bool
webhook_id: u64

JoinThread

Fields

channel_id: u64

LeaveThread

Fields

channel_id: u64

AddThreadMember

Fields

channel_id: u64
user_id: u64

RemoveThreadMember

Fields

channel_id: u64
user_id: u64

GetActiveMaintenance

GetAuditLogs

Fields

action_type: Option<u8>
before: Option<u64>
guild_id: u64
limit: Option<u8>
user_id: Option<u64>

GetBans

Fields

guild_id: u64

GetBotGateway

GetChannel

Fields

channel_id: u64

GetChannelInvites

Fields

channel_id: u64

GetChannelWebhooks

Fields

channel_id: u64

GetChannels

Fields

guild_id: u64

GetStageInstance

Fields

channel_id: u64

GetChannelThreadMembers

Fields

channel_id: u64

GetChannelActiveThreads

Fields

channel_id: u64

GetChannelArchivedPublicThreads

Fields

channel_id: u64
before: Option<u64>
limit: Option<u64>

GetChannelArchivedPrivateThreads

Fields

channel_id: u64
before: Option<u64>
limit: Option<u64>

GetChannelJoinedPrivateArchivedThreads

Fields

channel_id: u64
before: Option<u64>
limit: Option<u64>

GetCurrentApplicationInfo

GetCurrentUser

GetEmojis

Fields

guild_id: u64

GetEmoji

Fields

guild_id: u64
emoji_id: u64

GetFollowupMessage

Fields

application_id: u64
interaction_token: &'a str
message_id: u64

GetGateway

GetGlobalApplicationCommands

Fields

application_id: u64

GetGlobalApplicationCommand

Fields

application_id: u64
command_id: u64

GetGuild

Fields

guild_id: u64

GetGuildWithCounts

Fields

guild_id: u64

GetGuildApplicationCommands

Fields

application_id: u64
guild_id: u64

GetGuildApplicationCommand

Fields

application_id: u64
guild_id: u64
command_id: u64

GetGuildApplicationCommandsPermissions

Fields

application_id: u64
guild_id: u64

GetGuildApplicationCommandPermissions

Fields

application_id: u64
guild_id: u64
command_id: u64

GetGuildWidget

Fields

guild_id: u64

GetGuildActiveThreads

Fields

guild_id: u64

GetGuildPreview

Fields

guild_id: u64

GetGuildWelcomeScreen

Fields

guild_id: u64

GetGuildIntegrations

Fields

guild_id: u64

GetGuildInvites

Fields

guild_id: u64

GetGuildMembers

Fields

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

GetGuildPruneCount

Fields

days: u64
guild_id: u64

GetGuildRegions

Fields

guild_id: u64

GetGuildRoles

Fields

guild_id: u64

GetGuildVanityUrl

Fields

guild_id: u64

GetGuildWebhooks

Fields

guild_id: u64

GetGuilds

Fields

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

GetInvite

Fields

code: &'a str
stats: bool

GetMember

Fields

guild_id: u64
user_id: u64

GetMessage

Fields

channel_id: u64
message_id: u64

GetMessages

Fields

channel_id: u64
query: String

GetPins

Fields

channel_id: u64

GetReactionUsers

Fields

after: Option<u64>
channel_id: u64
limit: u8
message_id: u64
reaction: String

GetUnresolvedIncidents

GetUpcomingMaintenances

GetUser

Fields

user_id: u64

GetUserConnections

GetUserDmChannels

GetVoiceRegions

GetWebhook

Fields

webhook_id: u64

GetWebhookWithToken

Fields

token: &'a str
webhook_id: u64

KickMember

Fields

guild_id: u64
user_id: u64
reason: &'a str

LeaveGroup

Fields

group_id: u64

LeaveGuild

Fields

guild_id: u64

PinMessage

Fields

channel_id: u64
message_id: u64

RemoveBan

Fields

guild_id: u64
user_id: u64

RemoveMemberRole

Fields

guild_id: u64
role_id: u64
user_id: u64

SearchGuildMembers

Fields

guild_id: u64
query: &'a str
limit: Option<u64>

StartGuildPrune

Fields

days: u64
guild_id: u64

StartIntegrationSync

Fields

guild_id: u64
integration_id: u64

StatusIncidentsUnresolved

StatusMaintenancesActive

StatusMaintenancesUpcoming

UnpinMessage

Fields

channel_id: u64
message_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)

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.

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

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