Removed useless #if

This commit is contained in:
Kwoth
2022-01-01 16:28:16 +01:00
parent 179784da3e
commit 42e1f35df2

View File

@@ -109,9 +109,7 @@ namespace NadekoBot.Modules.Utility
await _tracker.EnsureUsersDownloadedAsync(ctx.Guild).ConfigureAwait(false);
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))