From 53d18a6191c39e7823ae660130e3c9fd8f9f2b48 Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Tue, 13 Dec 2022 14:19:58 +0100 Subject: [PATCH] refactor: :coffin: Fixed code smells Fixed some more code smells --- src/commands/utils/modules/about/index.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/commands/utils/modules/about/index.ts b/src/commands/utils/modules/about/index.ts index 4412df5..ea8ba26 100644 --- a/src/commands/utils/modules/about/index.ts +++ b/src/commands/utils/modules/about/index.ts @@ -36,16 +36,6 @@ export default { interaction.guild ); - const { client } = interaction; - if (client?.uptime === null) return; - let totalSeconds = client?.uptime / 1000; - const days = Math?.floor(totalSeconds / 86400); - totalSeconds %= 86400; - const hours = Math?.floor(totalSeconds / 3600); - totalSeconds %= 3600; - const minutes = Math?.floor(totalSeconds / 60); - const seconds = Math?.floor(totalSeconds % 60); - // // Initialize a storage for the user ids // const userIds = new Set(); // // Iterate over all guilds (always cached)