import { APIEmbed, ObjectToLower, APIEmbedAuthor, TypeArray, APIEmbedField, APIEmbedFooter, PermissionFlagsBits, APIBaseComponent, ComponentType, APIActionRowComponent, APIMessageActionRowComponent, ButtonStyle, APIButtonComponentBase, When, APIMessageComponentEmoji, APIUserSelectComponent, APIRoleSelectComponent, APIMentionableSelectComponent, APIChannelSelectComponent, ChannelType, APIStringSelectComponent, APISelectMenuOption, APISelectMenuComponent, APITextInputComponent, TextInputStyle, APIModalActionRowComponent, ApplicationCommandType, LocalizationMap, RESTPostAPIContextMenuApplicationCommandsJSONBody, APIApplicationCommandOption, APIApplicationCommandStringOption as APIApplicationCommandStringOption$1, APIApplicationCommandNumberOption as APIApplicationCommandNumberOption$1, APIApplicationCommandIntegerOption as APIApplicationCommandIntegerOption$1, APIApplicationCommandSubcommandOption as APIApplicationCommandSubcommandOption$1, APIApplicationCommandAttachmentOption, APIApplicationCommandChannelOption, APIApplicationCommandMentionableOption, APIApplicationCommandRoleOption, APIApplicationCommandBooleanOption, APIApplicationCommandUserOption, RestToKeys, APIApplicationCommandSubcommandGroupOption as APIApplicationCommandSubcommandGroupOption$1, APIApplicationCommandOptionBase, ApplicationCommandOptionType, APIApplicationCommandOptionChoice, RESTPostAPIChatInputApplicationCommandsJSONBody } from '@biscuitland/common'; import * as ts_mixer_dist_types_types from 'ts-mixer/dist/types/types'; declare class MessageEmbed { data: Partial; constructor(data?: Partial); setAuthor(author: ObjectToLower): this; setColor(color: number): this; setDescription(desc: string): this; addFields(field: TypeArray): this; setFields(fields: APIEmbedField[]): this; setFooter(footer: ObjectToLower): this; setImage(url: string): this; setTimestamp(time?: string | number | Date): this; setTitle(title: string): this; setURL(url: string): this; toJSON(): APIEmbed; } type PermissionsStrings = keyof typeof PermissionFlagsBits; type PermissionResolvable = bigint | PermissionsStrings | PermissionsStrings[] | PermissionsStrings | PermissionsStrings[]; declare class Permissions { /** Stores a reference to BitwisePermissionFlags */ static Flags: { readonly CreateInstantInvite: bigint; readonly KickMembers: bigint; readonly BanMembers: bigint; readonly Administrator: bigint; readonly ManageChannels: bigint; readonly ManageGuild: bigint; readonly AddReactions: bigint; readonly ViewAuditLog: bigint; readonly PrioritySpeaker: bigint; readonly Stream: bigint; readonly ViewChannel: bigint; readonly SendMessages: bigint; readonly SendTTSMessages: bigint; readonly ManageMessages: bigint; readonly EmbedLinks: bigint; readonly AttachFiles: bigint; readonly ReadMessageHistory: bigint; readonly MentionEveryone: bigint; readonly UseExternalEmojis: bigint; readonly ViewGuildInsights: bigint; readonly Connect: bigint; readonly Speak: bigint; readonly MuteMembers: bigint; readonly DeafenMembers: bigint; readonly MoveMembers: bigint; readonly UseVAD: bigint; readonly ChangeNickname: bigint; readonly ManageNicknames: bigint; readonly ManageRoles: bigint; readonly ManageWebhooks: bigint; readonly ManageEmojisAndStickers: bigint; readonly ManageGuildExpressions: bigint; readonly UseApplicationCommands: bigint; readonly RequestToSpeak: bigint; readonly ManageEvents: bigint; readonly ManageThreads: bigint; readonly CreatePublicThreads: bigint; readonly CreatePrivateThreads: bigint; readonly UseExternalStickers: bigint; readonly SendMessagesInThreads: bigint; readonly UseEmbeddedActivities: bigint; readonly ModerateMembers: bigint; readonly ViewCreatorMonetizationAnalytics: bigint; readonly UseSoundboard: bigint; readonly CreateGuildExpressions: bigint; readonly CreateEvents: bigint; readonly UseExternalSounds: bigint; readonly SendVoiceMessages: bigint; }; /** Falsy; Stores the lack of permissions*/ static None: bigint; /** Stores all entity permissions */ bitfield: bigint; /** * Wheter to grant all other permissions to the administrator * **Not to get confused with Permissions#admin** */ __admin__: boolean; constructor(bitfield: PermissionResolvable); /** Wheter the bitfield has the administrator flag */ get admin(): boolean; get array(): PermissionsStrings[]; add(...bits: PermissionResolvable[]): this; remove(...bits: PermissionResolvable[]): this; has(bit: PermissionResolvable): boolean; any(bit: PermissionResolvable): boolean; equals(bit: PermissionResolvable): boolean; /** Gets all permissions */ static get All(): bigint; static resolve(bit: PermissionResolvable): bigint; static sum(permissions: (bigint | number)[]): number | bigint; static reduce(permissions: PermissionResolvable[]): Permissions; [Symbol.iterator](): Generator<"CreateInstantInvite" | "KickMembers" | "BanMembers" | "Administrator" | "ManageChannels" | "ManageGuild" | "AddReactions" | "ViewAuditLog" | "PrioritySpeaker" | "Stream" | "ViewChannel" | "SendMessages" | "SendTTSMessages" | "ManageMessages" | "EmbedLinks" | "AttachFiles" | "ReadMessageHistory" | "MentionEveryone" | "UseExternalEmojis" | "ViewGuildInsights" | "Connect" | "Speak" | "MuteMembers" | "DeafenMembers" | "MoveMembers" | "UseVAD" | "ChangeNickname" | "ManageNicknames" | "ManageRoles" | "ManageWebhooks" | "ManageEmojisAndStickers" | "ManageGuildExpressions" | "UseApplicationCommands" | "RequestToSpeak" | "ManageEvents" | "ManageThreads" | "CreatePublicThreads" | "CreatePrivateThreads" | "UseExternalStickers" | "SendMessagesInThreads" | "UseEmbeddedActivities" | "ModerateMembers" | "ViewCreatorMonetizationAnalytics" | "UseSoundboard" | "CreateGuildExpressions" | "CreateEvents" | "UseExternalSounds" | "SendVoiceMessages", void, undefined>; valueOf(): bigint; toJSON(): { fields: string[]; }; } declare abstract class BaseComponent> = APIBaseComponent> { data: Partial; constructor(data: Partial); toJSON(): TYPE; } declare class MessageActionRow extends BaseComponent> { constructor({ components, ...data }?: Partial>); components: T[]; addComponents(component: TypeArray): this; setComponents(component: T[]): this; toJSON(): APIActionRowComponent; } type ButtonStylesForID = Exclude; interface APIButtonComponent extends APIButtonComponentBase> { url: When; custom_id: When; } declare class MessageButton extends BaseComponent> { constructor(data?: Partial>); setLabel(label: string): this; setEmoji(emoji: APIMessageComponentEmoji): this; setDisabled(disabled?: boolean): this; setURL(url: string): MessageButton; setStyle(style: When): this; setCustomId(id: string): MessageButton; } declare class SelectMenu { setCustomId(id: string): this; setPlaceholder(placeholder: string): this; setValuesLength({ max, min }: Partial): this; setDisabled(disabled?: boolean): this; } declare class UserSelectMenu extends SelectMenu { constructor(data?: Partial); } declare class RoleSelectMenu extends SelectMenu { constructor(data?: Partial); } declare class MentionableSelectMenu extends SelectMenu { constructor(data?: Partial); } declare class ChannelSelectMenu extends SelectMenu { constructor(data?: Partial); setChannelTypes(types: ChannelType[]): this; } declare class StringSelectMenu extends SelectMenu { constructor(data?: Partial); addOption(option: TypeArray): this; setOptions(options: APISelectMenuOption[]): this; } declare class StringSelectOption { data: Partial; constructor(data?: Partial); setLabel(label: string): this; setValue(value: string): this; setDescription(description: string): this; setDefault(Default?: boolean): this; setEmoji(emoji: APIMessageComponentEmoji): this; toJSON(): APISelectMenuOption; } declare class ModalTextInput extends BaseComponent { constructor(data?: Partial); setStyle(style: TextInputStyle): this; setLabel(label: string): this; setPlaceholder(placeholder: string): this; setLength({ max, min }: Partial): this; setCustomId(id: string): this; setValue(value: string): this; setRequired(required?: boolean): this; } declare function createComponent(data: APIMessageActionRowComponent): HelperComponents; declare function createComponent(data: APIModalActionRowComponent): HelperComponents; declare function createComponent(data: HelperComponents): HelperComponents; type OptionValuesLength = { max: number; min: number; }; type MessageSelectMenus = RoleSelectMenu | UserSelectMenu | StringSelectMenu | ChannelSelectMenu | MentionableSelectMenu; type MessageComponents = MessageButton | MessageSelectMenus; type HelperComponents = MessageComponents | ModalTextInput; type ContextCommandType = ApplicationCommandType.Message | ApplicationCommandType.User; declare class ContextCommand { name: string; name_localizations?: LocalizationMap; type: ContextCommandType; default_permission: boolean | undefined; default_member_permissions: string | undefined; dm_permission: boolean | undefined; setName(name: string): this; setType(type: ContextCommandType): this; addNameLocalizations(locals: LocalizationMap): this; setDMPermission(value?: boolean): this; setDefautlMemberPermissions(permissions: PermissionResolvable[]): this; toJSON(): RESTPostAPIContextMenuApplicationCommandsJSONBody; } type SlashBaseOptionTypes = Exclude | APIApplicationCommandStringOption | APIApplicationCommandNumberOption | APIApplicationCommandIntegerOption | APIApplicationCommandSubcommandOption; type ApplicationCommandBasicOptions = APIApplicationCommandAttachmentOption | APIApplicationCommandChannelOption | APIApplicationCommandIntegerOption | APIApplicationCommandMentionableOption | APIApplicationCommandNumberOption | APIApplicationCommandStringOption | APIApplicationCommandRoleOption | APIApplicationCommandBooleanOption | APIApplicationCommandUserOption; declare abstract class SlashBaseOption { data: Partial; constructor(data?: Partial); setName(name: string): this; setDesciption(desc: string): this; addLocalizations(locals: RestToKeys<[LocalizationMap, 'name', 'description']>): this; toJSON(): DataType; } type SlashRequiredOptionTypes = Exclude; declare class SlashRequiredOption extends SlashBaseOption { setRequired(required?: boolean): this; } /** * Temporal fix type * I didn't find the correct way to set this with discord-api-types * Author: socram03 */ interface APIApplicationCommandStringOption extends APIApplicationCommandOptionBase { /** * For option type `STRING`, the minimum allowed length (minimum of `0`, maximum of `6000`). */ min_length?: number; /** * For option type `STRING`, the maximum allowed length (minimum of `1`, maximum of `6000`). */ max_length?: number; autocomplete: When; choices: When[], never>; } declare class SlashStringOption extends SlashRequiredOption> { constructor(data?: Partial>); addChoices(choices: TypeArray>): SlashStringOption; setAutocomplete(auto?: boolean): SlashStringOption; setLength({ min, max }: OptionValuesLength): this; } /** * Temporal fix type * I didn't find the correct way to set this with discord-api-types * Author: socram03 */ interface APIApplicationCommandNumberOption extends APIApplicationCommandOptionBase { /** * If the option is an `INTEGER` or `NUMBER` type, the minimum value permitted. */ min_value?: number; /** * If the option is an `INTEGER` or `NUMBER` type, the maximum value permitted. */ max_value?: number; autocomplete: When; choices: When[], never>; } declare class SlashNumberOption extends SlashRequiredOption> { constructor(data?: Partial>); addChoices(choices: TypeArray>): SlashNumberOption; setValueRange({ min, max }: OptionValuesLength): this; setAutocomplete(auto?: boolean): SlashNumberOption; } /** * Temporal fix type * I didn't find the correct way to set this with discord-api-types * Author: socram03 */ interface APIApplicationCommandIntegerOption extends APIApplicationCommandOptionBase { /** * If the option is an `INTEGER` or `NUMBER` type, the minimum value permitted. */ min_value?: number; /** * If the option is an `INTEGER` or `NUMBER` type, the maximum value permitted. */ max_value?: number; autocomplete: When; choices: When[], never>; } declare class SlashIntegerOption extends SlashRequiredOption> { constructor(data?: Partial>); } declare class SlashUserOption extends SlashRequiredOption { constructor(data?: Partial); } type SlashChannelOptionChannelTypes = Exclude; declare class SlashChannelOption extends SlashRequiredOption { constructor(data?: Partial); setChannelTypes(types: SlashChannelOptionChannelTypes[]): this; } declare class SlashRoleOption extends SlashRequiredOption { constructor(data?: Partial); } declare class SlashMentionableOption extends SlashRequiredOption { constructor(data?: Partial); } declare class SlashAttachmentOption extends SlashRequiredOption { constructor(data?: Partial); } declare class SlashBooleanOption extends SlashRequiredOption { constructor(data?: Partial); } type BasicSlashOptions = SlashStringOption | SlashAttachmentOption | SlashChannelOption | SlashIntegerOption | SlashNumberOption | SlashRoleOption | SlashMentionableOption | SlashUserOption | SlashBooleanOption; type APIApplicationCommandSubcommandOption = APIApplicationCommandSubcommandOption$1 & { options?: ApplicationCommandBasicOptions[]; }; declare class SlashSubcommandOption extends SlashBaseOption { constructor(data?: Partial); addStringOption(fn: (option: SlashStringOption) => SlashStringOption): this; addNumberOption(fn: (option: SlashNumberOption) => SlashNumberOption): this; addIntegerOption(fn: (option: SlashIntegerOption) => SlashIntegerOption): this; addChannelOption(fn: (option: SlashChannelOption) => SlashChannelOption): this; addUserOption(fn: (option: SlashUserOption) => SlashUserOption): this; addRoleOption(fn: (option: SlashRoleOption) => SlashRoleOption): this; addMentionableOption(fn: (option: SlashMentionableOption) => SlashMentionableOption): this; addAttachmentOption(fn: (option: SlashAttachmentOption) => SlashAttachmentOption): this; addBooleanOption(fn: (option: SlashBooleanOption) => SlashBooleanOption): this; addRawOption(option: ApplicationCommandBasicOptions): void; } type APIApplicationCommandSubcommandGroupOption = APIApplicationCommandSubcommandGroupOption$1 & { options?: APIApplicationCommandSubcommandOption[]; }; type AllSlashOptions = BasicSlashOptions | SlashSubcommandGroupOption | SlashSubcommandOption; declare class SlashSubcommandGroupOption extends SlashBaseOption { constructor(data?: Partial); addSubCommand(fn: (option: SlashSubcommandOption) => SlashSubcommandOption): this; addRawOption(option: ReturnType): void; } declare class SlashCommandB { data: Partial; constructor(data?: Partial); setDMPermission(value?: boolean): this; setNSFW(value?: boolean): this; setDefautlMemberPermissions(permissions: PermissionResolvable[]): this; addSubcommandGroup(fn: (option: SlashSubcommandGroupOption) => SlashSubcommandGroupOption): this; addSubcommand(fn: (option: SlashSubcommandOption) => SlashSubcommandOption): this; addRawOption(option: ReturnType): void; toJSON(): RESTPostAPIChatInputApplicationCommandsJSONBody; } declare const SlashCommand: ts_mixer_dist_types_types.Class; type SlashCommand = InstanceType; export { APIApplicationCommandStringOption, APIApplicationCommandSubcommandGroupOption, APIApplicationCommandSubcommandOption, APIButtonComponent, AllSlashOptions, ApplicationCommandBasicOptions, BaseComponent, BasicSlashOptions, ButtonStylesForID, ChannelSelectMenu, ContextCommand, ContextCommandType, HelperComponents, MentionableSelectMenu, MessageActionRow, MessageButton, MessageComponents, MessageEmbed, MessageSelectMenus, ModalTextInput, OptionValuesLength, PermissionResolvable, Permissions, PermissionsStrings, RoleSelectMenu, SlashAttachmentOption, SlashBaseOption, SlashBaseOptionTypes, SlashBooleanOption, SlashChannelOption, SlashChannelOptionChannelTypes, SlashCommand, SlashIntegerOption, SlashMentionableOption, SlashNumberOption, SlashRequiredOption, SlashRequiredOptionTypes, SlashRoleOption, SlashStringOption, SlashSubcommandGroupOption, SlashSubcommandOption, SlashUserOption, StringSelectMenu, StringSelectOption, UserSelectMenu, createComponent };