🚑 fixed stuff that broke /balance top
This commit is contained in:
parent
0d3fad2683
commit
4fa241ad84
2 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ module.exports = {
|
||||||
|
|
||||||
Promise.all(
|
Promise.all(
|
||||||
topTen.map(async (x, i) => {
|
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 });
|
topTens.push({ index: i, user: user, credits: x.data });
|
||||||
})
|
})
|
||||||
).then(async () => {
|
).then(async () => {
|
||||||
|
|
2
index.js
2
index.js
|
@ -39,7 +39,7 @@ client.on('interactionCreate', async (interaction) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on('messageCreate', async (message) => {
|
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);
|
credits.add(message.author.id, 1);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue