[][src]Trait automate::events::State

pub trait State: StateClone + Send + 'static {
#[must_use]    fn on_ready<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 ReadyDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_channel_create<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 ChannelCreateDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_channel_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 ChannelUpdateDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_channel_delete<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 ChannelDeleteDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_channel_pins_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 ChannelPinsUpdateDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_guild_create<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 GuildCreateDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_guild_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 GuildUpdateDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_guild_delete<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 GuildDeleteDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_guild_ban_add<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 GuildBanAddDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_guild_ban_remove<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 GuildBanRemoveDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_guild_emojis_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 GuildEmojisUpdateDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_guild_integrations_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 GuildIntegrationsUpdateDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_guild_member_add<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 GuildMemberAddDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_guild_member_remove<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 GuildMemberRemoveDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_guild_member_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 GuildMemberUpdateDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_guild_members_chunk<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 GuildMembersChunkDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_guild_role_create<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 GuildRoleCreateDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_guild_role_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 GuildRoleUpdateDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_guild_role_delete<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 GuildRoleDeleteDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_invite_create<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 InviteCreateDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_invite_delete<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 InviteDeleteDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_message_create<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 MessageCreateDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_message_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 MessageUpdateDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_message_delete<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 MessageDeleteDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_message_delete_bulk<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 MessageDeleteBulkDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_reaction_add<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 MessageReactionAddDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_reaction_remove<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 MessageReactionRemoveDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_reaction_remove_all<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 MessageReactionRemoveAllDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_reaction_remove_emoji<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 MessageReactionRemoveEmojiDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_presence_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 PresenceUpdateDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_typing_start<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 TypingStartDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_user_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 UserUpdateDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_voice_state_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 VoiceStateUpdateDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_voice_server_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 VoiceServerUpdateDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn on_webhooks_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 Context<'life2>,
        event: &'life3 WebhooksUpdateDispatch
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; }

A stateful event listener. After an instance of a struct implementing this trait is registered, methods will be called when the library receives the corresponding events.

Please do not implement this manually as the structure is subject to changes until version 0.4.

Structs implementing this listener must derive Clone and Initializable in order to be registered.

Required methods

#[must_use]fn on_ready<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 ReadyDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_channel_create<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 ChannelCreateDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_channel_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 ChannelUpdateDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_channel_delete<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 ChannelDeleteDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_channel_pins_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 ChannelPinsUpdateDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_guild_create<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 GuildCreateDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_guild_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 GuildUpdateDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_guild_delete<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 GuildDeleteDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_guild_ban_add<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 GuildBanAddDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_guild_ban_remove<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 GuildBanRemoveDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_guild_emojis_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 GuildEmojisUpdateDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_guild_integrations_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 GuildIntegrationsUpdateDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_guild_member_add<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 GuildMemberAddDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_guild_member_remove<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 GuildMemberRemoveDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_guild_member_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 GuildMemberUpdateDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_guild_members_chunk<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 GuildMembersChunkDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_guild_role_create<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 GuildRoleCreateDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_guild_role_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 GuildRoleUpdateDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_guild_role_delete<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 GuildRoleDeleteDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_invite_create<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 InviteCreateDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_invite_delete<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 InviteDeleteDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_message_create<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 MessageCreateDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_message_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 MessageUpdateDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_message_delete<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 MessageDeleteDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_message_delete_bulk<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 MessageDeleteBulkDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_reaction_add<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 MessageReactionAddDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_reaction_remove<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 MessageReactionRemoveDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_reaction_remove_all<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 MessageReactionRemoveAllDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_reaction_remove_emoji<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 MessageReactionRemoveEmojiDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_presence_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 PresenceUpdateDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_typing_start<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 TypingStartDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_user_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 UserUpdateDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_voice_state_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 VoiceStateUpdateDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_voice_server_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 VoiceServerUpdateDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn on_webhooks_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 Context<'life2>,
    event: &'life3 WebhooksUpdateDispatch
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

Loading content...