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> {
|
): Promise<boolean> {
|
||||||
let messageSent = false;
|
let messageSent = false;
|
||||||
|
|
||||||
|
if (!useDM && !useChannel) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (useDM) {
|
if (useDM) {
|
||||||
try {
|
try {
|
||||||
const dmChannel = await this.bot.getDMChannel(user.id);
|
const dmChannel = await this.bot.getDMChannel(user.id);
|
||||||
|
|
Loading…
Add table
Reference in a new issue