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
GuildBanUser
BroadcastTyping
Fields
channel_id: u64
CreateChannel
Fields
guild_id: u64
CreateStageInstance
CreatePublicThread
CreatePrivateThread
Fields
channel_id: u64
CreateEmoji
Fields
guild_id: u64
CreateFollowupMessage
CreateGlobalApplicationCommand
Fields
application_id: u64
CreateGlobalApplicationCommands
Fields
application_id: u64
CreateGuild
CreateGuildApplicationCommand
CreateGuildApplicationCommands
CreateGuildIntegration
CreateInteractionResponse
CreateInvite
Fields
channel_id: u64
CreateMessage
Fields
channel_id: u64
CreatePermission
CreatePrivateChannel
CreateReaction
CreateRole
Fields
guild_id: u64
CreateWebhook
Fields
channel_id: u64
DeleteChannel
Fields
channel_id: u64
DeleteStageInstance
Fields
channel_id: u64
DeleteEmoji
DeleteFollowupMessage
DeleteGlobalApplicationCommand
DeleteGuild
Fields
guild_id: u64
DeleteGuildApplicationCommand
DeleteGuildIntegration
DeleteInvite
Fields
code: &'a str
DeleteMessage
DeleteMessages
Fields
channel_id: u64
DeleteMessageReactions
DeleteMessageReactionEmoji
DeleteOriginalInteractionResponse
DeletePermission
DeleteReaction
DeleteRole
DeleteWebhook
Fields
webhook_id: u64
DeleteWebhookWithToken
DeleteWebhookMessage
EditChannel
Fields
channel_id: u64
EditStageInstance
Fields
channel_id: u64
EditEmoji
EditFollowupMessage
EditGlobalApplicationCommand
EditGuild
Fields
guild_id: u64
EditGuildApplicationCommand
EditGuildApplicationCommandPermission
EditGuildApplicationCommandsPermissions
EditGuildChannels
Fields
guild_id: u64
EditGuildWidget
Fields
guild_id: u64
EditGuildWelcomeScreen
Fields
guild_id: u64
EditMember
EditMessage
CrosspostMessage
EditMemberMe
Fields
guild_id: u64
EditNickname
Fields
guild_id: u64
GetOriginalInteractionResponse
EditOriginalInteractionResponse
EditProfile
EditRole
EditRolePosition
Fields
guild_id: u64
EditThread
Fields
channel_id: u64
EditVoiceState
EditVoiceStateMe
Fields
guild_id: u64
EditWebhook
Fields
webhook_id: u64
EditWebhookWithToken
EditWebhookMessage
ExecuteWebhook
JoinThread
Fields
channel_id: u64
LeaveThread
Fields
channel_id: u64
AddThreadMember
RemoveThreadMember
GetActiveMaintenance
GetAuditLogs
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
GetChannelArchivedPrivateThreads
GetChannelJoinedPrivateArchivedThreads
GetCurrentApplicationInfo
GetCurrentUser
GetEmojis
Fields
guild_id: u64
GetEmoji
GetFollowupMessage
GetGateway
GetGlobalApplicationCommands
Fields
application_id: u64
GetGlobalApplicationCommand
GetGuild
Fields
guild_id: u64
GetGuildWithCounts
Fields
guild_id: u64
GetGuildApplicationCommands
GetGuildApplicationCommand
GetGuildApplicationCommandsPermissions
GetGuildApplicationCommandPermissions
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
GetGuildPruneCount
GetGuildRegions
Fields
guild_id: u64
GetGuildRoles
Fields
guild_id: u64
GetGuildVanityUrl
Fields
guild_id: u64
GetGuildWebhooks
Fields
guild_id: u64
GetGuilds
GetInvite
GetMember
GetMessage
GetMessages
GetPins
Fields
channel_id: u64
GetReactionUsers
GetUnresolvedIncidents
GetUpcomingMaintenances
GetUser
Fields
user_id: u64
GetUserConnections
GetUserDmChannels
GetVoiceRegions
GetWebhook
Fields
webhook_id: u64
GetWebhookWithToken
KickMember
LeaveGroup
Fields
group_id: u64
LeaveGuild
Fields
guild_id: u64
PinMessage
RemoveBan
RemoveMemberRole
SearchGuildMembers
StartGuildPrune
StartIntegrationSync
StatusIncidentsUnresolved
StatusMaintenancesActive
StatusMaintenancesUpcoming
UnpinMessage
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for RouteInfo<'a>
impl<'a> UnwindSafe for RouteInfo<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
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