Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Event

Index

Methods

Constructors

Properties

Methods

bind

Abstract run

  • run(ctx: EventContext<Event>, ...args: [] | undefined[] | [error: Error] | [command: ApplicationCommand<{}>] | [command: ApplicationCommand<{}>] | [oldCommand: null | ApplicationCommand<{}>, newCommand: ApplicationCommand<{}>] | [channel: GuildChannel] | [channel: GuildChannel | DMChannel] | [channel: TextBasedChannels, date: Date] | [oldChannel: GuildChannel | DMChannel, newChannel: GuildChannel | DMChannel] | [message: string] | [message: string] | [emoji: GuildEmoji] | [emoji: GuildEmoji] | [oldEmoji: GuildEmoji, newEmoji: GuildEmoji] | [ban: GuildBan] | [ban: GuildBan] | [guild: Guild] | [guild: Guild] | [guild: Guild] | [guild: Guild] | [member: GuildMember] | [member: GuildMember | PartialGuildMember] | [member: GuildMember | PartialGuildMember] | [members: Collection<string, GuildMember>, guild: Guild, data: { count: number; index: number; nonce: undefined | string }] | [oldMember: GuildMember | PartialGuildMember, newMember: GuildMember] | [oldGuild: Guild, newGuild: Guild] | [invite: Invite] | [invite: Invite] | [message: Message] | [message: Message] | [message: Message | PartialMessage] | [message: Message | PartialMessage] | [reaction: MessageReaction | PartialMessageReaction] | [messages: Collection<string, Message | PartialMessage>] | [reaction: MessageReaction | PartialMessageReaction, user: User | PartialUser] | [reaction: MessageReaction | PartialMessageReaction, user: User | PartialUser] | [oldMessage: Message | PartialMessage, newMessage: Message | PartialMessage] | [oldPresence: null | Presence, newPresence: Presence] | [rateLimitData: RateLimitData] | [invalidRequestWarningData: InvalidRequestWarningData] | [client: Client<true>] | [role: Role] | [role: Role] | [oldRole: Role, newRole: Role] | [thread: ThreadChannel] | [thread: ThreadChannel] | [threads: Collection<string, ThreadChannel>] | [oldMember: ThreadMember, newMember: ThreadMember] | [oldMembers: Collection<string, ThreadMember>, mewMembers: Collection<string, ThreadMember>] | [oldThread: ThreadChannel, newThread: ThreadChannel] | [typing: Typing] | [oldUser: User | PartialUser, newUser: User] | [oldState: VoiceState, newState: VoiceState] | [channel: TextChannel] | [interaction: Interaction] | [interaction: Interaction] | [closeEvent: CloseEvent, shardId: number] | [error: Error, shardId: number] | [shardId: number, unavailableGuilds: Set<string>] | [shardId: number] | [shardId: number, replayedEvents: number] | [stageInstance: StageInstance] | [oldStageInstance: null | StageInstance, newStageInstance: StageInstance] | [stageInstance: StageInstance] | [sticker: Sticker] | [sticker: Sticker] | [oldSticker: Sticker, newSticker: Sticker]): any
  • The run function, executed when the event is fired.

    Parameters

    • ctx: EventContext<Event>
    • Rest ...args: [] | undefined[] | [error: Error] | [command: ApplicationCommand<{}>] | [command: ApplicationCommand<{}>] | [oldCommand: null | ApplicationCommand<{}>, newCommand: ApplicationCommand<{}>] | [channel: GuildChannel] | [channel: GuildChannel | DMChannel] | [channel: TextBasedChannels, date: Date] | [oldChannel: GuildChannel | DMChannel, newChannel: GuildChannel | DMChannel] | [message: string] | [message: string] | [emoji: GuildEmoji] | [emoji: GuildEmoji] | [oldEmoji: GuildEmoji, newEmoji: GuildEmoji] | [ban: GuildBan] | [ban: GuildBan] | [guild: Guild] | [guild: Guild] | [guild: Guild] | [guild: Guild] | [member: GuildMember] | [member: GuildMember | PartialGuildMember] | [member: GuildMember | PartialGuildMember] | [members: Collection<string, GuildMember>, guild: Guild, data: { count: number; index: number; nonce: undefined | string }] | [oldMember: GuildMember | PartialGuildMember, newMember: GuildMember] | [oldGuild: Guild, newGuild: Guild] | [invite: Invite] | [invite: Invite] | [message: Message] | [message: Message] | [message: Message | PartialMessage] | [message: Message | PartialMessage] | [reaction: MessageReaction | PartialMessageReaction] | [messages: Collection<string, Message | PartialMessage>] | [reaction: MessageReaction | PartialMessageReaction, user: User | PartialUser] | [reaction: MessageReaction | PartialMessageReaction, user: User | PartialUser] | [oldMessage: Message | PartialMessage, newMessage: Message | PartialMessage] | [oldPresence: null | Presence, newPresence: Presence] | [rateLimitData: RateLimitData] | [invalidRequestWarningData: InvalidRequestWarningData] | [client: Client<true>] | [role: Role] | [role: Role] | [oldRole: Role, newRole: Role] | [thread: ThreadChannel] | [thread: ThreadChannel] | [threads: Collection<string, ThreadChannel>] | [oldMember: ThreadMember, newMember: ThreadMember] | [oldMembers: Collection<string, ThreadMember>, mewMembers: Collection<string, ThreadMember>] | [oldThread: ThreadChannel, newThread: ThreadChannel] | [typing: Typing] | [oldUser: User | PartialUser, newUser: User] | [oldState: VoiceState, newState: VoiceState] | [channel: TextChannel] | [interaction: Interaction] | [interaction: Interaction] | [closeEvent: CloseEvent, shardId: number] | [error: Error, shardId: number] | [shardId: number, unavailableGuilds: Set<string>] | [shardId: number] | [shardId: number, replayedEvents: number] | [stageInstance: StageInstance] | [oldStageInstance: null | StageInstance, newStageInstance: StageInstance] | [stageInstance: StageInstance] | [sticker: Sticker] | [sticker: Sticker] | [oldSticker: Sticker, newSticker: Sticker]

    Returns any

