aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dev
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-31 22:38:06 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-31 22:38:06 -0400
commitc40a94697d64962edda41345e03fa76f51aa431c (patch)
tree1e258d51d6b19b9918f1d478b3f4c51dca3adc93 /src/commands/dev
parent901d9dfc8c5d95b8c76519e700c624294d4df787 (diff)
downloadtanzanite-c40a94697d64962edda41345e03fa76f51aa431c.tar.gz
tanzanite-c40a94697d64962edda41345e03fa76f51aa431c.tar.bz2
tanzanite-c40a94697d64962edda41345e03fa76f51aa431c.zip
upgrade typescript, improve workflow, bunch of bug fixes and some other things
Diffstat (limited to 'src/commands/dev')
-rw-r--r--src/commands/dev/__template.ts2
-rw-r--r--src/commands/dev/eval.ts2
-rw-r--r--src/commands/dev/reload.ts2
-rw-r--r--src/commands/dev/say.ts5
-rw-r--r--src/commands/dev/servers.ts4
-rw-r--r--src/commands/dev/sh.ts2
-rw-r--r--src/commands/dev/superUser.ts6
-rw-r--r--src/commands/dev/test.ts8
8 files changed, 15 insertions, 16 deletions
diff --git a/src/commands/dev/__template.ts b/src/commands/dev/__template.ts
index 0d25766..85cc06e 100644
--- a/src/commands/dev/__template.ts
+++ b/src/commands/dev/__template.ts
@@ -1,4 +1,4 @@
-import { BushCommand, BushMessage, BushSlashMessage } from '@lib';
+import { BushCommand, type BushMessage, type BushSlashMessage } from '@lib';
export default class TemplateCommand extends BushCommand {
public constructor() {
diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts
index 5bb99e7..e22f937 100644
--- a/src/commands/dev/eval.ts
+++ b/src/commands/dev/eval.ts
@@ -1,4 +1,4 @@
-import { BushCommand, BushMessage, BushSlashMessage } from '@lib';
+import { BushCommand, type BushMessage, type BushSlashMessage } from '@lib';
import { exec } from 'child_process';
import { MessageEmbed as _MessageEmbed } from 'discord.js';
import { transpile } from 'typescript';
diff --git a/src/commands/dev/reload.ts b/src/commands/dev/reload.ts
index a95106f..7920a37 100644
--- a/src/commands/dev/reload.ts
+++ b/src/commands/dev/reload.ts
@@ -1,4 +1,4 @@
-import { BushCommand, BushMessage, BushSlashMessage } from '@lib';
+import { BushCommand, type BushMessage, type BushSlashMessage } from '@lib';
export default class ReloadCommand extends BushCommand {
public constructor() {
diff --git a/src/commands/dev/say.ts b/src/commands/dev/say.ts
index 947f3c2..3a8b2de 100644
--- a/src/commands/dev/say.ts
+++ b/src/commands/dev/say.ts
@@ -1,5 +1,4 @@
-import { AllowedMentions, BushCommand, BushMessage } from '@lib';
-import { AkairoMessage } from 'discord-akairo';
+import { AllowedMentions, BushCommand, type BushMessage, type BushSlashMessage } from '@lib';
export default class SayCommand extends BushCommand {
public constructor() {
@@ -35,7 +34,7 @@ export default class SayCommand extends BushCommand {
await message.util.send({ content: args.content, allowedMentions: AllowedMentions.none() }).catch(() => null);
}
- public override async execSlash(message: AkairoMessage, args: { content: string }) {
+ public override async execSlash(message: BushSlashMessage, args: { content: string }) {
if (!client.config.owners.includes(message.author.id)) {
return await message.interaction.reply({
content: `${util.emojis.error} Only my developers can run this command.`,
diff --git a/src/commands/dev/servers.ts b/src/commands/dev/servers.ts
index e26d2c7..4b98ed9 100644
--- a/src/commands/dev/servers.ts
+++ b/src/commands/dev/servers.ts
@@ -1,5 +1,5 @@
-import { BushCommand, BushMessage, BushSlashMessage, ButtonPaginator } from '@lib';
-import { Guild, MessageEmbedOptions } from 'discord.js';
+import { BushCommand, ButtonPaginator, type BushMessage, type BushSlashMessage } from '@lib';
+import { type Guild, type MessageEmbedOptions } from 'discord.js';
export default class ServersCommand extends BushCommand {
public constructor() {
diff --git a/src/commands/dev/sh.ts b/src/commands/dev/sh.ts
index 11cd28d..e32408d 100644
--- a/src/commands/dev/sh.ts
+++ b/src/commands/dev/sh.ts
@@ -1,4 +1,4 @@
-import { BushCommand, BushMessage, BushSlashMessage } from '@lib';
+import { BushCommand, type BushMessage, type BushSlashMessage } from '@lib';
import chalk from 'chalk';
import { exec } from 'child_process';
import { MessageEmbed, Util } from 'discord.js';
diff --git a/src/commands/dev/superUser.ts b/src/commands/dev/superUser.ts
index 147a6c4..41cd7eb 100644
--- a/src/commands/dev/superUser.ts
+++ b/src/commands/dev/superUser.ts
@@ -1,6 +1,6 @@
-import { BushCommand, BushMessage, BushSlashMessage, Global } from '@lib';
-import { ArgumentOptions, Flag } from 'discord-akairo';
-import { User } from 'discord.js';
+import { BushCommand, Global, type BushMessage, type BushSlashMessage } from '@lib';
+import { type ArgumentOptions, type Flag } from 'discord-akairo';
+import { type User } from 'discord.js';
export default class SuperUserCommand extends BushCommand {
public constructor() {
diff --git a/src/commands/dev/test.ts b/src/commands/dev/test.ts
index 8ea57f9..d6c20f7 100644
--- a/src/commands/dev/test.ts
+++ b/src/commands/dev/test.ts
@@ -1,11 +1,11 @@
-import { BushCommand, BushMessage, ButtonPaginator } from '@lib';
+import { BushCommand, ButtonPaginator, type BushMessage } from '@lib';
import {
- ApplicationCommand,
- Collection,
Constants as jsConstants,
MessageActionRow,
MessageButton,
- MessageEmbed
+ MessageEmbed,
+ type ApplicationCommand,
+ type Collection
} from 'discord.js';
export default class TestCommand extends BushCommand {