Possible fix for #322

This commit is contained in:
Kwoth
2021-12-18 22:07:00 +01:00
parent 7bff20cc70
commit 77fb47183f
2 changed files with 5 additions and 3 deletions

View File

@@ -108,7 +108,11 @@ namespace NadekoBot.Modules.Utility
await ctx.Channel.TriggerTypingAsync().ConfigureAwait(false);
await _tracker.EnsureUsersDownloadedAsync(ctx.Guild).ConfigureAwait(false);
var users = await ctx.Guild.GetUsersAsync();
var users = await ctx.Guild.GetUsersAsync(
#if GLOBAL_NADEKO
CacheMode.CacheOnly
#endif
);
var roleUsers = users
.Where(u => role is null ? u.RoleIds.Count == 1 : u.RoleIds.Contains(role.Id))
.Select(u => $"`{u.Id, 18}` {u}")