Fix some donators not showing up

akairo
loicbersier 4 years ago
parent 9e17dbc09c
commit 8097b7ee2f

@ -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`;
}

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

Loading…
Cancel
Save