60
60
"MessageInteraction" ,
61
61
"InteractionMetadata" ,
62
62
"AuthorizingIntegrationOwners" ,
63
- "InteractionCallback"
63
+ "InteractionCallback" ,
64
64
)
65
65
66
66
if TYPE_CHECKING :
83
83
from .state import ConnectionState
84
84
from .threads import Thread
85
85
from .types .interactions import Interaction as InteractionPayload
86
- from .types .interactions import InteractionCallbackResponse , InteractionData
87
86
from .types .interactions import InteractionCallback as InteractionCallbackPayload
87
+ from .types .interactions import InteractionCallbackResponse , InteractionData
88
88
from .types .interactions import InteractionMetadata as InteractionMetadataPayload
89
89
from .types .interactions import MessageInteraction as MessageInteractionPayload
90
90
from .ui .modal import Modal
@@ -1707,15 +1707,19 @@ def guild(self) -> Guild | None:
1707
1707
class InteractionCallback :
1708
1708
"""Information about the status of the interaction response.
1709
1709
1710
- .. versionadded:: 2.7
1711
- """
1710
+ .. versionadded:: 2.7
1711
+ """
1712
+
1712
1713
def __init__ (self , data : InteractionCallbackPayload ):
1713
- self ._response_message_loading : bool = data .get ("response_message_loading" , False )
1714
- self ._response_message_ephemeral : bool = data .get ("response_message_ephemeral" , False )
1714
+ self ._response_message_loading : bool = data .get (
1715
+ "response_message_loading" , False
1716
+ )
1717
+ self ._response_message_ephemeral : bool = data .get (
1718
+ "response_message_ephemeral" , False
1719
+ )
1715
1720
1716
1721
def is_loading (self ) -> bool :
1717
- """Indicates whether the response message is in a loading state.
1718
- """
1722
+ """Indicates whether the response message is in a loading state."""
1719
1723
return self ._response_message_loading
1720
1724
1721
1725
def is_ephemeral (self ) -> bool :
@@ -1724,4 +1728,3 @@ def is_ephemeral(self) -> bool:
1724
1728
This might be useful for determining if the message was forced to be ephemeral.
1725
1729
"""
1726
1730
return self ._response_message_ephemeral
1727
-
0 commit comments