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
27
28
29
30
31
32
33
34
35
36
37
38
39
|
import { APIInteractionGuildMember } from 'discord-api-types/v8';
import {
ApplicationCommand,
CommandInteraction,
DMChannel,
Invite,
NewsChannel,
PartialDMChannel,
Snowflake,
TextChannel
} from 'discord.js';
import {
BushApplicationCommand,
BushClient,
BushGuild,
BushGuildChannel,
BushGuildEmoji,
BushGuildMember,
BushRole,
BushUser
} from '..';
export type BushGuildResolvable =
| BushGuild
| BushGuildChannel
| BushGuildMember
| BushGuildEmoji
| Invite
| BushRole
| Snowflake;
export class BushCommandInteraction extends CommandInteraction {
public declare readonly client: BushClient;
public declare readonly command: BushApplicationCommand | ApplicationCommand<{ guild: BushGuildResolvable }> | null;
public declare readonly channel: TextChannel | DMChannel | NewsChannel | PartialDMChannel | null;
public declare readonly guild: BushGuild | null;
public declare member: BushGuildMember | APIInteractionGuildMember | null;
public declare user: BushUser;
}
|