Add forgotten conditional to proxy tag clear disclaimer
This commit is contained in:
parent
b50c123ad4
commit
acadad2a43
@ -168,10 +168,13 @@ namespace PluralKit.Bot.Commands
|
|||||||
if (!ctx.HasNext())
|
if (!ctx.HasNext())
|
||||||
{
|
{
|
||||||
// If we already have multiple tags, this would clear everything, so prompt that
|
// If we already have multiple tags, this would clear everything, so prompt that
|
||||||
var msg = await ctx.Reply(
|
if (target.ProxyTags.Count > 1)
|
||||||
$"{Emojis.Warn} You already have multiple proxy tags set: {target.ProxyTagsString()}\nDo you want to clear them all?");
|
{
|
||||||
if (!await ctx.PromptYesNo(msg))
|
var msg = await ctx.Reply(
|
||||||
throw Errors.GenericCancelled();
|
$"{Emojis.Warn} You already have multiple proxy tags set: {target.ProxyTagsString()}\nDo you want to clear them all?");
|
||||||
|
if (!await ctx.PromptYesNo(msg))
|
||||||
|
throw Errors.GenericCancelled();
|
||||||
|
}
|
||||||
|
|
||||||
target.ProxyTags = new ProxyTag[] { };
|
target.ProxyTags = new ProxyTag[] { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user