Extremely Popular
Go to Latest
interface EventHandlers
import { type EventHandlers } from "https://dotland.deno.dev/x/discordeno@17.2.0/plugins/validations/deps.ts";

Properties

debug: (text: string, ...args: any[]) => unknown
auditLogEntryCreate: (
bot: Bot,
guildId: bigint,
) => unknown
automodRuleCreate: (bot: Bot, rule: AutoModerationRule) => unknown
automodRuleUpdate: (bot: Bot, rule: AutoModerationRule) => unknown
automodRuleDelete: (bot: Bot, rule: AutoModerationRule) => unknown
automodActionExecution: (bot: Bot, payload: AutoModerationActionExecution) => unknown
threadCreate: (bot: Bot, thread: Channel) => unknown
threadDelete: (bot: Bot, thread: Channel) => 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
threadUpdate: (bot: Bot, thread: Channel) => 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: (
bot: Bot,
payload: { shardId: number; v: number; user: User; guilds: bigint[]; sessionId: string; shard?: number[]; applicationId: bigint; },
rawPayload: DiscordReady,
) => unknown
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
inviteCreate: (bot: Bot, invite: Invite) => unknown
inviteDelete: (bot: Bot, payload: { channelId: bigint; guildId?: bigint; code: string; }) => unknown
guildMemberAdd: (
bot: Bot,
member: Member,
user: User,
) => unknown
guildMemberRemove: (
bot: Bot,
user: User,
guildId: bigint,
) => unknown
guildMemberUpdate: (
bot: Bot,
member: Member,
user: User,
) => unknown
messageCreate: (bot: Bot, message: Message) => unknown
messageDelete: (
bot: Bot,
payload: { id: bigint; channelId: bigint; guildId?: bigint; },
message?: Message,
) => unknown
messageDeleteBulk: (bot: Bot, payload: { ids: bigint[]; channelId: bigint; guildId?: bigint; }) => unknown
messageUpdate: (
bot: Bot,
message: Message,
oldMessage?: Message,
) => unknown
reactionAdd: (bot: Bot, payload: { userId: bigint; channelId: bigint; messageId: bigint; guildId?: bigint; member?: Member; user?: User; emoji: Emoji; }) => unknown
reactionRemove: (bot: Bot, payload: { userId: bigint; channelId: bigint; messageId: bigint; guildId?: bigint; emoji: Emoji; }) => unknown
reactionRemoveEmoji: (bot: Bot, payload: { channelId: bigint; messageId: bigint; guildId?: bigint; emoji: Emoji; }) => unknown
reactionRemoveAll: (bot: Bot, payload: { channelId: bigint; messageId: bigint; guildId?: bigint; }) => unknown
presenceUpdate: (
bot: Bot,
presence: PresenceUpdate,
oldPresence?: PresenceUpdate,
) => unknown
voiceServerUpdate: (bot: Bot, payload: { token: string; endpoint?: string; guildId: bigint; }) => unknown
voiceStateUpdate: (bot: Bot, voiceState: VoiceState) => unknown
channelCreate: (bot: Bot, channel: Channel) => unknown
dispatchRequirements: (
bot: Bot,
shardId: number,
) => unknown
channelDelete: (bot: Bot, channel: Channel) => unknown
channelPinsUpdate: (bot: Bot, data: { guildId?: bigint; channelId: bigint; lastPinTimestamp?: number; }) => unknown
channelUpdate: (bot: Bot, channel: Channel) => 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
guildBanAdd: (
bot: Bot,
user: User,
guildId: bigint,
) => unknown
guildBanRemove: (
bot: Bot,
user: User,
guildId: bigint,
) => unknown
guildCreate: (bot: Bot, guild: Guild) => unknown
guildDelete: (
bot: Bot,
id: bigint,
shardId: number,
) => unknown
guildUpdate: (bot: Bot, guild: Guild) => unknown
raw: (
bot: Bot,
shardId: number,
) => unknown
roleCreate: (bot: Bot, role: Role) => unknown
roleDelete: (bot: Bot, payload: { guildId: bigint; roleId: bigint; }) => unknown
roleUpdate: (bot: Bot, role: Role) => unknown
webhooksUpdate: (bot: Bot, payload: { channelId: bigint; guildId: bigint; }) => unknown
botUpdate: (bot: Bot, user: User) => unknown
typingStart: (bot: Bot, payload: { guildId: bigint | undefined; channelId: bigint; userId: bigint; timestamp: number; member: Member | undefined; }) => unknown