add Message#channel? check before calling .createMessage()
parent
f661222848
commit
04e0dfe6c1
|
@ -199,6 +199,6 @@ export default class Score extends Command {
|
||||||
await modlogsMessage.delete();
|
await modlogsMessage.delete();
|
||||||
return message.channel.createMessage('***===END ADDITIONAL INFORMATION===***');
|
return message.channel.createMessage('***===END ADDITIONAL INFORMATION===***');
|
||||||
}
|
}
|
||||||
return message.channel.createMessage({ embed });
|
return message.channel?.createMessage({ embed });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue