Skip to content

ClientEvents

Package: @erinjs/core

Callback parameter types for client events. Use with client.on(Events.X, handler).

Properties

NameTypeReadonlyOptionalDescription
[Events.ChannelCreate][channel: GuildChannel]NoNo
[Events.ChannelDelete][channel: Channel]NoNo
[Events.ChannelPinsUpdate][data: GatewayChannelPinsUpdateDispatchData]NoNo
[Events.ChannelUpdate][oldChannel: Channel, newChannel: Channel]NoNo
[Events.Debug][message: string]NoNo
[Events.Error][error: Error]NoNo
[Events.GuildBanAdd][ban: GuildBan]NoNo
[Events.GuildBanRemove][ban: GuildBan]NoNo
[Events.GuildCreate][guild: Guild]NoNo
[Events.GuildDelete][guild: Guild]NoNo
[Events.GuildEmojisUpdate][data: GatewayGuildEmojisUpdateDispatchData]NoNo
[Events.GuildIntegrationsUpdate][data: GatewayGuildIntegrationsUpdateDispatchData]NoNo
[Events.GuildMemberAdd][member: GuildMember]NoNo
[Events.GuildMemberRemove][member: GuildMember]NoNo
[Events.GuildMemberUpdate][oldMember: GuildMember, newMember: GuildMember]NoNo
[Events.GuildRoleCreate][data: GatewayGuildRoleCreateDispatchData]NoNo
[Events.GuildRoleDelete][data: GatewayGuildRoleDeleteDispatchData]NoNo
[Events.GuildRoleUpdate][data: GatewayGuildRoleUpdateDispatchData]NoNo
[Events.GuildScheduledEventCreate][data: GatewayGuildScheduledEventCreateDispatchData]NoNo
[Events.GuildScheduledEventDelete][data: GatewayGuildScheduledEventDeleteDispatchData]NoNo
[Events.GuildScheduledEventUpdate][data: GatewayGuildScheduledEventUpdateDispatchData]NoNo
[Events.GuildStickersUpdate][data: GatewayGuildStickersUpdateDispatchData]NoNo
[Events.GuildUpdate][oldGuild: Guild, newGuild: Guild]NoNo
[Events.InteractionCreate][interaction: APIApplicationCommandInteraction]NoNo
[Events.InviteCreate][invite: Invite]NoNo
[Events.InviteDelete][data: GatewayInviteDeleteDispatchData]NoNo
[Events.MessageCreate][message: Message]NoNo
[Events.MessageDelete][message: PartialMessage]NoNo
[Events.MessageDeleteBulk][data: GatewayMessageDeleteBulkDispatchData]NoNo
[Events.MessageReactionAdd][reaction: MessageReaction, user: User, messageId: string, channelId: string, emoji: GatewayReactionEmoji, userId: string]NoNo
[Events.MessageReactionRemove][reaction: MessageReaction, user: User, messageId: string, channelId: string, emoji: GatewayReactionEmoji, userId: string]NoNo
[Events.MessageReactionRemoveAll][data: GatewayMessageReactionRemoveAllDispatchData]NoNo
[Events.MessageReactionRemoveEmoji][data: GatewayMessageReactionRemoveEmojiDispatchData]NoNo
[Events.MessageUpdate][oldMessage: Message | null, newMessage: Message]NoNo
[Events.PresenceUpdate][data: GatewayPresenceUpdateDispatchData]NoNo
[Events.Ready][]NoNo
[Events.Resumed][]NoNo
[Events.TypingStart][data: GatewayTypingStartDispatchData]NoNo
[Events.UserUpdate][data: GatewayUserUpdateDispatchData]NoNo
[Events.VoiceServerUpdate][data: GatewayVoiceServerUpdateDispatchData]NoNo
[Events.VoiceStatesSync][data: { guildId: string; voiceStates: Array<{ user_id: string; channel_id: string | null; }>; }]NoNo
[Events.VoiceStateUpdate][data: GatewayVoiceStateUpdateDispatchData]NoNo
[Events.WebhooksUpdate][data: GatewayWebhooksUpdateDispatchData]NoNo

Released under the Apache-2.0 License.