Fix message querying for real this time

This commit is contained in:
Ske 2019-10-31 16:36:33 +01:00
parent 1a79d52bfb
commit f4a5b409c3

View File

@ -167,6 +167,7 @@ namespace PluralKit.Bot {
var guildUser = await shard.Rest.GetGuildUserAsync(channel.Guild.Id, msg.Message.Sender); var guildUser = await shard.Rest.GetGuildUserAsync(channel.Guild.Id, msg.Message.Sender);
if (guildUser != null) if (guildUser != null)
{ {
if (guildUser.RoleIds.Count > 0)
roles = guildUser.RoleIds roles = guildUser.RoleIds
.Select(roleId => channel.Guild.GetRole(roleId)) .Select(roleId => channel.Guild.GetRole(roleId))
.Where(role => role.Name != "@everyone") .Where(role => role.Name != "@everyone")