Skip to main content
Module

x/natico/mod.ts>EventHandlers

A powerful and customizable framework for Discordeno
Latest
interface EventHandlers
Re-export
import { type EventHandlers } from "https://deno.land/x/natico@4.0.0-pre.4/mod.ts";

Properties

debug: (text: string, ...args: any[]) => unknown
scheduledEventCreate: (bot: Bot, event: DiscordenoScheduledEvent) => unknown
scheduledEventUpdate: (bot: Bot, event: DiscordenoScheduledEvent) => unknown
scheduledEventDelete: (bot: Bot, event: DiscordenoScheduledEvent) => 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: DiscordenoUser; guilds: bigint[]; sessionId: string; shard?: number[]; applicationId: bigint; },
rawPayload: DiscordReady,
) => any
interactionCreate: (bot: Bot, interaction: DiscordenoInteraction) => any
integrationCreate: (bot: Bot, integration: DiscordenoIntegration) => any
integrationDelete: (bot: Bot, payload: { id: bigint; guildId: bigint; applicationId?: bigint; }) => any
integrationUpdate: (bot: Bot, payload: { guildId: bigint; }) => any
inviteCreate: (bot: Bot, invite: DiscordenoInvite) => any
inviteDelete: (bot: Bot, payload: { channelId: bigint; guildId?: bigint; code: string; }) => any
guildMemberAdd: (
bot: Bot,
) => any
guildMemberRemove: (
bot: Bot,
guildId: bigint,
) => any
guildMemberUpdate: (
bot: Bot,
) => any
messageCreate: (bot: Bot, message: DiscordenoMessage) => any
messageDelete: (
bot: Bot,
payload: { id: bigint; channelId: bigint; guildId?: bigint; },
) => any
messageUpdate: (
bot: Bot,
oldMessage?: DiscordenoMessage,
) => any
reactionAdd: (bot: Bot, payload: { userId: bigint; channelId: bigint; messageId: bigint; guildId?: bigint; member?: DiscordenoMember; emoji: DiscordenoEmoji; }) => any
reactionRemove: (bot: Bot, payload: { userId: bigint; channelId: bigint; messageId: bigint; guildId?: bigint; emoji: DiscordenoEmoji; }) => any
reactionRemoveEmoji: (bot: Bot, payload: { channelId: bigint; messageId: bigint; guildId?: bigint; emoji: DiscordenoEmoji; }) => any
reactionRemoveAll: (bot: Bot, payload: { channelId: bigint; messageId: bigint; guildId?: bigint; }) => any
presenceUpdate: (
bot: Bot,
oldPresence?: DiscordenoPresence,
) => any
voiceServerUpdate: (bot: Bot, payload: { token: string; endpoint?: string; guildId: bigint; }) => any
voiceStateUpdate: (bot: Bot, voiceState: { guildId?: bigint; channelId?: bigint; userId: bigint; member?: DiscordenoMember; user?: DiscordenoUser; sessionId: string; deaf: boolean; mute: boolean; selfDeaf: boolean; selfMute: boolean; selfStream?: boolean; selfVideo: boolean; suppress: boolean; requestToSpeakTimestamp?: number; }) => any
channelCreate: (bot: Bot, channel: DiscordenoChannel) => any
dispatchRequirements: (
bot: Bot,
shardId: number,
) => any
voiceChannelLeave: (
bot: Bot,
) => any
channelDelete: (bot: Bot, channel: DiscordenoChannel) => any
channelPinsUpdate: (bot: Bot, data: { guildId?: bigint; channelId: bigint; lastPinTimestamp?: number; }) => any
channelUpdate: (bot: Bot, channel: DiscordenoChannel) => any
stageInstanceCreate: (bot: Bot, data: { id: bigint; guildId: bigint; channelId: bigint; topic: string; privacyLevel: number; discoverableDisabled: boolean; }) => any
stageInstanceDelete: (bot: Bot, data: { id: bigint; guildId: bigint; channelId: bigint; topic: string; privacyLevel: number; discoverableDisabled: boolean; }) => any
stageInstanceUpdate: (bot: Bot, data: { id: bigint; guildId: bigint; channelId: bigint; topic: string; privacyLevel: number; discoverableDisabled: boolean; }) => any
guildEmojisUpdate: (bot: Bot, payload: { guildId: bigint; emojis: Collection<bigint, Emoji>; }) => any
guildBanAdd: (
bot: Bot,
guildId: bigint,
) => any
guildBanRemove: (
bot: Bot,
guildId: bigint,
) => any
guildLoaded: (bot: Bot, guild: DiscordenoGuild) => any
guildCreate: (bot: Bot, guild: DiscordenoGuild) => any
guildDelete: (
bot: Bot,
id: bigint,
shardId: number,
) => any
guildUpdate: (bot: Bot, guild: DiscordenoGuild) => any
raw: (
bot: Bot,
shardId: number,
) => any
roleCreate: (bot: Bot, role: DiscordenoRole) => any
roleDelete: (bot: Bot, payload: { guildId: bigint; roleId: bigint; }) => any
roleUpdate: (bot: Bot, role: DiscordenoRole) => any
webhooksUpdate: (bot: Bot, payload: { channelId: bigint; guildId: bigint; }) => any
botUpdate: (bot: Bot, user: DiscordenoUser) => any
typingStart: (bot: Bot, payload: { guildId: bigint | undefined; channelId: bigint; userId: bigint; timestamp: number; member: DiscordenoMember | undefined; }) => any