You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Defers' the response, showing a loading state to the user
472
472
473
-
:param hidden: Whether the deferred response should be ephemeral. Default ``False``.
473
+
:param hidden: Whether the deferred response should be ephemeral. Default ``False``.
474
474
:param edit_origin: Whether the type is editing the origin message. If ``False``, the deferred response will be for a follow up message. Defaults ``False``.
475
+
:param ignore: Whether to just ignore and not edit or send response. Using this can avoid showing interaction loading state. Default ``False``.
475
476
"""
476
477
ifself.deferredorself.responded:
477
478
raiseerror.AlreadyResponded("You have already responded to this command!")
478
479
479
-
base= {"type": 6ifedit_originelse5}
480
+
base= {"type": 6ifedit_originorignoreelse5}
481
+
482
+
ifedit_originandignore:
483
+
raiseerror.IncorrectFormat("'edit_origin' and 'ignore' are mutually exclusive")
480
484
481
485
ifhidden:
482
486
ifedit_origin:
483
487
raiseerror.IncorrectFormat(
484
488
"'hidden' and 'edit_origin' flags are mutually exclusive"
0 commit comments