blob: 51c93ddb07cb7045a42ce65e68b6d067cbe3f983 (
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
25
26
|
/* eslint-disable @typescript-eslint/no-explicit-any */
import { ApplicationCommandManager, GuildResolvable, Snowflake } from 'discord.js';
import { BushClient } from '../discord-akairo/BushClient';
import { BushApplicationCommand } from './BushApplicationCommand';
import { BushApplicationCommandPermissionsManager } from './BushApplicationCommandPermissionsManager';
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: BushApplicationCommandPermissionsManager<
{ command?: BushApplicationCommandResolvable } & PermissionsOptionsExtras,
{ command: BushApplicationCommandResolvable } & PermissionsOptionsExtras,
PermissionsOptionsExtras,
PermissionsGuildType,
null
>;
public constructor(client: BushClient, iterable?: Iterable<any>) {
super(client, iterable);
}
}
|