mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 02:00:09 +00:00
Add forgotten conditional to proxy tag clear disclaimer
This commit is contained in:
parent
b50c123ad4
commit
acadad2a43
1 changed files with 7 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue