Bot

Types

Types

MessageHandler

Message handler function

type MessageHandler = (message: InboundMessage) => Promise<OutboundMessage | null>

CommandLane

Known lane names for type safety

type CommandLane = string

SessionEntryType

Session persistence types

type SessionEntryType = "user" | "assistant" | "tool_call" | "tool_result" | "system" | "compaction"

SessionEntry

type SessionEntry = UserEntry | AssistantEntry | ToolCallEntry | ToolResultEntry | SystemEntry | CompactionEntry

LogLevel

type LogLevel = "debug" | "info" | "warn" | "error"

DiscordIntent

type DiscordIntent = "Guilds" | "GuildMembers" | "GuildModeration" | "GuildEmojisAndStickers" | "GuildIntegrations" | "GuildWebhooks" | "GuildInvites" | "GuildVoiceStates" | "GuildPresences" | "GuildMessages" | "GuildMessageReactions" | "GuildMessageTyping" | "DirectMessages" | "DirectMessageReactions" | "DirectMessageTyping" | "MessageContent" | "GuildScheduledEvents" | "AutoModerationConfiguration" | "AutoModerationExecution"

DiscordEventType

type DiscordEventType = "error" | "ready" | "messageCreate" | "messageUpdate" | "messageDelete" | "messageReactionAdd" | "messageReactionRemove" | "guildMemberAdd" | "guildMemberRemove" | "guildMemberUpdate" | "guildCreate" | "guildDelete" | "channelCreate" | "channelDelete" | "channelUpdate" | "roleCreate" | "roleDelete" | "roleUpdate" | "interactionCreate" | "voiceStateUpdate"
Previous
Interfaces