fix vanity

This commit is contained in:
rootdarkarchon
2023-09-17 00:11:41 +02:00
parent 7e90187822
commit 1cfcea7c13

View File

@@ -14,7 +14,7 @@ public partial class MareWizardModule
if (!(await ValidateInteraction().ConfigureAwait(false))) return; if (!(await ValidateInteraction().ConfigureAwait(false))) return;
StringBuilder sb = new(); StringBuilder sb = new();
var user = await Context.Guild.GetCurrentUserAsync().ConfigureAwait(false); var user = await Context.Guild.GetUserAsync(Context.User.Id).ConfigureAwait(false);
bool userIsInVanityRole = _botServices.VanityRoles.Exists(u => user.RoleIds.Contains(u.Id)) || !_botServices.VanityRoles.Any(); bool userIsInVanityRole = _botServices.VanityRoles.Exists(u => user.RoleIds.Contains(u.Id)) || !_botServices.VanityRoles.Any();
if (!userIsInVanityRole) if (!userIsInVanityRole)
{ {