This package works with Node.js, BunIt is unknown whether this package works with Cloudflare Workers, Deno
JSR Score
58%
Published
6 months ago (0.1.0)
export interface PageTweak { name: string; runAt: 'document-start' | 'document-end' | 'document-idle' | 'runtime'; once: boolean; } export interface Application { id: string; name: string; description: string; icon: string; interactions_endpoint_url: string; commands: Command[]; tweaks: PageTweak[]; } export const enum CommandType { CHAT_INPUT = 1, USER = 2, MESSAGE = 3, PAGE_FUNCTION = 4, } export interface Command { name: string; description: string; type: CommandType; options?: CommandOption[]; } export const enum CommandOptionType { SUB_COMMAND = 1, SUB_COMMAND_GROUP = 2, STRING = 3, INTEGER = 4, BOOLEAN = 5, USER = 6, CHANNEL = 7, ROLE = 8, } export interface CommandOption { name: string; type: CommandOptionType; description: string; required?: boolean; options?: CommandOption[]; }