ModActions: fix tryToMessageUser returning false if neither message type is enabled

This commit is contained in:
Dragory 2018-07-12 01:43:11 +03:00
parent 7401cdb88c
commit 5676cd427f

View file

@ -398,6 +398,10 @@ export class ModActionsPlugin extends Plugin {
): Promise<boolean> {
let messageSent = false;
if (!useDM && !useChannel) {
return true;
}
if (useDM) {
try {
const dmChannel = await this.bot.getDMChannel(user.id);