Struct telescope::discord_bot::event_handler::Handler[][src]

pub struct Handler;
Expand description

ZST representing the event handler for telescope’s discord bot.

Trait Implementations

Dispatched when a guild is created; or an existing guild’s data is sent to us. Read more

Dispatched upon startup. Read more

Dispatched when an interaction is created (e.g a slash command was used or a button was clicked). Read more

Dispatched when the cache has received and inserted all data from guilds. Read more

Dispatched when a channel is created. Read more

Dispatched when a category is created. Read more

Dispatched when a category is deleted. Read more

Dispatched when a channel is deleted. Read more

Dispatched when a pin is added, deleted. Read more

Dispatched when a channel is updated. Read more

Dispatched when a user is banned from a guild. Read more

Dispatched when a user’s ban is lifted from a guild. Read more

Dispatched when a guild is deleted. Read more

Dispatched when the emojis are updated. Read more

Dispatched when a guild’s integration is added, updated or removed. Read more

Dispatched when a user joins a guild. Read more

Dispatched when a user’s membership ends by leaving, getting kicked, or being banned. Read more

Dispatched when a member is updated (e.g their nickname is updated). Read more

Dispatched when the data for offline members was requested. Read more

Dispatched when a role is created. Read more

Dispatched when a role is deleted. Read more

Dispatched when a role is updated. Read more

Dispatched when a guild became unavailable. Read more

Dispatched when the guild is updated. Read more

Dispatched when a invite is created. Read more

Dispatched when a invite is deleted. Read more

Dispatched when a message is created. Read more

Dispatched when a message is deleted. Read more

Dispatched when multiple messages were deleted at once. Read more

Dispatched when a message is updated. Read more

Dispatched when a new reaction is attached to a message. Read more

Dispatched when a reaction is detached from a message. Read more

Dispatched when all reactions of a message are detached from a message. Read more

This event is legacy, and likely no longer sent by discord.

Dispatched when a user’s presence is updated (e.g off -> on). Read more

Dispatched upon reconnection.

Dispatched when a shard’s connection stage is updated Read more

Dispatched when a user starts typing.

Dispatched when an unknown event was sent from discord. Read more

Dispatched when the bot’s data is updated. Read more

Dispatched when a guild’s voice server was updated (or changed to another one). Read more

Dispatched when a user joins, leaves or moves to a voice channel. Read more

Dispatched when a guild’s webhook is updated. Read more

Dispatched when a guild integration is created. Read more

Dispatched when a guild integration is updated. Read more

Dispatched when a guild integration is deleted. Read more

👎 Deprecated since 0.10.10:

bots do no receive this event

Dispatched when an application command is created. Read more

👎 Deprecated since 0.10.10:

bots do no receive this event

Dispatched when an application command is updated. Read more

👎 Deprecated since 0.10.10:

bots do no receive this event

Dispatched when an application command is deleted. Read more

Dispatched when a stage instance is created. Read more

Dispatched when a stage instance is updated. Read more

Dispatched when a stage instance is deleted. Read more

Dispatched when a thread is created or the current user is added to a private thread. Read more

Dispatched when a thread is updated. Read more

Dispatched when a thread is deleted. Read more

Dispatched when the current user gains access to a channel Read more

Dispatched when the ThreadMember for the current user is updated. Read more

Dispatched when anyone is added to or removed from a thread. If the current user does not have the GatewayIntents::GUILDS, then this event will only be sent if the current user was added to or removed from the thread. 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 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