Use error function

merge-requests/9/merge
Bsian 2020-04-17 04:35:56 +01:00
parent f35317c43c
commit 41cd6869f5
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
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.'); return this.error(message.channel, 'Member not found.');
} }
} }
if (member.activities.length <= 0) return message.channel.createMessage(`***${this.client.util.emojis.ERROR} Cannot find a game for this member.***`); if (member.activities.length <= 0) return this.error(message.channel, 'Cannot find a game for this member.');
const embed = new RichEmbed(); const embed = new RichEmbed();
let mainStatus: Activity; let mainStatus: Activity;
if (member.activities[0].type === ActivityType.CUSTOM_STATUS) { if (member.activities[0].type === ActivityType.CUSTOM_STATUS) {