[−][src]Enum twilight_http::routing::Route
Variants (Non-exhaustive)
Route information to add a role to guild member.
Fields of AddMemberRole
Route information to create a ban on a user in a guild.
Fields of CreateBan
Route information to create a channel in a guild.
Fields of CreateChannel
guild_id: u64
The ID of the guild.
Route information to create an emoji in a guild.
Fields of CreateEmoji
guild_id: u64
The ID of the guild.
Route information to create a guild.
Route information to create a guild's integration.
Fields of CreateGuildIntegration
guild_id: u64
The ID of the guild.
Route information to create a prune in a guild.
Fields of CreateGuildPrune
compute_prune_count: Option<bool>
Whether to compute the number of pruned users.
days: Option<u64>
The number of days that a user must be offline before being able to be pruned.
guild_id: u64
The ID of the guild.
include_roles: Vec<u64>
The roles to filter the prune by.
A user must have at least one of these roles to be able to be pruned.
Route information to create an invite to a channel.
Fields of CreateInvite
channel_id: u64
The ID of the channel.
Route information to create a message in a channel.
Fields of CreateMessage
channel_id: u64
The ID of the channel.
Route information to create a private channel.
Route information to create a reaction on a message.
Fields of CreateReaction
Route information to create a role in a guild.
Fields of CreateRole
guild_id: u64
The ID of the guild.
Route information to create a typing trigger in a channel.
Fields of CreateTypingTrigger
channel_id: u64
The ID of the channel.
Route information to create a webhook in a channel.
Fields of CreateWebhook
channel_id: u64
The ID of the channel.
Route information to crosspost a message to following guilds.
Fields of CrosspostMessage
Route information to delete a ban on a user in a guild.
Route information to delete a channel.
Fields of DeleteChannel
channel_id: u64
The ID of the channel.
Route information to delete a guild's custom emoji.
Route information to delete a guild.
Fields of DeleteGuild
guild_id: u64
The ID of the guild.
Route information to delete a guild integration.
Fields of DeleteGuildIntegration
Route information to delete an invite.
Fields of DeleteInvite
code: String
The unique invite code.
Route information to delete a channel's message.
Route information to bulk delete messages in a channel.
Fields of DeleteMessages
channel_id: u64
The ID of the channel.
Route information to delete all of the reactions on a message.
Fields of DeleteMessageReactions
Route information to delete all of the reactions on a message with a specific emoji.
Fields of DeleteMessageSpecficReaction
Route information to delete a permission overwrite for a role or user in a channel.
Fields of DeletePermissionOverwrite
Route information to delete a user's reaction on a message.
Fields of DeleteReaction
Route information to delete a guild's role.
Route information to delete a webhook.
Fields of DeleteWebhook
Route information to execute a webhook by ID and token.
Fields of ExecuteWebhook
Route information to follow a news channel.
Fields of FollowNewsChannel
channel_id: u64
The ID of the channel to follow.
Route information to get a paginated list of audit logs in a guild.
Fields of GetAuditLogs
Route information to get information about a single ban in a guild.
Route information to get a guild's bans.
Fields of GetBans
guild_id: u64
The ID of the guild.
Route information to get a channel.
Fields of GetChannel
channel_id: u64
The ID of the channel.
Route information to get a channel's invites.
Fields of GetChannelInvites
channel_id: u64
The ID of the channel.
Route information to get a channel's webhooks.
Fields of GetChannelWebhooks
channel_id: u64
The ID of the channel.
Route information to get a guild's channels.
Fields of GetChannels
guild_id: u64
The ID of the guild.
Route information to get info about application the current bot user belongs to
Route information to get an emoji by ID within a guild.
Route information to get a guild's emojis.
Fields of GetEmojis
guild_id: u64
The ID of the guild.
Route information to get basic gateway information.
Route information to get gateway information tailored to the current user.
Route information to get a guild.
Fields of GetGuild
Route information to get a guild's widget.
Fields of GetGuildWidget
guild_id: u64
The ID of the guild.
Route information to get a guild's integrations.
Fields of GetGuildIntegrations
guild_id: u64
The ID of the guild.
Route information to get a guild's invites.
Fields of GetGuildInvites
guild_id: u64
The ID of the guild.
Route information to get a guild's members.
Fields of GetGuildMembers
Route information to get a guild's preview.
Fields of GetGuildPreview
guild_id: u64
The ID of the guild.
Route information to get the number of members that would be pruned, filtering by inactivity and users with one of the provided roles.
Fields of GetGuildPruneCount
Route information to get a guild's roles.
Fields of GetGuildRoles
guild_id: u64
The ID of the guild.
Route information to get a guild's vanity URL.
Fields of GetGuildVanityUrl
guild_id: u64
The ID of the guild.
Route information to get a guild's available voice regions.
Fields of GetGuildVoiceRegions
guild_id: u64
The ID of the guild.
Route information to get a guild's webhooks.
Fields of GetGuildWebhooks
guild_id: u64
The ID of the guild.
Route information to get a paginated list of guilds.
Fields of GetGuilds
Route information to get an invite.
Fields of GetInvite
Route information to get a member.
Route information to get a single message in a channel.
Route information to get a paginated list of messages in a channel.
Fields of GetMessages
Route information to get a channel's pins.
Fields of GetPins
channel_id: u64
The ID of the channel.
Route information to get the users who reacted to a message with a specified emoji.
Fields of GetReactionUsers
Route information to get the current user.
Fields of GetUser
target_user: String
The ID of the target user. This can be @me
to specify the current
user.
Route information to get the current user's connections.
Route information to get the current user's private channels and groups.
Route information to get a list of the voice regions.
Route information to get a webhook by ID, optionally with a token if the current user doesn't have access to it.
Fields of GetWebhook
Route information to leave the guild.
Fields of LeaveGuild
guild_id: u64
The ID of the guild.
Route information to pin a message to a channel.
Route information to remove a member from a guild.
Route information to remove a role from a member.
Fields of RemoveMemberRole
Route information to sync a guild's integration.
Fields of SyncGuildIntegration
Route information to unpin a message from a channel.
Route information to update a channel, such as a guild channel or group.
Fields of UpdateChannel
channel_id: u64
The ID of the channel.
Route information to update the current user.
Route information to update an emoji.
Route information to update a guild.
Fields of UpdateGuild
guild_id: u64
The ID of the guild.
Route information to update a guild channel.
Fields of UpdateGuildChannels
guild_id: u64
The ID of the guild.
Route information to update a guild's widget.
Fields of UpdateGuildWidget
guild_id: u64
The ID of the guild.
Route information to update a guild's integration.
Fields of UpdateGuildIntegration
Route information to update a member.
Route information to update a message.
Route information to update the current member's nickname.
Fields of UpdateNickname
guild_id: u64
The ID of the guild.
Route information to update the permission overwrite of a role or user in a channel.
Fields of UpdatePermissionOverwrite
Route information to update a role.
Route information to update the positions of roles.
Fields of UpdateRolePositions
guild_id: u64
The ID of the guild.
Route information to update a webhook.
Fields of UpdateWebhook
Implementations
impl Route
[src]
pub fn into_parts(self) -> (Method, Path, Cow<'static, str>)
[src]
Separate a route into its parts: the HTTP method, the path enum to use for ratelimit buckets, and the URI path.
The method and URI path are useful for actually performing requests, while the returned path enum is useful for ratelimiting.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnwindSafe for Route
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,