From 1cfcea7c136cd25c3e3cbc82ac36ae50065caffa Mon Sep 17 00:00:00 2001 From: rootdarkarchon Date: Sun, 17 Sep 2023 00:11:41 +0200 Subject: [PATCH] fix vanity --- .../MareSynchronosServices/Discord/MareWizardModule.Vanity.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MareSynchronosServer/MareSynchronosServices/Discord/MareWizardModule.Vanity.cs b/MareSynchronosServer/MareSynchronosServices/Discord/MareWizardModule.Vanity.cs index b7a864b..27e6d50 100644 --- a/MareSynchronosServer/MareSynchronosServices/Discord/MareWizardModule.Vanity.cs +++ b/MareSynchronosServer/MareSynchronosServices/Discord/MareWizardModule.Vanity.cs @@ -14,7 +14,7 @@ public partial class MareWizardModule if (!(await ValidateInteraction().ConfigureAwait(false))) return; 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(); if (!userIsInVanityRole) {