aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/commands/info/botInfo.ts3
-rw-r--r--src/commands/info/help.ts4
-rw-r--r--src/lib/extensions/global.d.ts16
3 files changed, 8 insertions, 15 deletions
diff --git a/src/commands/info/botInfo.ts b/src/commands/info/botInfo.ts
index 30bfeb4..8f85fe6 100644
--- a/src/commands/info/botInfo.ts
+++ b/src/commands/info/botInfo.ts
@@ -30,7 +30,8 @@ export default class BotInfoCommand extends BushCommand {
sunos = 'SunOS',
win32 = 'Windows',
cygwin = 'Cygwin',
- netbsd = 'NetBSD'
+ netbsd = 'NetBSD',
+ haiku = 'Haiku'
}
const developers = (await util.mapIDs(client.config.owners)).map((u) => u?.tag).join('\n');
diff --git a/src/commands/info/help.ts b/src/commands/info/help.ts
index 8c97ba8..ce171c9 100644
--- a/src/commands/info/help.ts
+++ b/src/commands/info/help.ts
@@ -91,9 +91,7 @@ export default class HelpCommand extends BushCommand {
if (!isOwner) args.showHidden = false;
if (!command || command.pseudo) {
const embed = new MessageEmbed().setColor(util.colors.default).setTimestamp();
- if (message.guild) {
- embed.setFooter(`For more information about a command use ${prefix}help <command>`);
- }
+ embed.setFooter(`For more information about a command use ${prefix}help <command>`);
for (const [, category] of this.handler.categories) {
const categoryFilter = category.filter((command) => {
if (command.pseudo) return false;
diff --git a/src/lib/extensions/global.d.ts b/src/lib/extensions/global.d.ts
index 10869d0..6fd9d58 100644
--- a/src/lib/extensions/global.d.ts
+++ b/src/lib/extensions/global.d.ts
@@ -1,16 +1,10 @@
+/* eslint-disable no-var */
import { parse, stringify } from 'json5';
import { BushClient } from './discord-akairo/BushClient';
import { BushClientUtil } from './discord-akairo/BushClientUtil';
+type JSON5 = { parse: typeof parse; stringify: typeof stringify };
declare global {
- type JSON5 = { parse: typeof parse; stringify: typeof stringify };
- namespace NodeJS {
- export interface Global {
- client: BushClient;
- util: BushClientUtil;
- JSON5: JSON5;
- }
- }
- const client: BushClient;
- const util: BushClientUtil;
- const JSON5: JSON5;
+ var client: BushClient;
+ var util: BushClientUtil;
+ var JSON5: JSON5;
}