🚑 fixed stuff that broke /balance top

This commit is contained in:
Axel Olausson Holtenäs 2022-02-27 20:11:49 +01:00
parent 0d3fad2683
commit 4fa241ad84
No known key found for this signature in database
GPG key ID: E3AE7E194AE017ED
2 changed files with 2 additions and 2 deletions

View file

@ -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 () => {

View file

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