diff --git a/commands/balance.js b/commands/balance.js index 88099a5..0e55a68 100644 --- a/commands/balance.js +++ b/commands/balance.js @@ -57,7 +57,7 @@ module.exports = { Promise.all( topTen.map(async (x, i) => { - user = await client.users.fetch(`${x.ID}`); + user = await client.users.fetch(`${x.ID}`, { force: true }); topTens.push({ index: i, user: user, credits: x.data }); }) ).then(async () => { diff --git a/index.js b/index.js index 9aed346..68d862c 100644 --- a/index.js +++ b/index.js @@ -39,7 +39,7 @@ client.on('interactionCreate', async (interaction) => { }); client.on('messageCreate', async (message) => { - if (message.author.id === message.client.user.id) return; + if (message.author.bot) return; credits.add(message.author.id, 1);