From 08d7e6eb125c5ff6846c3a92491de79d291b8e12 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Wed, 29 Dec 2021 16:15:06 -0500 Subject: misc improvements & typings changes --- src/lib/extensions/discord-akairo/BushClientUtil.ts | 11 +---------- src/lib/extensions/discord-akairo/BushSlashMessage.ts | 7 +------ 2 files changed, 2 insertions(+), 16 deletions(-) (limited to 'src/lib/extensions/discord-akairo') 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 }; } -- cgit