diff --git a/lib.js b/lib.js index da0f3fa..59fde72 100644 --- a/lib.js +++ b/lib.js @@ -469,7 +469,7 @@ class ErrorMessage async send(errorType,message, extraMessages) { - if (!message.channel.id) return; + if (!message.channel?.id) return; const embed = new EmbedBuilder() .setColor(0x4d0000) .setAuthor({name:"Rem-chan", iconURL:"https://i.imgur.com/g6FSNhL.png",url:'https://rem.wordfights.com/addtodiscord'})