Interface EventListeners<T>
Callable
- EventListeners(event: "ready" | "disconnect", listener: () => void): T
- EventListeners(event: "callCreate" | "callRing" | "callDelete", listener: (call: Call) => void): T
- EventListeners(event: "callUpdate", listener: (call: Call, oldCall: OldCall) => void): T
- EventListeners(event: "channelCreate" | "channelDelete", listener: (channel: AnyChannel) => void): T
- EventListeners(event: "channelPinUpdate", listener: (channel: TextableChannel, timestamp: number, oldTimestamp: number) => void): T
- EventListeners(event: "channelRecipientAdd" | "channelRecipientRemove", listener: (channel: GroupChannel, user: User) => void): T
- EventListeners(event: "channelUpdate", listener: (channel: AnyGuildChannel, oldChannel: OldGuildChannel | OldGuildTextChannel | OldGuildVoiceChannel) => void): T
- EventListeners(event: "channelUpdate", listener: (channel: GroupChannel, oldChannel: OldGroupChannel) => void): T
- EventListeners(event: "connect" | "shardPreReady", listener: (id: number) => void): T
- EventListeners(event: "error", listener: (err: Error, id: number) => void): T
- EventListeners(event: "friendSuggestionCreate", listener: (user: User, reasons: FriendSuggestionReasons) => void): T
- EventListeners(event: "friendSuggestionDelete", listener: (user: User) => void): T
- EventListeners(event: "guildBanAdd" | "guildBanRemove", listener: (guild: Guild, user: User) => void): T
- EventListeners(event: "guildAvailable" | "guildCreate", listener: (guild: Guild) => void): T
- EventListeners(event: "guildDelete", listener: (guild: PossiblyUncachedGuild) => void): T
- EventListeners(event: "guildEmojisUpdate", listener: (guild: PossiblyUncachedGuild, emojis: Emoji[], oldEmojis: null | Emoji[]) => void): T
- EventListeners(event: "guildMemberAdd", listener: (guild: Guild, member: Member) => void): T
- EventListeners(event: "guildMemberChunk", listener: (guild: Guild, members: Member[]) => void): T
- EventListeners(event: "guildMemberRemove", listener: (guild: Guild, member: Member | MemberPartial) => void): T
- EventListeners(event: "guildMemberUpdate", listener: (guild: Guild, member: Member, oldMember: null | OldMember) => void): T
- EventListeners(event: "guildRoleCreate" | "guildRoleDelete", listener: (guild: Guild, role: Role) => void): T
- EventListeners(event: "guildRoleUpdate", listener: (guild: Guild, role: Role, oldRole: OldRole) => void): T
- EventListeners(event: "guildUnavailable" | "unavailableGuildCreate", listener: (guild: UnavailableGuild) => void): T
- EventListeners(event: "guildUpdate", listener: (guild: Guild, oldGuild: OldGuild) => void): T
- EventListeners(event: "hello", listener: (trace: string[], id: number) => void): T
- EventListeners(event: "inviteCreate" | "inviteDelete", listener: (guild: Guild, invite: Invite<"withMetadata", InviteChannel>) => void): T
- EventListeners(event: "messageCreate", listener: (message: Message<PossiblyUncachedTextableChannel>) => void): T
- EventListeners(event: "messageDelete" | "messageReactionRemoveAll", listener: (message: PossiblyUncachedMessage) => void): T
- EventListeners(event: "messageReactionRemoveEmoji", listener: (message: PossiblyUncachedMessage, emoji: PartialEmoji) => void): T
- EventListeners(event: "messageDeleteBulk", listener: (messages: PossiblyUncachedMessage[]) => void): T
- EventListeners(event: "messageReactionAdd", listener: (message: PossiblyUncachedMessage, emoji: PartialEmoji, reactor: Uncached | Member) => void): T
- EventListeners(event: "messageReactionRemove", listener: (message: PossiblyUncachedMessage, emoji: PartialEmoji, userID: string) => void): T
- EventListeners(event: "messageUpdate", listener: (message: Message<PossiblyUncachedTextableChannel>, oldMessage: null | OldMessage) => void): T
- EventListeners(event: "presenceUpdate", listener: (other: Member | Relationship, oldPresence: null | Presence) => void): T
- EventListeners(event: "rawREST", listener: (request: RawRESTRequest) => void): T
- EventListeners(event: "rawWS" | "unknown", listener: (packet: RawPacket, id: number) => void): T
- EventListeners(event: "relationshipAdd" | "relationshipRemove", listener: (relationship: Relationship) => void): T
- EventListeners(event: "relationshipUpdate", listener: (relationship: Relationship, oldRelationship: { type: number }) => void): T
- EventListeners(event: "typingStart", listener: (channel: Uncached | GuildTextableChannel, user: Uncached | User, member: Member) => void): T
- EventListeners(event: "typingStart", listener: (channel: Uncached | PrivateChannel, user: Uncached | User, member: null) => void): T
- EventListeners(event: "userUpdate", listener: (user: User, oldUser: null | PartialUser) => void): T
- EventListeners(event: "voiceChannelJoin" | "voiceChannelLeave", listener: (member: Member, channel: AnyVoiceChannel) => void): T
- EventListeners(event: "voiceChannelSwitch", listener: (member: Member, newChannel: AnyVoiceChannel, oldChannel: AnyVoiceChannel) => void): T
- EventListeners(event: "voiceStateUpdate", listener: (member: Member, oldState: OldVoiceState) => void): T
- EventListeners(event: "warn" | "debug", listener: (message: string, id: number) => void): T
- EventListeners(event: "webhooksUpdate", listener: (data: WebhookData) => void): T
- EventListeners(event: string, listener: (...args: any[]) => void): T
-
Parameters
-
event: "ready" | "disconnect"
-
listener: () => void
Returns T
-
Parameters
-
event: "callCreate" | "callRing" | "callDelete"
-
listener: (call: Call) => void
Returns T
-
Parameters
-
event: "callUpdate"
-
listener: (call: Call, oldCall: OldCall) => void
Returns T
-
Parameters
-
event: "channelCreate" | "channelDelete"
-
listener: (channel: AnyChannel) => void
Returns T
-
Parameters
-
event: "channelPinUpdate"
-
listener: (channel: TextableChannel, timestamp: number, oldTimestamp: number) => void
-
-
Parameters
-
-
timestamp: number
-
oldTimestamp: number
Returns void
Returns T
-
Parameters
-
event: "channelRecipientAdd" | "channelRecipientRemove"
-
listener: (channel: GroupChannel, user: User) => void
Returns T
-
Parameters
Returns T
-
Parameters
Returns T
-
Parameters
-
event: "connect" | "shardPreReady"
-
listener: (id: number) => void
Returns T
-
Parameters
-
event: "error"
-
listener: (err: Error, id: number) => void
-
- (err: Error, id: number): void
Returns T
-
Parameters
-
event: "friendSuggestionCreate"
-
Returns T
-
Parameters
-
event: "friendSuggestionDelete"
-
listener: (user: User) => void
Returns T
-
Parameters
-
event: "guildBanAdd" | "guildBanRemove"
-
listener: (guild: Guild, user: User) => void
Returns T
-
Parameters
-
event: "guildAvailable" | "guildCreate"
-
listener: (guild: Guild) => void
Returns T
-
Parameters
Returns T
-
Parameters
-
event: "guildEmojisUpdate"
-
-
-
Parameters
-
-
-
oldEmojis: null | Emoji[]
Returns void
Returns T
-
Parameters
-
event: "guildMemberAdd"
-
listener: (guild: Guild, member: Member) => void
Returns T
-
Parameters
-
event: "guildMemberChunk"
-
listener: (guild: Guild, members: Member[]) => void
Returns T
-
Parameters
-
event: "guildMemberRemove"
-
Returns T
-
Parameters
-
event: "guildMemberUpdate"
-
listener: (guild: Guild, member: Member, oldMember: null | OldMember) => void
Returns T
-
Parameters
-
event: "guildRoleCreate" | "guildRoleDelete"
-
listener: (guild: Guild, role: Role) => void
Returns T
-
Parameters
-
event: "guildRoleUpdate"
-
listener: (guild: Guild, role: Role, oldRole: OldRole) => void
Returns T
-
Parameters
-
event: "guildUnavailable" | "unavailableGuildCreate"
-
Returns T
-
Parameters
-
event: "guildUpdate"
-
listener: (guild: Guild, oldGuild: OldGuild) => void
Returns T
-
Parameters
-
event: "hello"
-
listener: (trace: string[], id: number) => void
-
- (trace: string[], id: number): void
-
Parameters
-
trace: string[]
-
id: number
Returns void
Returns T
-
Parameters
Returns T
-
Parameters
Returns T
-
Parameters
-
event: "messageDelete" | "messageReactionRemoveAll"
-
Returns T
-
Parameters
-
event: "messageReactionRemoveEmoji"
-
Returns T
-
Parameters
-
event: "messageDeleteBulk"
-
Returns T
-
Parameters
-
event: "messageReactionAdd"
-
Returns T
-
Parameters
-
event: "messageReactionRemove"
-
Returns T
-
Parameters
Returns T
-
Parameters
Returns T
-
Parameters
Returns T
-
Parameters
-
event: "rawWS" | "unknown"
-
listener: (packet: RawPacket, id: number) => void
Returns T
-
Parameters
-
event: "relationshipAdd" | "relationshipRemove"
-
listener: (relationship: Relationship) => void
Returns T
-
Parameters
-
event: "relationshipUpdate"
-
listener: (relationship: Relationship, oldRelationship: { type: number }) => void
-
- (relationship: Relationship, oldRelationship: { type: number }): void
-
Parameters
-
-
oldRelationship: { type: number }
Returns void
Returns T
-
Parameters
Returns T
-
Parameters
Returns T
-
Parameters
-
event: "userUpdate"
-
listener: (user: User, oldUser: null | PartialUser) => void
Returns T
-
Parameters
-
event: "voiceChannelJoin" | "voiceChannelLeave"
-
Returns T
-
Parameters
-
event: "voiceChannelSwitch"
-
Returns T
-
Parameters
Returns T
-
Parameters
-
event: "warn" | "debug"
-
listener: (message: string, id: number) => void
-
- (message: string, id: number): void
-
Parameters
-
message: string
-
id: number
Returns void
Returns T
-
Parameters
-
event: "webhooksUpdate"
-
listener: (data: WebhookData) => void
Returns T
-
Parameters
-
event: string
-
listener: (...args: any[]) => void
Returns T