diff options
Diffstat (limited to 'src/lib/extensions/discord.js/BushCommandInteraction.ts')
-rw-r--r-- | src/lib/extensions/discord.js/BushCommandInteraction.ts | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/lib/extensions/discord.js/BushCommandInteraction.ts b/src/lib/extensions/discord.js/BushCommandInteraction.ts new file mode 100644 index 0000000..84c0707 --- /dev/null +++ b/src/lib/extensions/discord.js/BushCommandInteraction.ts @@ -0,0 +1,37 @@ +import { APIInteractionGuildMember } from 'discord-api-types/v8'; +import { + ApplicationCommand, + CommandInteraction, + DMChannel, + Invite, + NewsChannel, + PartialDMChannel, + Snowflake, + TextChannel +} from 'discord.js'; +import { BushClient } from '../discord-akairo/BushClient'; +import { BushApplicationCommand } from './BushApplicationCommand'; +import { BushGuild } from './BushGuild'; +import { BushGuildChannel } from './BushGuildChannel'; +import { BushGuildEmoji } from './BushGuildEmoji'; +import { BushGuildMember } from './BushGuildMember'; +import { BushRole } from './BushRole'; +import { BushUser } from './BushUser'; + +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; +} |