import { type EventHandlers } from "https://dotland.deno.dev/x/discordeno@18.0.1/bot.ts";
Properties
automodRuleCreate: (bot: Bot, rule: AutoModerationRule) => unknown
automodRuleUpdate: (bot: Bot, rule: AutoModerationRule) => unknown
automodRuleDelete: (bot: Bot, rule: AutoModerationRule) => unknown
automodActionExecution: (bot: Bot, payload: AutoModerationActionExecution) => unknown
threadMemberUpdate: (bot: Bot, payload: { id: bigint; guildId: bigint; joinedAt: number; flags: number; }) => unknown
threadMembersUpdate: (bot: Bot, payload: { id: bigint; guildId: bigint; addedMembers?: ThreadMember[]; removedMemberIds?: bigint[]; }) => unknown
scheduledEventCreate: (bot: Bot, event: ScheduledEvent) => unknown
scheduledEventUpdate: (bot: Bot, event: ScheduledEvent) => unknown
scheduledEventDelete: (bot: Bot, event: ScheduledEvent) => unknown
scheduledEventUserAdd: (bot: Bot, payload: { guildScheduledEventId: bigint; guildId: bigint; userId: bigint; }) => unknown
Sent when a user has subscribed to a guild scheduled event. EXPERIMENTAL!
scheduledEventUserRemove: (bot: Bot, payload: { guildScheduledEventId: bigint; guildId: bigint; userId: bigint; }) => unknown
Sent when a user has unsubscribed to a guild scheduled event. EXPERIMENTAL!
ready: () => unknown
bot: Bot,
payload: { shardId: number; v: number; user: User; guilds: bigint[]; sessionId: string; shard?: number[]; applicationId: bigint; },
rawPayload: DiscordReady,
interactionCreate: (bot: Bot, interaction: Interaction) => unknown
integrationCreate: (bot: Bot, integration: Integration) => unknown
integrationDelete: (bot: Bot, payload: { id: bigint; guildId: bigint; applicationId?: bigint; }) => unknown
integrationUpdate: (bot: Bot, payload: { guildId: bigint; }) => unknown
inviteDelete: (bot: Bot, payload: { channelId: bigint; guildId?: bigint; code: string; }) => unknown
messageDeleteBulk: (bot: Bot, payload: { ids: bigint[]; channelId: bigint; guildId?: bigint; }) => unknown
reactionRemoveAll: (bot: Bot, payload: { channelId: bigint; messageId: bigint; guildId?: bigint; }) => unknown
voiceServerUpdate: (bot: Bot, payload: { token: string; endpoint?: string; guildId: bigint; }) => unknown
voiceStateUpdate: (bot: Bot, voiceState: VoiceState) => unknown
channelPinsUpdate: (bot: Bot, data: { guildId?: bigint; channelId: bigint; lastPinTimestamp?: number; }) => unknown
stageInstanceCreate: (bot: Bot, data: { id: bigint; guildId: bigint; channelId: bigint; topic: string; }) => unknown
stageInstanceDelete: (bot: Bot, data: { id: bigint; guildId: bigint; channelId: bigint; topic: string; }) => unknown
stageInstanceUpdate: (bot: Bot, data: { id: bigint; guildId: bigint; channelId: bigint; topic: string; }) => unknown
guildEmojisUpdate: (bot: Bot, payload: { guildId: bigint; emojis: Collection<bigint, DiscordEmoji>; }) => unknown
roleDelete: (bot: Bot, payload: { guildId: bigint; roleId: bigint; }) => unknown
webhooksUpdate: (bot: Bot, payload: { channelId: bigint; guildId: bigint; }) => unknown