Interface BrynjolfEvents

Extended map of supported Discord.js events to their event listener parameters.

interface BrynjolfEvents {
    *: [eventName: keyof ClientEvents, data: any[]];
    applicationCommandPermissionsUpdate: [data: ApplicationCommandPermissionsUpdateData];
    autoModerationActionExecution: [autoModerationActionExecution: AutoModerationActionExecution];
    autoModerationRuleCreate: [autoModerationRule: AutoModerationRule];
    autoModerationRuleDelete: [autoModerationRule: AutoModerationRule];
    autoModerationRuleUpdate: [oldAutoModerationRule: null | AutoModerationRule, newAutoModerationRule: AutoModerationRule];
    cacheSweep: [message: string];
    channelCreate: [channel: NonThreadGuildBasedChannel];
    channelDelete: [channel: DMChannel | NonThreadGuildBasedChannel];
    channelPinsUpdate: [channel: TextBasedChannel, date: Date];
    channelUpdate: [oldChannel: DMChannel | NonThreadGuildBasedChannel, newChannel: DMChannel | NonThreadGuildBasedChannel];
    debug: [message: string];
    emojiCreate: [emoji: GuildEmoji];
    emojiDelete: [emoji: GuildEmoji];
    emojiUpdate: [oldEmoji: GuildEmoji, newEmoji: GuildEmoji];
    error: [error: Error];
    guildAuditLogEntryCreate: [auditLogEntry: GuildAuditLogsEntry<AuditLogEvent, GuildAuditLogsActionType, GuildAuditLogsTargetType, AuditLogEvent>, guild: Guild];
    guildAvailable: [guild: Guild];
    guildBanAdd: [ban: GuildBan];
    guildBanRemove: [ban: GuildBan];
    guildCreate: [guild: Guild];
    guildDelete: [guild: Guild];
    guildIntegrationsUpdate: [guild: Guild];
    guildMemberAdd: [member: GuildMember];
    guildMemberAvailable: [member: GuildMember | PartialGuildMember];
    guildMemberRemove: [member: GuildMember | PartialGuildMember];
    guildMemberUpdate: [oldMember: GuildMember | PartialGuildMember, newMember: GuildMember];
    guildMembersChunk: [members: Collection<string, GuildMember>, guild: Guild, data: {
        count: number;
        index: number;
        nonce: undefined | string;
        notFound: unknown[];
    }];
    guildScheduledEventCreate: [guildScheduledEvent: GuildScheduledEvent<GuildScheduledEventStatus>];
    guildScheduledEventDelete: [guildScheduledEvent: GuildScheduledEvent<GuildScheduledEventStatus> | PartialGuildScheduledEvent];
    guildScheduledEventUpdate: [oldGuildScheduledEvent: null | GuildScheduledEvent<GuildScheduledEventStatus> | PartialGuildScheduledEvent, newGuildScheduledEvent: GuildScheduledEvent<GuildScheduledEventStatus>];
    guildScheduledEventUserAdd: [guildScheduledEvent: GuildScheduledEvent<GuildScheduledEventStatus> | PartialGuildScheduledEvent, user: User];
    guildScheduledEventUserRemove: [guildScheduledEvent: GuildScheduledEvent<GuildScheduledEventStatus> | PartialGuildScheduledEvent, user: User];
    guildUnavailable: [guild: Guild];
    guildUpdate: [oldGuild: Guild, newGuild: Guild];
    interactionCreate: [interaction: Interaction<CacheType>];
    invalidated: [];
    inviteCreate: [invite: Invite];
    inviteDelete: [invite: Invite];
    messageCreate: [message: Message<boolean>];
    messageDelete: [message: Message<boolean> | PartialMessage];
    messageDeleteBulk: [messages: Collection<string, Message<boolean> | PartialMessage>, channel: GuildTextBasedChannel];
    messageReactionAdd: [reaction: MessageReaction | PartialMessageReaction, user: User | PartialUser];
    messageReactionRemove: [reaction: MessageReaction | PartialMessageReaction, user: User | PartialUser];
    messageReactionRemoveAll: [message: Message<boolean> | PartialMessage, reactions: Collection<string, MessageReaction>];
    messageReactionRemoveEmoji: [reaction: MessageReaction | PartialMessageReaction];
    messageUpdate: [oldMessage: Message<boolean> | PartialMessage, newMessage: Message<boolean> | PartialMessage];
    presenceUpdate: [oldPresence: null | Presence, newPresence: Presence];
    ready: [client: Client<true>];
    roleCreate: [role: Role];
    roleDelete: [role: Role];
    roleUpdate: [oldRole: Role, newRole: Role];
    shardDisconnect: [closeEvent: CloseEvent, shardId: number];
    shardError: [error: Error, shardId: number];
    shardReady: [shardId: number, unavailableGuilds: Set<string>];
    shardReconnecting: [shardId: number];
    shardResume: [shardId: number, replayedEvents: number];
    stageInstanceCreate: [stageInstance: StageInstance];
    stageInstanceDelete: [stageInstance: StageInstance];
    stageInstanceUpdate: [oldStageInstance: null | StageInstance, newStageInstance: StageInstance];
    stickerCreate: [sticker: Sticker];
    stickerDelete: [sticker: Sticker];
    stickerUpdate: [oldSticker: Sticker, newSticker: Sticker];
    threadCreate: [thread: AnyThreadChannel<boolean>, newlyCreated: boolean];
    threadDelete: [thread: AnyThreadChannel<boolean>];
    threadListSync: [threads: Collection<string, AnyThreadChannel<boolean>>, guild: Guild];
    threadMemberUpdate: [oldMember: ThreadMember<boolean>, newMember: ThreadMember<boolean>];
    threadMembersUpdate: [addedMembers: Collection<string, ThreadMember<boolean>>, removedMembers: Collection<string, ThreadMember<boolean> | PartialThreadMember>, thread: AnyThreadChannel<boolean>];
    threadUpdate: [oldThread: AnyThreadChannel<boolean>, newThread: AnyThreadChannel<boolean>];
    typingStart: [typing: Typing];
    userUpdate: [oldUser: User | PartialUser, newUser: User];
    voiceStateUpdate: [oldState: VoiceState, newState: VoiceState];
    warn: [message: string];
    webhookUpdate: [channel: NewsChannel | TextChannel | VoiceChannel | ForumChannel | MediaChannel];
    webhooksUpdate: [channel: NewsChannel | TextChannel | VoiceChannel | ForumChannel | MediaChannel];
}

