Events
ClientEvents
- ClientEvents(event: "commandLoaded", listener: (cmd: Command) => void): T
- ClientEvents(event: "preCommand", listener: (cmd: Command, msg: Message<TextableChannel>, args: string[], ctx: CommandContext) => void): T
- ClientEvents(event: "postCommand", listener: (cmd: Command, msg: Message<TextableChannel>, args: string[], ctx: CommandContext) => void): T
- ClientEvents(event: "invalidCommand", listener: (msg: Message<TextableChannel>, args: string[], ctx: CommandContext) => void): T
- ClientEvents(event: "shardReady" | "shardResume", listener: (id: number) => void): T
- ClientEvents(event: "shardDisconnect", listener: (err: undefined | Error, id: number) => void): T
- ClientEvents(event: "ready" | "disconnect", listener: () => void): T
- ClientEvents(event: "callCreate" | "callRing" | "callDelete", listener: (call: Call) => void): T
- ClientEvents(event: "callUpdate", listener: (call: Call, oldCall: OldCall) => void): T
- ClientEvents(event: "channelCreate" | "channelDelete", listener: (channel: AnyChannel) => void): T
- ClientEvents(event: "channelPinUpdate", listener: (channel: TextableChannel, timestamp: number, oldTimestamp: number) => void): T
- ClientEvents(event: "channelRecipientAdd" | "channelRecipientRemove", listener: (channel: GroupChannel, user: User) => void): T
- ClientEvents(event: "channelUpdate", listener: (channel: AnyGuildChannel, oldChannel: OldGuildChannel | OldGuildTextChannel | OldGuildVoiceChannel) => void): T
- ClientEvents(event: "channelUpdate", listener: (channel: GroupChannel, oldChannel: OldGroupChannel) => void): T
- ClientEvents(event: "connect" | "shardPreReady", listener: (id: number) => void): T
- ClientEvents(event: "error", listener: (err: Error, id: number) => void): T
- ClientEvents(event: "friendSuggestionCreate", listener: (user: User, reasons: FriendSuggestionReasons) => void): T
- ClientEvents(event: "friendSuggestionDelete", listener: (user: User) => void): T
- ClientEvents(event: "guildBanAdd" | "guildBanRemove", listener: (guild: Guild, user: User) => void): T
- ClientEvents(event: "guildAvailable" | "guildCreate", listener: (guild: Guild) => void): T
- ClientEvents(event: "guildDelete", listener: (guild: PossiblyUncachedGuild) => void): T
- ClientEvents(event: "guildEmojisUpdate", listener: (guild: PossiblyUncachedGuild, emojis: Emoji[], oldEmojis: null | Emoji[]) => void): T
- ClientEvents(event: "guildMemberAdd", listener: (guild: Guild, member: Member) => void): T
- ClientEvents(event: "guildMemberChunk", listener: (guild: Guild, members: Member[]) => void): T
- ClientEvents(event: "guildMemberRemove", listener: (guild: Guild, member: Member | MemberPartial) => void): T
- ClientEvents(event: "guildMemberUpdate", listener: (guild: Guild, member: Member, oldMember: null | OldMember) => void): T
- ClientEvents(event: "guildRoleCreate" | "guildRoleDelete", listener: (guild: Guild, role: Role) => void): T
- ClientEvents(event: "guildRoleUpdate", listener: (guild: Guild, role: Role, oldRole: OldRole) => void): T
- ClientEvents(event: "guildUnavailable" | "unavailableGuildCreate", listener: (guild: UnavailableGuild) => void): T
- ClientEvents(event: "guildUpdate", listener: (guild: Guild, oldGuild: OldGuild) => void): T
- ClientEvents(event: "hello", listener: (trace: string[], id: number) => void): T
- ClientEvents(event: "inviteCreate" | "inviteDelete", listener: (guild: Guild, invite: Invite<"withMetadata", InviteChannel>) => void): T
- ClientEvents(event: "messageCreate", listener: (message: Message<PossiblyUncachedTextableChannel>) => void): T
- ClientEvents(event: "messageDelete" | "messageReactionRemoveAll", listener: (message: PossiblyUncachedMessage) => void): T
- ClientEvents(event: "messageReactionRemoveEmoji", listener: (message: PossiblyUncachedMessage, emoji: PartialEmoji) => void): T
- ClientEvents(event: "messageDeleteBulk", listener: (messages: PossiblyUncachedMessage[]) => void): T
- ClientEvents(event: "messageReactionAdd", listener: (message: PossiblyUncachedMessage, emoji: PartialEmoji, reactor: Uncached | Member) => void): T
- ClientEvents(event: "messageReactionRemove", listener: (message: PossiblyUncachedMessage, emoji: PartialEmoji, userID: string) => void): T
- ClientEvents(event: "messageUpdate", listener: (message: Message<PossiblyUncachedTextableChannel>, oldMessage: null | OldMessage) => void): T
- ClientEvents(event: "presenceUpdate", listener: (other: Member | Relationship, oldPresence: null | Presence) => void): T
- ClientEvents(event: "rawREST", listener: (request: RawRESTRequest) => void): T
- ClientEvents(event: "rawWS" | "unknown", listener: (packet: RawPacket, id: number) => void): T
- ClientEvents(event: "relationshipAdd" | "relationshipRemove", listener: (relationship: Relationship) => void): T
- ClientEvents(event: "relationshipUpdate", listener: (relationship: Relationship, oldRelationship: { type: number }) => void): T
- ClientEvents(event: "typingStart", listener: (channel: Uncached | TextChannel | NewsChannel, user: Uncached | User, member: Member) => void): T
- ClientEvents(event: "typingStart", listener: (channel: Uncached | PrivateChannel, user: Uncached | User, member: null) => void): T
- ClientEvents(event: "userUpdate", listener: (user: User, oldUser: null | PartialUser) => void): T
- ClientEvents(event: "voiceChannelJoin" | "voiceChannelLeave", listener: (member: Member, channel: AnyVoiceChannel) => void): T
- ClientEvents(event: "voiceChannelSwitch", listener: (member: Member, newChannel: AnyVoiceChannel, oldChannel: AnyVoiceChannel) => void): T
- ClientEvents(event: "voiceStateUpdate", listener: (member: Member, oldState: OldVoiceState) => void): T
- ClientEvents(event: "warn" | "debug", listener: (message: string, id: number) => void): T
- ClientEvents(event: "webhooksUpdate", listener: (data: WebhookData) => void): T
- ClientEvents(event: string, listener: (...args: any[]) => void): T
-
Parameters
-
event: "commandLoaded"
-
listener: (cmd: Command) => void
Returns T
-
Parameters
Returns T
-
Parameters
Returns T
-
Parameters
Returns T
-
Parameters
-
event: "shardReady" | "shardResume"
-
listener: (id: number) => void
Returns T
-
Parameters
-
event: "shardDisconnect"
-
listener: (err: undefined | Error, id: number) => void
-
- (err: undefined | Error, id: number): void
-
Parameters
-
err: undefined | Error
-
id: number
Returns 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
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
Functions
Eris
Eris:
Information returned from the API about the bot's OAuth application.
Use
Eris.OAuthApplicationInfo
instead (this is a direct alias)