import { APIApplicationCommand, APIApplicationCommandBasicOption, APIApplicationCommandSubcommandGroupOption, APIApplicationCommandSubcommandOption, ApplicationCommandType, LocalizationMap, RESTPostAPIApplicationCommandsJSONBody, RESTPostAPIChatInputApplicationCommandsJSONBody } from "discord-api-types/v10"; import { Bitfield } from "./permissions/Bitfield.js"; /** * @hidden */ export declare type CommandDataBase = Omit; /** * @hidden */ export declare abstract class CommandBuilderBase { /** * The name of this context menu command */ name: string; /** * The localized names for this command */ name_localizations: LocalizationMap; /** * The type of this context menu command */ abstract type: ApplicationCommandType; /** * Whether the command is visible in DMs - Only available for global commands and defaults to true. */ dm_permission?: boolean; /** * Default member permissions required to use the command */ default_member_permissions: Bitfield; constructor(data: Data | string); /** * Set the name */ setName(name: string): this; /** * Set a dictionary of localized names */ setNameLocalizations(localizations: LocalizationMap): this; /** * Set a single locale's name */ setLocalizedName(locale: keyof LocalizationMap, name: string): this; /** * Set whether this command will be visible in DMs - Only applicable to Global commands. */ setDMEnabled(value: boolean): this; setRequiredPermissions(permissions: Bitfield): this; addRequiredPermissions(...permissions: bigint[]): this; removeRequiredPermissions(...permissions: bigint[]): this; clearRequiredPermissions(): this; disallowAllPermissions(): this; equals(remote: APIApplicationCommand): boolean; /** * Returns the final data that should be sent to Discord. */ abstract toJSON(): Data; } export interface ToAPIApplicationCommandOptions { toJSON: () => OptionType; } export declare abstract class ChatInputCommandBuilderBase extends CommandBuilderBase { type: ApplicationCommandType.ChatInput; description: string; description_localizations: LocalizationMap; options: ToAPIApplicationCommandOptions[]; constructor(name: RESTPostAPIChatInputApplicationCommandsJSONBody | string, description?: string); /** * Set the description * * @param description The description */ setDescription(description: string): this; /** * Set a dictionary of localized descriptions */ setDescriptionLocalizations(localizations: LocalizationMap): this; /** * Set a single locale's description */ setLocalizedDescription(locale: keyof LocalizationMap, description: string): this; equals(remote: APIApplicationCommand & { type: ApplicationCommandType.ChatInput; }): boolean; }