mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
Fixed a nullref in streamrole service
This commit is contained in:
@@ -39,7 +39,8 @@ public class StreamRoleService : IReadyExecutor, INService
|
||||
if (oldPresence.Activities.Count != newPresence.Activities.Count)
|
||||
{
|
||||
var guildUsers = _client.Guilds
|
||||
.Select(x => x.GetUser(user.Id));
|
||||
.Select(x => x.GetUser(user.Id))
|
||||
.Where(x => x is not null);
|
||||
|
||||
foreach (var guildUser in guildUsers)
|
||||
{
|
||||
|
Reference in New Issue
Block a user