From fa52e61e2506681824def4b2c6a97cd1160fd14e Mon Sep 17 00:00:00 2001 From: Matthew R Date: Thu, 23 Jul 2020 08:33:20 -0400 Subject: [PATCH] fix game cmd --- src/commands/game.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/game.ts b/src/commands/game.ts index 3c6d7a8..d2dead0 100644 --- a/src/commands/game.ts +++ b/src/commands/game.ts @@ -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) {