Hierarchy

  • ClientEvents
    • BrynjolfEvents

Properties

*: [eventName: keyof ClientEvents, data: any[]]

Global event, emitted when any other event is emitted.

applicationCommandPermissionsUpdate: [data: ApplicationCommandPermissionsUpdateData]
autoModerationActionExecution: [autoModerationActionExecution: AutoModerationActionExecution]
autoModerationRuleCreate: [autoModerationRule: AutoModerationRule]
autoModerationRuleDelete: [autoModerationRule: AutoModerationRule]
autoModerationRuleUpdate: [oldAutoModerationRule: null | AutoModerationRule, newAutoModerationRule: AutoModerationRule]
cacheSweep: [message: string]
channelCreate: [channel: NonThreadGuildBasedChannel]
channelDelete: [channel: DMChannel | NonThreadGuildBasedChannel]
channelPinsUpdate: [channel: TextBasedChannel, date: Date]
channelUpdate: [oldChannel: DMChannel | NonThreadGuildBasedChannel, newChannel: DMChannel | NonThreadGuildBasedChannel]
debug: [message: string]
emojiCreate: [emoji: GuildEmoji]
emojiDelete: [emoji: GuildEmoji]
emojiUpdate: [oldEmoji: GuildEmoji, newEmoji: GuildEmoji]
error: [error: Error]
guildAuditLogEntryCreate: [auditLogEntry: GuildAuditLogsEntry<AuditLogEvent, GuildAuditLogsActionType, GuildAuditLogsTargetType, AuditLogEvent>, guild: Guild]
guildAvailable: [guild: Guild]
guildBanAdd: [ban: GuildBan]
guildBanRemove: [ban: GuildBan]
guildCreate: [guild: Guild]
guildDelete: [guild: Guild]
guildIntegrationsUpdate: [guild: Guild]
guildMemberAdd: [member: GuildMember]
guildMemberAvailable: [member: GuildMember | PartialGuildMember]
guildMemberRemove: [member: GuildMember | PartialGuildMember]
guildMemberUpdate: [oldMember: GuildMember | PartialGuildMember, newMember: GuildMember]
guildMembersChunk: [members: Collection<string, GuildMember>, guild: Guild, data: {
    count: number;
    index: number;
    nonce: undefined | string;
    notFound: unknown[];
}]
guildScheduledEventCreate: [guildScheduledEvent: GuildScheduledEvent<GuildScheduledEventStatus>]
guildScheduledEventDelete: [guildScheduledEvent: GuildScheduledEvent<GuildScheduledEventStatus> | PartialGuildScheduledEvent]
guildScheduledEventUpdate: [oldGuildScheduledEvent: null | GuildScheduledEvent<GuildScheduledEventStatus> | PartialGuildScheduledEvent, newGuildScheduledEvent: GuildScheduledEvent<GuildScheduledEventStatus>]
guildScheduledEventUserAdd: [guildScheduledEvent: GuildScheduledEvent<GuildScheduledEventStatus> | PartialGuildScheduledEvent, user: User]
guildScheduledEventUserRemove: [guildScheduledEvent: GuildScheduledEvent<GuildScheduledEventStatus> | PartialGuildScheduledEvent, user: User]
guildUnavailable: [guild: Guild]
guildUpdate: [oldGuild: Guild, newGuild: Guild]
interactionCreate: [interaction: Interaction<CacheType>]
invalidated: []
inviteCreate: [invite: Invite]
inviteDelete: [invite: Invite]
messageCreate: [message: Message<boolean>]
messageDelete: [message: Message<boolean> | PartialMessage]
messageDeleteBulk: [messages: Collection<string, Message<boolean> | PartialMessage>, channel: GuildTextBasedChannel]
messageReactionAdd: [reaction: MessageReaction | PartialMessageReaction, user: User | PartialUser]
messageReactionRemove: [reaction: MessageReaction | PartialMessageReaction, user: User | PartialUser]
messageReactionRemoveAll: [message: Message<boolean> | PartialMessage, reactions: Collection<string, MessageReaction>]
messageReactionRemoveEmoji: [reaction: MessageReaction | PartialMessageReaction]
messageUpdate: [oldMessage: Message<boolean> | PartialMessage, newMessage: Message<boolean> | PartialMessage]
presenceUpdate: [oldPresence: null | Presence, newPresence: Presence]
ready: [client: Client<true>]
roleCreate: [role: Role]
roleDelete: [role: Role]
roleUpdate: [oldRole: Role, newRole: Role]
shardDisconnect: [closeEvent: CloseEvent, shardId: number]
shardError: [error: Error, shardId: number]
shardReady: [shardId: number, unavailableGuilds: Set<string>]
shardReconnecting: [shardId: number]
shardResume: [shardId: number, replayedEvents: number]
stageInstanceCreate: [stageInstance: StageInstance]
stageInstanceDelete: [stageInstance: StageInstance]
stageInstanceUpdate: [oldStageInstance: null | StageInstance, newStageInstance: StageInstance]
stickerCreate: [sticker: Sticker]
stickerDelete: [sticker: Sticker]
stickerUpdate: [oldSticker: Sticker, newSticker: Sticker]
threadCreate: [thread: AnyThreadChannel<boolean>, newlyCreated: boolean]
threadDelete: [thread: AnyThreadChannel<boolean>]
threadListSync: [threads: Collection<string, AnyThreadChannel<boolean>>, guild: Guild]
threadMemberUpdate: [oldMember: ThreadMember<boolean>, newMember: ThreadMember<boolean>]
threadMembersUpdate: [addedMembers: Collection<string, ThreadMember<boolean>>, removedMembers: Collection<string, ThreadMember<boolean> | PartialThreadMember>, thread: AnyThreadChannel<boolean>]
threadUpdate: [oldThread: AnyThreadChannel<boolean>, newThread: AnyThreadChannel<boolean>]
typingStart: [typing: Typing]
userUpdate: [oldUser: User | PartialUser, newUser: User]
voiceStateUpdate: [oldState: VoiceState, newState: VoiceState]
warn: [message: string]
webhookUpdate: [channel: NewsChannel | TextChannel | VoiceChannel | ForumChannel | MediaChannel]

Deprecated

Use webhooksUpdate instead.

webhooksUpdate: [channel: NewsChannel | TextChannel | VoiceChannel | ForumChannel | MediaChannel]

Generated using TypeDoc