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
onMessage
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
onMessageDeleted
onMessageBulkDeleted
EventManager.onMessageBulkDeleted :: Vendor.Signal<{ channelId: string, guildId: string, ids: { string } }>
onChannelCreate
onChannelUpdate
onChannelDelete
onUserUpdated
onChannelPinsUpdate
EventManager.onChannelPinsUpdate :: Vendor.Signal<{ guildId: string, channelId: string, lastPinTimestamp: string }>
onGuildCreate
onGuildUpdate
onGuildDelete
onGuildMemberBanned
onGuildMemberUnbanned
onGuildMemberJoined
onGuildMemberLeft
onGuildMemberUpdated
onInteraction
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.