refactor: ⚰️ Fixed code smells
Fixed some more code smells
This commit is contained in:
parent
b9b2994af9
commit
53d18a6191
1 changed files with 0 additions and 10 deletions
|
@ -36,16 +36,6 @@ export default {
|
||||||
interaction.guild
|
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
|
// // Initialize a storage for the user ids
|
||||||
// const userIds = new Set();
|
// const userIds = new Set();
|
||||||
// // Iterate over all guilds (always cached)
|
// // Iterate over all guilds (always cached)
|
||||||
|
|
Loading…
Add table
Reference in a new issue