Callable
- ShardEvents(event: "shardPreReady" | "connect", listener: (id: number) => void): T
- ShardEvents(event: "disconnect", listener: (err: Error) => void): T
- ShardEvents(event: "resume", listener: () => void): T
- ShardEvents(event: "ready" | "disconnect", listener: () => void): T
- ShardEvents(event: "callCreate" | "callRing" | "callDelete", listener: (call: Call) => void): T
- ShardEvents(event: "callUpdate", listener: (call: Call, oldCall: OldCall) => void): T
- ShardEvents(event: "channelCreate" | "channelDelete", listener: (channel: AnyChannel) => void): T
- ShardEvents(event: "channelPinUpdate", listener: (channel: TextableChannel, timestamp: number, oldTimestamp: number) => void): T
- ShardEvents(event: "channelRecipientAdd" | "channelRecipientRemove", listener: (channel: GroupChannel, user: User) => void): T
- ShardEvents(event: "channelUpdate", listener: (channel: AnyGuildChannel, oldChannel: OldGuildChannel) => void): T
- ShardEvents(event: "friendSuggestionCreate", listener: (user: User, reasons: FriendSuggestionReasons) => void): T
- ShardEvents(event: "friendSuggestionDelete", listener: (user: User) => void): T
- ShardEvents(event: "guildAvailable" | "guildBanAdd" | "guildBanRemove", listener: (guild: Guild, user: User) => void): T
- ShardEvents(event: "guildDelete" | "guildUnavailable" | "guildCreate", listener: (guild: Guild) => void): T
- ShardEvents(event: "guildEmojisUpdate", listener: (guild: Guild, emojis: Emoji[], oldEmojis: Emoji[]) => void): T
- ShardEvents(event: "guildMemberAdd", listener: (guild: Guild, member: Member) => void): T
- ShardEvents(event: "guildMemberChunk", listener: (guild: Guild, members: Member[]) => void): T
- ShardEvents(event: "guildMemberRemove", listener: (guild: Guild, member: MemberPartial | Member) => void): T
- ShardEvents(event: "guildMemberUpdate", listener: (guild: Guild, member: Member, oldMember: { nick?: undefined | string; roles: string[] }) => void): T
- ShardEvents(event: "guildRoleCreate" | "guildRoleDelete", listener: (guild: Guild, role: Role) => void): T
- ShardEvents(event: "guildRoleUpdate", listener: (guild: Guild, role: Role, oldRole: OldRole) => void): T
- ShardEvents(event: "guildUpdate", listener: (guild: Guild, oldGuild: OldGuild) => void): T
- ShardEvents(event: "hello", listener: (trace: string[], id: number) => void): T
- ShardEvents(event: "inviteCreate" | "inviteDelete", listener: (guild: Guild, invite: GuildInvite) => void): T
- ShardEvents(event: "messageCreate", listener: (message: Message<TextableChannel>) => void): T
- ShardEvents(event: "messageDelete" | "messageReactionRemoveAll", listener: (message: PossiblyUncachedMessage) => void): T
- ShardEvents(event: "messageReactionRemoveEmoji", listener: (message: PossiblyUncachedMessage, emoji: PartialEmoji) => void): T
- ShardEvents(event: "messageDeleteBulk", listener: (messages: PossiblyUncachedMessage[]) => void): T
- ShardEvents(event: "messageReactionAdd" | "messageReactionRemove", listener: (message: PossiblyUncachedMessage, emoji: Emoji, userID: string) => void): T
- ShardEvents(event: "messageUpdate", listener: (message: Message<TextableChannel>, oldMessage?: OldMessage) => void): T
- ShardEvents(event: "presenceUpdate", listener: (other: Member | Relationship, oldPresence?: Presence) => void): T
- ShardEvents(event: "rawREST", listener: (request: RawRESTRequest) => void): T
- ShardEvents(event: "rawWS" | "unknown", listener: (packet: RawPacket, id: number) => void): T
- ShardEvents(event: "relationshipAdd" | "relationshipRemove", listener: (relationship: Relationship) => void): T
- ShardEvents(event: "relationshipUpdate", listener: (relationship: Relationship, oldRelationship: { type: number }) => void): T
- ShardEvents(event: "typingStart", listener: (channel: TextableChannel, user: User) => void): T
- ShardEvents(event: "unavailableGuildCreate", listener: (guild: UnavailableGuild) => void): T
- ShardEvents(event: "userUpdate", listener: (user: User, oldUser: { avatar?: undefined | string; discriminator: string; username: string }) => void): T
- ShardEvents(event: "voiceChannelJoin", listener: (member: Member, newChannel: VoiceChannel) => void): T
- ShardEvents(event: "voiceChannelLeave", listener: (member: Member, oldChannel: VoiceChannel) => void): T
- ShardEvents(event: "voiceChannelSwitch", listener: (member: Member, newChannel: VoiceChannel, oldChannel: VoiceChannel) => void): T
- ShardEvents(event: "voiceStateUpdate", listener: (member: Member, oldState: OldVoiceState) => void): T
- ShardEvents(event: "warn" | "debug", listener: (message: string, id: number) => void): T
- ShardEvents(event: string, listener: Function): T
-
Parameters
-
event: "shardPreReady" | "connect"
-
listener: (id: number) => void
Returns T
-
Parameters
-
event: "disconnect"
-
listener: (err: Error) => void
Returns T
-
Parameters
-
event: "resume"
-
listener: () => void
Returns 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
-
event: "friendSuggestionCreate"
-
Returns T
-
Parameters
-
event: "friendSuggestionDelete"
-
listener: (user: User) => void
Returns T
-
Parameters
-
event: "guildAvailable" | "guildBanAdd" | "guildBanRemove"
-
listener: (guild: Guild, user: User) => void
Returns T
-
Parameters
-
event: "guildDelete" | "guildUnavailable" | "guildCreate"
-
listener: (guild: Guild) => void
Returns T
-
Parameters
-
event: "guildEmojisUpdate"
-
listener: (guild: Guild, emojis: Emoji[], oldEmojis: Emoji[]) => 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: { nick?: undefined | string; roles: string[] }) => void
-
- (guild: Guild, member: Member, oldMember: { nick?: undefined | string; roles: string[] }): void
-
Parameters
-
-
-
oldMember: { nick?: undefined | string; roles: string[] }
-
Optional nick?: undefined | string
-
roles: string[]
Returns 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: "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
-
event: "inviteCreate" | "inviteDelete"
-
listener: (guild: Guild, invite: GuildInvite) => void
Returns T
-
Parameters
Returns T
-
Parameters
-
event: "messageDelete" | "messageReactionRemoveAll"
-
Returns T
-
Parameters
-
event: "messageReactionRemoveEmoji"
-
Returns T
-
Parameters
-
event: "messageDeleteBulk"
-
Returns T
-
Parameters
-
event: "messageReactionAdd" | "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
-
event: "unavailableGuildCreate"
-
Returns T
-
Parameters
-
event: "userUpdate"
-
listener: (user: User, oldUser: { avatar?: undefined | string; discriminator: string; username: string }) => void
-
- (user: User, oldUser: { avatar?: undefined | string; discriminator: string; username: string }): void
-
Parameters
-
-
oldUser: { avatar?: undefined | string; discriminator: string; username: string }
-
Optional avatar?: undefined | string
-
discriminator: string
-
username: string
Returns void
Returns T
-
Parameters
Returns T
-
Parameters
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: string
-
listener: Function
Returns T