diff options
author | destruc7i0n <dscdsouza@outlook.com> | 2020-04-29 10:04:35 -0400 |
---|---|---|
committer | destruc7i0n <dscdsouza@outlook.com> | 2020-04-29 10:04:35 -0400 |
commit | cc4922d5b7609ab0c484f9b2effcacec1da5e0aa (patch) | |
tree | 21b70083d116a58e83cecdd14beeddc91481cf0b | |
parent | Merge branch 'master' of https://github.com/destruc7i0n/shulker (diff) | |
download | shulker-cc4922d5b7609ab0c484f9b2effcacec1da5e0aa.tar.gz shulker-cc4922d5b7609ab0c484f9b2effcacec1da5e0aa.zip |
backwards compat with new option
-rw-r--r-- | src/Discord.ts | 3 |
1 files changed, 3 insertions, 0 deletions
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 |