From cc4922d5b7609ab0c484f9b2effcacec1da5e0aa Mon Sep 17 00:00:00 2001 From: destruc7i0n Date: Wed, 29 Apr 2020 10:04:35 -0400 Subject: backwards compat with new option --- src/Discord.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/Discord.ts b/src/Discord.ts index 4f177c8..2893c8b 100644 --- a/src/Discord.ts +++ b/src/Discord.ts @@ -76,6 +76,9 @@ class Discord { if (message.channel.id !== this.channel || message.channel.type !== 'text') return // if using webhooks, ignore this! if (message.webhookID) { + // backwards compatability with older config + if (this.config.USE_WEBHOOKS && this.config.IGNORE_WEBHOOKS === undefined) return + // if ignoring all webhooks, ignore if (this.config.IGNORE_WEBHOOKS) { return -- cgit 1.4.1