refactor: ⚰️ Fixed code smells

Fixed some more code smells
This commit is contained in:
Axel Olausson Holtenäs 2022-12-13 14:19:58 +01:00
parent 41ca451323
commit c6d6547881

View file

@ -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)