Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ClientEvents

Hierarchy

Index

Events

commandLoaded

commandLoaded: [cmd: Command]
param

The command that was loaded

invalidCommand

invalidCommand: [msg: Message<TextableChannel>, args: string[], ctx: CommandContext]
param

The command that will be executed

param

The message that triggered the command

param

The arguments passed to the command handler

param

The context object for the command

postCommand

postCommand: [cmd: Command, msg: Message<TextableChannel>, args: string[], ctx: CommandContext]
param

The command that will be executed

param

The message that triggered the command

param

The arguments passed to the command handler

param

The context object for the command

preCommand

preCommand: [cmd: Command, msg: Message<TextableChannel>, args: string[], ctx: CommandContext]
param

The command that will be executed

param

The message that triggered the command

param

The arguments passed to the command handler

param

The context object for the command

Properties

callCreate

callCreate: [call: Call]

callDelete

callDelete: [call: Call]

callRing

callRing: [call: Call]

callUpdate

callUpdate: [call: Call, oldCall: OldCall]

channelCreate

channelCreate: [channel: AnyGuildChannel]

channelDelete

channelDelete: [channel: AnyChannel]

channelPinUpdate

channelPinUpdate: [channel: TextableChannel, timestamp: number, oldTimestamp: number]

channelRecipientAdd

channelRecipientAdd: [channel: GroupChannel, user: User]

channelRecipientRemove

channelRecipientRemove: [channel: GroupChannel, user: User]

channelUpdate

channelUpdate: [channel: AnyGuildChannel, oldChannel: OldGuildChannel | OldGuildTextChannel | OldTextVoiceChannel] | [channel: GroupChannel, oldChannel: OldGroupChannel]

connect

connect: [id: number]

debug

debug: [message: string, id?: number]

disconnect

disconnect: []

error

error: [err: Error, id?: number]

friendSuggestionCreate

friendSuggestionCreate: [user: User, reasons: FriendSuggestionReasons]

friendSuggestionDelete

friendSuggestionDelete: [user: User]

guildAvailable

guildAvailable: [guild: Guild]

guildBanAdd

guildBanAdd: [guild: Guild, user: User]

guildBanRemove

guildBanRemove: [guild: Guild, user: User]

guildCreate

guildCreate: [guild: Guild]

guildDelete

guildDelete: [guild: PossiblyUncachedGuild]

guildEmojisUpdate

guildEmojisUpdate: [guild: PossiblyUncachedGuild, emojis: Emoji[], oldEmojis: null | Emoji[]]

guildMemberAdd

guildMemberAdd: [guild: Guild, member: Member]

guildMemberChunk

guildMemberChunk: [guild: Guild, member: Member[]]

guildMemberRemove

guildMemberRemove: [guild: Guild, member: Member | MemberPartial]

guildMemberUpdate

guildMemberUpdate: [guild: Guild, member: Member, oldMember: null | OldMember]

guildRoleCreate

guildRoleCreate: [guild: Guild, role: Role]

guildRoleDelete

guildRoleDelete: [guild: Guild, role: Role]

guildRoleUpdate

guildRoleUpdate: [guild: Guild, role: Role, oldRole: OldRole]

guildStickersUpdate

guildStickersUpdate: [guild: PossiblyUncachedGuild, stickers: Sticker[], oldStickers: null | Sticker[]]

guildUnavailable

guildUnavailable: [guild: UnavailableGuild]

guildUpdate

guildUpdate: [guild: Guild, oldGuild: OldGuild]

hello

hello: [trace: string[], id: number]

interactionCreate

inviteCreate

inviteCreate: [guild: Guild, invite: Invite<"withMetadata", InviteChannel>]

inviteDelete

inviteDelete: [guild: Guild, invite: Invite<"withMetadata", InviteChannel>]

messageCreate

messageCreate: [message: Message<PossiblyUncachedTextableChannel>]

messageDelete

messageDelete: [message: PossiblyUncachedMessage]

messageDeleteBulk

messageDeleteBulk: [messages: PossiblyUncachedMessage[]]

messageReactionAdd

messageReactionAdd: [message: PossiblyUncachedMessage, emoji: PartialEmoji, reactor: Uncached | Member]

messageReactionRemove

messageReactionRemove: [message: PossiblyUncachedMessage, emoji: PartialEmoji, userID: string]

messageReactionRemoveAll

messageReactionRemoveAll: [message: PossiblyUncachedMessage]

messageReactionRemoveEmoji

messageReactionRemoveEmoji: [message: PossiblyUncachedMessage, emoji: PartialEmoji]

messageUpdate

messageUpdate: [message: Message<PossiblyUncachedTextableChannel>, oldMessage: null | OldMessage]

presenceUpdate

presenceUpdate: [other: Member | Relationship, oldPresence: null | Presence]

rawREST

rawREST: [request: RawRESTRequest]

rawWS

rawWS: [packet: RawPacket, id: number]

ready

ready: []

relationshipAdd

relationshipAdd: [relationship: Relationship]

relationshipRemove

relationshipRemove: [relationship: Relationship]

relationshipUpdate

relationshipUpdate: [relationship: Relationship, oldRelationship: { type: number }]

shardDisconnect

shardDisconnect: [err: Error, id: number]

shardPreReady

shardPreReady: [id: number]

shardReady

shardReady: [id: number]

shardResume

shardResume: [id: number]

stageInstanceCreate

stageInstanceCreate: [stageInstance: StageInstance]

stageInstanceDelete

stageInstanceDelete: [stageInstance: StageInstance]

stageInstanceUpdate

stageInstanceUpdate: [stageInstance: StageInstance, oldStageInstance: null | OldStageInstance]

threadCreate

threadCreate: [channel: AnyThreadChannel]

threadDelete

threadDelete: [channel: AnyThreadChannel]

threadListSync

threadListSync: [guild: Guild, deletedThreads: (Uncached | AnyThreadChannel)[], activeThreads: AnyThreadChannel[], joinedThreadsMember: ThreadMember[]]

threadMemberUpdate

threadMemberUpdate: [channel: AnyThreadChannel, member: ThreadMember, oldMember: OldThreadMember]

threadMembersUpdate

threadMembersUpdate: [channel: AnyThreadChannel, addedMembers: ThreadMember[], removedMembers: (Uncached | ThreadMember)[]]

threadUpdate

threadUpdate: [channel: AnyThreadChannel, oldChannel: null | OldThread]

typingStart

typingStart: [channel: Uncached | GuildTextableChannel, user: Uncached | User, member: Member] | [channel: Uncached | PrivateChannel, user: Uncached | User, member: null]

unavailableGuildCreate

unavailableGuildCreate: [guild: UnavailableGuild]

unknown

unknown: [packet: RawPacket, id?: number]

userUpdate

userUpdate: [user: User, oldUser: null | PartialUser]

voiceChannelJoin

voiceChannelJoin: [member: Member, channel: AnyVoiceChannel]

voiceChannelLeave

voiceChannelLeave: [member: Member, channel: AnyVoiceChannel]

voiceChannelSwitch

voiceChannelSwitch: [member: Member, newChannel: AnyVoiceChannel, oldChannel: AnyVoiceChannel]

voiceStateUpdate

voiceStateUpdate: [member: Member, oldState: OldVoiceState]

warn

warn: [message: string, id?: number]

webhooksUpdate

webhooksUpdate: [data: WebhookData]

Generated using TypeDoc