aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord-akairo
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-29 16:15:06 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-29 16:15:06 -0500
commit08d7e6eb125c5ff6846c3a92491de79d291b8e12 (patch)
tree4abdaeee3ad258ef8fa0d7b517ea49d262d18b0b /src/lib/extensions/discord-akairo
parentf9cf43fc47be2d497d92d728ea892246df96d736 (diff)
downloadtanzanite-08d7e6eb125c5ff6846c3a92491de79d291b8e12.tar.gz
tanzanite-08d7e6eb125c5ff6846c3a92491de79d291b8e12.tar.bz2
tanzanite-08d7e6eb125c5ff6846c3a92491de79d291b8e12.zip
misc improvements & typings changes
Diffstat (limited to 'src/lib/extensions/discord-akairo')
-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 };
}