import { APIApplicationCommandPermission } from 'discord-api-types'; import { ApplicationCommand, ApplicationCommandManager, ApplicationCommandPermissionData, ApplicationCommandPermissions, BaseManager, Collection, GuildApplicationCommandManager, GuildApplicationCommandPermissionData, Snowflake } from 'discord.js'; import { ApplicationCommandPermissionTypes } from 'discord.js/typings/enums'; import { BushClient, BushRoleResolvable, BushUserResolvable } from '../discord-akairo/BushClient'; export class BushApplicationCommandPermissionsManager< BaseOptions, FetchSingleOptions, FullPermissionsOptions, GuildType, CommandIdType > extends BaseManager { public constructor(manager: ApplicationCommandManager | GuildApplicationCommandManager | ApplicationCommand); private manager: ApplicationCommandManager | GuildApplicationCommandManager | ApplicationCommand; public client: BushClient; public commandId: CommandIdType; public guild: GuildType; public guildId: Snowflake | null; public add( options: FetchSingleOptions & { permissions: ApplicationCommandPermissionData[] } ): Promise; public has(options: FetchSingleOptions & { permissionId: BushUserResolvable | BushRoleResolvable }): Promise; public fetch(options: FetchSingleOptions): Promise; public fetch(options: BaseOptions): Promise>; public remove( options: | (FetchSingleOptions & { users: BushUserResolvable | BushUserResolvable[]; roles?: BushRoleResolvable | BushRoleResolvable[]; }) | (FetchSingleOptions & { users?: BushUserResolvable | BushUserResolvable[]; roles: BushRoleResolvable | BushRoleResolvable[]; }) ): Promise; public set( options: FetchSingleOptions & { permissions: ApplicationCommandPermissionData[] } ): Promise; public set( options: FullPermissionsOptions & { fullPermissions: GuildApplicationCommandPermissionData[]; } ): Promise>; private permissionsPath(guildId: Snowflake, commandId?: Snowflake): unknown; private static transformPermissions( permissions: ApplicationCommandPermissionData, received: true ): Omit & { type: keyof ApplicationCommandPermissionTypes }; private static transformPermissions(permissions: ApplicationCommandPermissionData): APIApplicationCommandPermission; }