Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/maybeanerd/MagiBot. MagiBot - the community building discord bot that adds joinsounds to your voice discord.gg/2Evcf4T
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132import { SlashCommandBuilder, SlashCommandSubcommandsOnlyBuilder,} from '@discordjs/builders';import { RESTPostAPIApplicationCommandsJSONBody } from 'discord-api-types/v10';import Discord from 'discord.js';
type MagibotSlashCommandBase = { permissions: Discord.PermissionResolvable[]; run: ( interaction: Discord.ChatInputCommandInteraction ) => Promise<void | null> | void | null; // allow null to allow for "empty" returns};
// eslint-disable-next-line no-shadowexport const enum DeferReply { public = 0x1000, ephemeral = 0x2000,}
export type MagibotSlashCommand = MagibotSlashCommandBase & { definition: RESTPostAPIApplicationCommandsJSONBody; // if true, interactions are deferred: can't use .reply anymore; need to use .followUp instead defer?: DeferReply;};
export type MagibotAdminSlashCommand = MagibotSlashCommandBase & { registerSlashCommand: ( builder: SlashCommandBuilder ) => SlashCommandSubcommandsOnlyBuilder;};