diff --git a/PluralKit.Bot/Commands/Api.cs b/PluralKit.Bot/Commands/Api.cs index 568250c4..0f612f40 100644 --- a/PluralKit.Bot/Commands/Api.cs +++ b/PluralKit.Bot/Commands/Api.cs @@ -150,7 +150,8 @@ public class Api + "\n\n**Please review the security requirements at before continuing.**" + "\n\nWhen the server is correctly validating the token, click or reply 'yes' to continue." ); - await ctx.PromptYesNo(newToken, "Continue", matchFlag: false); + if (!await ctx.PromptYesNo(newToken, "Continue", matchFlag: false)) + throw Errors.GenericCancelled(); var status = await _dispatch.TestUrl(ctx.System.Uuid, newUrl, newToken); if (status != "OK")