blob: fb3375a1d0b72709cb17e38e4a6e28f74674b4f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* eslint-disable @typescript-eslint/no-explicit-any */
import { ApplicationCommandManager, ApplicationCommandPermissionsManager, GuildResolvable, Snowflake } from 'discord.js';
import { BushClient } from '../discord-akairo/BushClient';
import { BushApplicationCommand } from './BushApplicationCommand';
import { BushGuildResolvable } from './BushCommandInteraction';
export type BushApplicationCommandResolvable = BushApplicationCommand | Snowflake;
export class BushApplicationCommandManager<
ApplicationCommandType = BushApplicationCommand<{ guild: BushGuildResolvable }>,
PermissionsOptionsExtras = { guild: GuildResolvable },
PermissionsGuildType = null
> extends ApplicationCommandManager<ApplicationCommandType, PermissionsOptionsExtras, PermissionsGuildType> {
public permissions: ApplicationCommandPermissionsManager<
{ command?: BushApplicationCommandResolvable } & PermissionsOptionsExtras,
{ command: BushApplicationCommandResolvable } & PermissionsOptionsExtras,
PermissionsGuildType,
null
>;
public constructor(client: BushClient, iterable?: Iterable<any>) {
super(client, iterable);
}
}
|