示例#1
0
        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);
        }
示例#2
0
 public async Task AdminSet([NotNull] CommandContext ctx, DiscordUser user, [RemainingText] string roleName)
 {
     await NameBadgeService.SetNameBadge(ctx, roleName, admin : true, userOverride : user);
 }
示例#3
0
 public async Task Set([NotNull] CommandContext ctx, [RemainingText] string roleName)
 {
     await NameBadgeService.SetNameBadge(ctx, roleName);
 }