Fix some donators not showing up

This commit is contained in:
loicbersier 2020-08-03 12:01:20 +02:00
parent 9e17dbc09c
commit 8097b7ee2f
2 changed files with 4 additions and 4 deletions

View file

@ -26,8 +26,8 @@ class aboutCommand extends Command {
if (Donator[0]) {
for (let i = 0; i < Donator.length; i++) {
if (this.client.users.resolve(Donator[i].get('userID')) !== null)
description += `**${this.client.users.resolve(Donator[i].get('userID')).tag} (${Donator[i].get('userID')}) | ${Donator[i].get('comment')}**\n`;
if (this.client.users.resolve(Donator[i].get('userID').toString()) !== null)
description += `**${this.client.users.resolve(Donator[i].get('userID').toString()).tag} (${Donator[i].get('userID')}) | ${Donator[i].get('comment')}**\n`;
else
description += `**A user of discord (${Donator[i].get('userID')}) | ${Donator[i].get('comment')} (This user no longer share a server with the bot)**\n`;
}

View file

@ -22,8 +22,8 @@ class donatorCommand extends Command {
if (Donator[0]) {
for (let i = 0; i < Donator.length; i++) {
if (this.client.users.resolve(Donator[i].get('userID')) !== null)
donatorMessage += `**${this.client.users.resolve(Donator[i].get('userID')).tag} (${Donator[i].get('userID')}) | ${Donator[i].get('comment')}**\n`;
if (this.client.users.resolve(Donator[i].get('userID').toString()) !== null)
donatorMessage += `**${this.client.users.resolve(Donator[i].get('userID').toString()).tag} (${Donator[i].get('userID')}) | ${Donator[i].get('comment')}**\n`;
else
donatorMessage += `**A user of discord (${Donator[i].get('userID')}) | ${Donator[i].get('comment')} (This user no longer share a server with the bot)**\n`;