ModActions: fix tryToMessageUser returning false if neither message type is enabled
This commit is contained in:
parent
7401cdb88c
commit
5676cd427f
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue