fix(bot): correctly use thread permissions in reproxy check

This commit is contained in:
Iris System 2023-02-27 09:18:00 +13:00
parent 1b3fa07c67
commit b2c61e3e8e

View File

@ -228,7 +228,7 @@ public class ProxyService
var guildMember = await _rest.GetGuildMember(msg.Guild!.Value, trigger.Author.Id);
// Grab user permissions
var senderPermissions = PermissionExtensions.PermissionsFor(guild, rootChannel, trigger.Author.Id, guildMember);
var senderPermissions = PermissionExtensions.PermissionsFor(guild, messageChannel, trigger.Author.Id, guildMember);
var allowEveryone = senderPermissions.HasFlag(PermissionSet.MentionEveryone);
// Make sure user has permissions to send messages