aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-31 22:19:29 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-31 22:19:29 -0500
commit6e74b5fc9c68b5a919ec32304e2809751ab8fec5 (patch)
tree5fc0a781b9ac81d1d2a5c7069256a0cbc0fb880d
parentfd5dbb05d741fec683c210aed012a55c7da0ca87 (diff)
downloadtanzanite-6e74b5fc9c68b5a919ec32304e2809751ab8fec5.tar.gz
tanzanite-6e74b5fc9c68b5a919ec32304e2809751ab8fec5.tar.bz2
tanzanite-6e74b5fc9c68b5a919ec32304e2809751ab8fec5.zip
deny SendMessagesInThreads no matter what
-rw-r--r--src/lib/extensions/discord.js/BushGuild.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/extensions/discord.js/BushGuild.ts b/src/lib/extensions/discord.js/BushGuild.ts
index 83e024d..4aacc73 100644
--- a/src/lib/extensions/discord.js/BushGuild.ts
+++ b/src/lib/extensions/discord.js/BushGuild.ts
@@ -351,7 +351,8 @@ export class BushGuild extends Guild {
const permissionOverwrites = channel.isThread() ? channel.parent!.permissionOverwrites : channel.permissionOverwrites;
const perms = {
- [channel.isThread() ? 'SendMessagesInThreads' : 'SendMessages']: options.unlock ? null : false
+ SendMessagesInThreads: options.unlock ? null : false,
+ SendMessages: options.unlock ? null : false
};
const permsForMe = {
[channel.isThread() ? 'SendMessagesInThreads' : 'SendMessages']: options.unlock ? null : true