From d08c39e489520571d2bd1fb4efca339cfa3f7186 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Mon, 17 Apr 2023 13:36:53 +1000 Subject: [PATCH] Boy's suggestion due to TS using 'pkg' from now on. --- src/commands/statistics.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/commands/statistics.ts b/src/commands/statistics.ts index c0a49b3..6a56849 100644 --- a/src/commands/statistics.ts +++ b/src/commands/statistics.ts @@ -1,4 +1,4 @@ -import Discord,{SlashCommandBuilder} from 'discord.js'; +import Discord,{SlashCommandBuilder,version} from 'discord.js'; import pkg from 'typescript'; import si from 'systeminformation'; import TClient from '../client.js'; @@ -15,7 +15,6 @@ export default { const i = Math.floor(Math.log(bytes) / Math.log(k)); return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i]; }; - var DJSver = (await import('discord.js')).version; const cpu = await si.cpu(); const ram = await si.mem(); const osInfo = await si.osInfo(); @@ -52,7 +51,7 @@ export default { {name: '> __Dependencies__', value: [ `**TypeScript:** ${pkg.version}`, `**NodeJS:** ${process.version}`, - `**DiscordJS:** ${DJSver}`, + `**DiscordJS:** ${version}`, `**Axios:** ${client.axios.VERSION}` ].join('\n')}, {name: '> __Host__', value: [