diff --git a/commands/utility/donator.js b/commands/utility/donator.js index a734cfa..30db68f 100644 --- a/commands/utility/donator.js +++ b/commands/utility/donator.js @@ -19,8 +19,12 @@ class donatorCommand extends Command { let donatorMessage = 'Thanks to:\n'; - for (let i = 0; i < Donator.length; i++) { - donatorMessage += `${this.client.users.get(Donator[i].get('userID')).username}#${this.client.users.get(Donator[i].get('userID')).discriminator} (${Donator[i].get('userID')}) ${Donator[i].get('comment')}\n`; + if (Donator[0]) { + for (let i = 0; i < Donator.length; i++) { + donatorMessage += `**${this.client.users.get(Donator[i].get('userID')).username}#${this.client.users.get(Donator[i].get('userID')).discriminator} (${Donator[i].get('userID')}) ${Donator[i].get('comment')}**\n`; + } + } else { + donatorMessage += 'No one :('; } return message.channel.send(donatorMessage);