Skip to content

EventManager

EventManager is responsible for handling Discord events and emitting signals for various Discord activities such as message events, channel events, user updates, guild events, and interactions.

Properties

onReady

EventManager.onReady  :: Vendor.Signal<>

onMessage

EventManager.onMessage  :: Vendor.Signal<Objects.DiscordMessage>

Fires when a message is sent.
The message content intent must be enabled in order to allow bots to get the message content. The intent can be enabled on Discord Developer Portal.

onMessageChanged

EventManager.onMessageChanged  :: Vendor.Signal<Objects.DiscordMessage>

onMessageDeleted

EventManager.onMessageDeleted  :: Vendor.Signal<Objects.DiscordMessage>

onMessageBulkDeleted

EventManager.onMessageBulkDeleted  :: Vendor.Signal<{ channelId: string, guildId: string, ids: { string } }>

onChannelCreate

EventManager.onChannelCreate  :: Vendor.Signal<Objects.DiscordChannel>

onChannelUpdate

EventManager.onChannelUpdate  :: Vendor.Signal<Objects.DiscordChannel>

onChannelDelete

EventManager.onChannelDelete  :: Vendor.Signal<Objects.DiscordChannel>

onUserUpdated

EventManager.onUserUpdated  :: Vendor.Signal<Objects.DiscordUser>

onChannelPinsUpdate

onGuildCreate

EventManager.onGuildCreate  :: Vendor.Signal<Objects.DiscordGuild>

onGuildUpdate

EventManager.onGuildUpdate  :: Vendor.Signal<Objects.DiscordGuild>

onGuildDelete

EventManager.onGuildDelete  :: Vendor.Signal<Objects.DiscordGuild>

onGuildMemberBanned

EventManager.onGuildMemberBanned  :: Vendor.Signal<{ guildId: string, user: Objects.DiscordUser }>

onGuildMemberUnbanned

EventManager.onGuildMemberUnbanned  :: Vendor.Signal<{ guildId: string, user: Objects.DiscordUser }>

onGuildMemberJoined

EventManager.onGuildMemberJoined  :: Vendor.Signal<Objects.DiscordGuildMember & { guildId: string }>

onGuildMemberLeft

EventManager.onGuildMemberLeft  :: Vendor.Signal<{ guildId: string, user: Objects.DiscordUser }>

onGuildMemberUpdated

EventManager.onGuildMemberUpdated  :: Vendor.Signal<{ ... }>

onInteraction

EventManager.onInteraction  :: Vendor.Signal<Objects.DiscordInteraction>

Fires when an interaction occurs.

Methods

The EventManager instance has no set methods!

Functions

new

EventManager . new (

     discordClient: any
)  -> ()

Creates a new instance of EventManager and connects it to the provided Discord client.