add Message#channel? check before calling .createMessage()

master
Matthew 2022-08-26 14:29:11 -04:00
parent f661222848
commit 04e0dfe6c1
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -199,6 +199,6 @@ export default class Score extends Command {
await modlogsMessage.delete();
return message.channel.createMessage('***===END ADDITIONAL INFORMATION===***');
}
return message.channel.createMessage({ embed });
return message.channel?.createMessage({ embed });
}
}