aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/extensions')
-rw-r--r--src/lib/extensions/discord-akairo/BushClientUtil.ts11
-rw-r--r--src/lib/extensions/discord-akairo/BushSlashMessage.ts7
2 files changed, 2 insertions, 16 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClientUtil.ts b/src/lib/extensions/discord-akairo/BushClientUtil.ts
index f44c80d..f20a53e 100644
--- a/src/lib/extensions/discord-akairo/BushClientUtil.ts
+++ b/src/lib/extensions/discord-akairo/BushClientUtil.ts
@@ -6,13 +6,10 @@ import {
type BushClient,
type BushInspectOptions,
type BushMessage,
- type BushNewsChannel,
type BushSlashEditMessageType,
type BushSlashMessage,
type BushSlashSendMessageType,
- type BushTextChannel,
type BushUser,
- type BushUserResolvable,
type CodeBlockLang,
type Pronoun,
type PronounCode
@@ -42,7 +39,7 @@ import got from 'got';
import _ from 'lodash';
import { inspect, promisify } from 'util';
import CommandErrorListener from '../../../listeners/commands/commandError.js';
-import { Format } from '../../common/Format.js';
+import { Format } from '../../common/util/Format.js';
export class BushClientUtil extends ClientUtil {
/**
@@ -599,12 +596,6 @@ export class BushClientUtil extends ClientUtil {
return `${arrByte[1]}, ${arrByte[2]}, ${arrByte[3]}`;
}
- /* eslint-disable @typescript-eslint/no-unused-vars */
- public async lockdownChannel(options: { channel: BushTextChannel | BushNewsChannel; moderator: BushUserResolvable }) {
- // todo: implement lockdowns
- }
- /* eslint-enable @typescript-eslint/no-unused-vars */
-
/**
* Capitalize the first letter of a string.
* @param string The string to capitalize the first letter of.
diff --git a/src/lib/extensions/discord-akairo/BushSlashMessage.ts b/src/lib/extensions/discord-akairo/BushSlashMessage.ts
index 3cd167d..cefd360 100644
--- a/src/lib/extensions/discord-akairo/BushSlashMessage.ts
+++ b/src/lib/extensions/discord-akairo/BushSlashMessage.ts
@@ -20,12 +20,7 @@ export class BushSlashMessage extends AkairoMessage {
}
export interface BushSlashMessage extends AkairoMessage {
- /**
- * The channel that the interaction was sent in.
- */
get channel(): BushTextBasedChannel | null;
-}
-
-export interface BushSlashMessage extends AkairoMessage {
get guild(): BushGuild | null;
+ inGuild(): this is this & { guild: BushGuild; member: BushGuildMember };
}