unbind

Constructors

constructor

Properties

Readonly Abstract name

name: "error" | "applicationCommandCreate" | "applicationCommandDelete" | "applicationCommandUpdate" | "channelCreate" | "channelDelete" | "channelPinsUpdate" | "channelUpdate" | "debug" | "warn" | "emojiCreate" | "emojiDelete" | "emojiUpdate" | "guildBanAdd" | "guildBanRemove" | "guildCreate" | "guildDelete" | "guildUnavailable" | "guildIntegrationsUpdate" | "guildMemberAdd" | "guildMemberAvailable" | "guildMemberRemove" | "guildMembersChunk" | "guildMemberUpdate" | "guildUpdate" | "inviteCreate" | "inviteDelete" | "message" | "messageCreate" | "messageDelete" | "messageReactionRemoveAll" | "messageReactionRemoveEmoji" | "messageDeleteBulk" | "messageReactionAdd" | "messageReactionRemove" | "messageUpdate" | "presenceUpdate" | "rateLimit" | "invalidRequestWarning" | "ready" | "invalidated" | "roleCreate" | "roleDelete" | "roleUpdate" | "threadCreate" | "threadDelete" | "threadListSync" | "threadMemberUpdate" | "threadMembersUpdate" | "threadUpdate" | "typingStart" | "userUpdate" | "voiceStateUpdate" | "webhookUpdate" | "interaction" | "interactionCreate" | "shardDisconnect" | "shardError" | "shardReady" | "shardReconnecting" | "shardResume" | "stageInstanceCreate" | "stageInstanceUpdate" | "stageInstanceDelete" | "stickerCreate" | "stickerDelete" | "stickerUpdate"

The name of the event.

once

once: boolean = false

If the event should be fired only once.

Generated using TypeDoc