Fix message querying for real this time
This commit is contained in:
parent
1a79d52bfb
commit
f4a5b409c3
@ -167,6 +167,7 @@ namespace PluralKit.Bot {
|
||||
var guildUser = await shard.Rest.GetGuildUserAsync(channel.Guild.Id, msg.Message.Sender);
|
||||
if (guildUser != null)
|
||||
{
|
||||
if (guildUser.RoleIds.Count > 0)
|
||||
roles = guildUser.RoleIds
|
||||
.Select(roleId => channel.Guild.GetRole(roleId))
|
||||
.Where(role => role.Name != "@everyone")
|
||||
|
Loading…
Reference in New Issue
Block a user