Add deny perm for addReactions on mute

Added the permission for the channel override when muting to also include the denial of "addReactions."
This commit is contained in:
hakufu 2017-07-13 14:08:51 -04:00 committed by GitHub
parent 67f0cfb717
commit 390a637c08

View File

@ -30,7 +30,7 @@ namespace NadekoBot.Services.Administration
public event Action<IGuildUser, MuteType> UserMuted = delegate { }; public event Action<IGuildUser, MuteType> UserMuted = delegate { };
public event Action<IGuildUser, MuteType> UserUnmuted = delegate { }; public event Action<IGuildUser, MuteType> UserUnmuted = delegate { };
private static readonly OverwritePermissions denyOverwrite = new OverwritePermissions(sendMessages: PermValue.Deny, attachFiles: PermValue.Deny); private static readonly OverwritePermissions denyOverwrite = new OverwritePermissions(addReactions: PermValue.Deny, sendMessages: PermValue.Deny, attachFiles: PermValue.Deny);
private readonly Logger _log = LogManager.GetCurrentClassLogger(); private readonly Logger _log = LogManager.GetCurrentClassLogger();
private readonly DiscordSocketClient _client; private readonly DiscordSocketClient _client;