mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Merge 3e07c2dbb2 into 4a947c01fc
This commit is contained in:
commit
bf7e0ccaf7
1 changed files with 5 additions and 2 deletions
|
|
@ -94,7 +94,10 @@ public static class PermissionExtensions
|
|||
if ((perms & PermissionSet.ViewChannel) == 0)
|
||||
perms &= ~NeedsViewChannel;
|
||||
|
||||
if ((perms & PermissionSet.SendMessages) == 0 && (!isThread || (perms & PermissionSet.SendMessagesInThreads) == 0))
|
||||
if ((perms & PermissionSet.SendMessages) == 0)
|
||||
if (channel.Type == Channel.ChannelType.GuildForum && (perms & PermissionSet.SendMessagesInThreads) != 0)
|
||||
perms |= PermissionSet.SendMessages;
|
||||
else if (!isThread || (perms & PermissionSet.SendMessagesInThreads) == 0)
|
||||
perms &= ~NeedsSendMessages;
|
||||
|
||||
return perms;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue