aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-01 17:03:48 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-01 17:03:48 -0500
commit342b01c7f51dbe8beef1d3deb37822080ed6097f (patch)
tree499b1f0ef1a8870e7abe61beba5fc1be9469e363 /src/commands/info
parentc24dfae07747c71e1c1806b12bf0f0bcd3dd60dd (diff)
downloadtanzanite-342b01c7f51dbe8beef1d3deb37822080ed6097f.tar.gz
tanzanite-342b01c7f51dbe8beef1d3deb37822080ed6097f.tar.bz2
tanzanite-342b01c7f51dbe8beef1d3deb37822080ed6097f.zip
a few things
Diffstat (limited to 'src/commands/info')
-rw-r--r--src/commands/info/botInfo.ts3
-rw-r--r--src/commands/info/color.ts2
-rw-r--r--src/commands/info/help.ts3
-rw-r--r--src/commands/info/links.ts2
4 files changed, 10 insertions, 0 deletions
diff --git a/src/commands/info/botInfo.ts b/src/commands/info/botInfo.ts
index 56885c5..3fc3d3f 100644
--- a/src/commands/info/botInfo.ts
+++ b/src/commands/info/botInfo.ts
@@ -1,7 +1,10 @@
import { BushCommand, type BushMessage, type BushSlashMessage } from '#lib';
+import assert from 'assert';
import { MessageEmbed, version as discordJSVersion } from 'discord.js';
import * as os from 'os';
const { default: prettyBytes } = await import('pretty-bytes');
+assert(prettyBytes);
+assert(os);
export default class BotInfoCommand extends BushCommand {
public constructor() {
diff --git a/src/commands/info/color.ts b/src/commands/info/color.ts
index 2b8ba9c..5b2c818 100644
--- a/src/commands/info/color.ts
+++ b/src/commands/info/color.ts
@@ -8,8 +8,10 @@ import {
type BushRole,
type BushSlashMessage
} from '#lib';
+import assert from 'assert';
import { MessageEmbed, Role } from 'discord.js';
import tinycolor from 'tinycolor2';
+assert(tinycolor);
const isValidTinyColor: BushArgumentTypeCaster<string | null> = (_message, phase) => {
// if the phase is a number it converts it to hex incase it could be representing a color in decimal
diff --git a/src/commands/info/help.ts b/src/commands/info/help.ts
index c4abf78..1ac7b3e 100644
--- a/src/commands/info/help.ts
+++ b/src/commands/info/help.ts
@@ -1,7 +1,10 @@
import { BushCommand, type ArgType, type BushMessage, type BushSlashMessage } from '#lib';
+import assert from 'assert';
import { AutocompleteInteraction, MessageActionRow, MessageButton, MessageEmbed } from 'discord.js';
import Fuse from 'fuse.js';
import packageDotJSON from '../../../package.json' assert { type: 'json' };
+assert(Fuse);
+assert(packageDotJSON);
export default class HelpCommand extends BushCommand {
public constructor() {
diff --git a/src/commands/info/links.ts b/src/commands/info/links.ts
index 79f1041..b0d2007 100644
--- a/src/commands/info/links.ts
+++ b/src/commands/info/links.ts
@@ -1,6 +1,8 @@
import { BushCommand, type BushMessage, type BushSlashMessage } from '#lib';
+import { assert } from 'console';
import { MessageActionRow, MessageButton } from 'discord.js';
import packageDotJSON from '../../../package.json' assert { type: 'json' };
+assert(packageDotJSON);
export default class LinksCommand extends BushCommand {
public constructor() {