fix game cmd

merge-requests/15/head
Matthew 2020-07-23 08:33:20 -04:00
parent 42520eecfa
commit fa52e61e25
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ export default class Game extends Command {
return this.error(message.channel, 'Member not found.');
}
}
if (member.activities.length <= 0) return this.error(message.channel, 'Cannot find a game for this member.');
if (!member.activities || member.activities.length <= 0) return this.error(message.channel, 'Cannot find a game for this member.');
const embed = new RichEmbed();
let mainStatus: Activity;
if (member.activities[0].type === ActivityType.CUSTOM_STATUS) {