mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(bot): properly cancel dispatch prompt
This commit is contained in:
parent
45640f08ee
commit
a128fd5492
1 changed files with 2 additions and 1 deletions
|
|
@ -150,7 +150,8 @@ public class Api
|
|||
+ "\n\n**Please review the security requirements at <https://pluralkit.me/api/dispatch#security> 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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue