public async Task AdminSet([NotNull] CommandContext ctx, DiscordUser user, string color, [RemainingText] string roleName) { DiscordColor discordColor; try { discordColor = new DiscordColor(color); } catch (Exception ex) { await ctx.RespondAsync( $"Uh oh, there might be a problem with the colour you have chosen\n`{ex.Message}`"); return; } await NameBadgeService.SetNameBadge(ctx, roleName, discordColor, true, user); }
public async Task AdminSet([NotNull] CommandContext ctx, DiscordUser user, [RemainingText] string roleName) { await NameBadgeService.SetNameBadge(ctx, roleName, admin : true, userOverride : user); }
public async Task Set([NotNull] CommandContext ctx, [RemainingText] string roleName) { await NameBadgeService.SetNameBadge(ctx, roleName); }