aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushChatInputCommandInteraction.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-25 23:20:58 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-25 23:20:58 -0500
commit7057cebb3c37634cfa1468e1f49ce30a890681b6 (patch)
tree0a2ab2c335db439747134a07cbe7982d76f5d0f4 /src/lib/extensions/discord.js/BushChatInputCommandInteraction.ts
parent866cd2c23eaa3918d01806556ea71f6c7b378ca7 (diff)
downloadtanzanite-7057cebb3c37634cfa1468e1f49ce30a890681b6.tar.gz
tanzanite-7057cebb3c37634cfa1468e1f49ce30a890681b6.tar.bz2
tanzanite-7057cebb3c37634cfa1468e1f49ce30a890681b6.zip
chore: update dependencies and fix breaking changes
Diffstat (limited to 'src/lib/extensions/discord.js/BushChatInputCommandInteraction.ts')
-rw-r--r--src/lib/extensions/discord.js/BushChatInputCommandInteraction.ts23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/lib/extensions/discord.js/BushChatInputCommandInteraction.ts b/src/lib/extensions/discord.js/BushChatInputCommandInteraction.ts
index 4d68f79..5dbf7b9 100644
--- a/src/lib/extensions/discord.js/BushChatInputCommandInteraction.ts
+++ b/src/lib/extensions/discord.js/BushChatInputCommandInteraction.ts
@@ -10,7 +10,7 @@ import type {
BushTextBasedChannel,
BushUser
} from '#lib';
-import type { APIInteractionGuildMember } from 'discord-api-types';
+import type { APIInteractionGuildMember } from 'discord-api-types/v9';
import { ChatInputCommandInteraction, type CacheType, type CacheTypeReducer, type Invite, type Snowflake } from 'discord.js';
import type { RawCommandInteractionData } from 'discord.js/typings/rawDataTypes';
@@ -28,15 +28,6 @@ export type BushGuildResolvable =
*/
export class BushChatInputCommandInteraction<Cached extends CacheType = CacheType> extends ChatInputCommandInteraction<Cached> {
public declare readonly client: BushClient;
- public declare readonly command: BushApplicationCommand | BushApplicationCommand<{ guild: BushGuildResolvable }> | null;
- public declare readonly channel: CacheTypeReducer<
- Cached,
- BushGuildTextBasedChannel | null,
- BushGuildTextBasedChannel | null,
- BushGuildTextBasedChannel | null,
- BushTextBasedChannel | null
- >;
- public declare readonly guild: CacheTypeReducer<Cached, BushGuild, null>;
public declare member: CacheTypeReducer<Cached, BushGuildMember, APIInteractionGuildMember>;
public declare user: BushUser;
@@ -44,3 +35,15 @@ export class BushChatInputCommandInteraction<Cached extends CacheType = CacheTyp
super(client, data);
}
}
+
+export interface BushChatInputCommandInteraction<Cached extends CacheType = CacheType> {
+ get command(): BushApplicationCommand | BushApplicationCommand<{ guild: BushGuildResolvable }> | null;
+ get channel(): CacheTypeReducer<
+ Cached,
+ BushGuildTextBasedChannel | null,
+ BushGuildTextBasedChannel | null,
+ BushGuildTextBasedChannel | null,
+ BushTextBasedChannel | null
+ >;
+ get guild(): CacheTypeReducer<Cached, BushGuild, null>;
+}