mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 17:58:26 -04:00
Removed useless #if
This commit is contained in:
@@ -109,9 +109,7 @@ namespace NadekoBot.Modules.Utility
|
|||||||
await _tracker.EnsureUsersDownloadedAsync(ctx.Guild).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
|
CacheMode.CacheOnly
|
||||||
#endif
|
|
||||||
);
|
);
|
||||||
var roleUsers = users
|
var roleUsers = users
|
||||||
.Where(u => role is null ? u.RoleIds.Count == 1 : u.RoleIds.Contains(role.Id))
|
.Where(u => role is null ? u.RoleIds.Count == 1 : u.RoleIds.Contains(role.Id))
|
||||||
|
Reference in New Issue
Block a user