mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 17:07:22 +01:00
fix vanity
This commit is contained in:
parent
7e90187822
commit
1cfcea7c13
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue