diff options
Diffstat (limited to 'src/commands/dev')
-rw-r--r-- | src/commands/dev/eval.ts | 2 | ||||
-rw-r--r-- | src/commands/dev/reload.ts | 34 | ||||
-rw-r--r-- | src/commands/dev/servers.ts | 2 |
3 files changed, 19 insertions, 19 deletions
diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts index 4f6a293..dbdfc4b 100644 --- a/src/commands/dev/eval.ts +++ b/src/commands/dev/eval.ts @@ -106,7 +106,7 @@ export default class EvalCommand extends BushCommand { Util, Collection } = await import('discord.js'), - { Canvas } = await import('node-canvas'); + { Canvas } = await import('canvas'); /* eslint-enable @typescript-eslint/no-unused-vars */ const inputJS = await util.inspectCleanRedactCodeblock(code.js, 'js'); diff --git a/src/commands/dev/reload.ts b/src/commands/dev/reload.ts index 4748aba..de12e34 100644 --- a/src/commands/dev/reload.ts +++ b/src/commands/dev/reload.ts @@ -10,35 +10,35 @@ export default class ReloadCommand extends BushCommand { usage: 'reload', examples: ['reload'] }, - args: [ - { - id: 'fast', - match: 'flag', - flag: '--fast' - } - ], + // args: [ + // { + // id: 'fast', + // match: 'flag', + // flag: '--fast' + // } + // ], ownerOnly: true, typing: true, - slashOptions: [ - { - name: 'fast', - description: 'Whether to use esbuild for fast compiling or not', - type: 'BOOLEAN', - required: false - } - ], + // slashOptions: [ + // { + // name: 'fast', + // description: 'Whether to use esbuild for fast compiling or not', + // type: 'BOOLEAN', + // required: false + // } + // ], slash: true }); } - public async exec(message: BushMessage | BushSlashMessage, { fast }: { fast: boolean }): Promise<unknown> { + public async exec(message: BushMessage | BushSlashMessage /* { fast }: { fast: boolean } */): Promise<unknown> { if (!message.author.isOwner()) return await message.util.reply(`${util.emojis.error} Only my developers can run this command.`); let output: { stdout: string; stderr: string }; try { const s = new Date(); - output = await util.shell(`yarn build-${fast ? 'esbuild' : 'tsc'}`); + output = await util.shell(`yarn build-${/* fast ? 'esbuild' : */ 'tsc'}`); client.commandHandler.reloadAll(); client.listenerHandler.reloadAll(); client.inhibitorHandler.reloadAll(); diff --git a/src/commands/dev/servers.ts b/src/commands/dev/servers.ts index dc4562c..a088776 100644 --- a/src/commands/dev/servers.ts +++ b/src/commands/dev/servers.ts @@ -37,7 +37,7 @@ export default class ServersCommand extends BushCommand { `**ID:** ${g.id}\n**Owner:** ${owner ? owner : g.ownerId}\n**Members:** ${g.memberCount.toLocaleString()}`, false ) - .setTitle(`Server List [${client.guilds.cache.size}]`) + .setTitle(`Server List [\`${client.guilds.cache.size.toLocaleString()}\`]`) .setColor(util.colors.default); }); embeds.push(embed); |