@@ -27,7 +27,7 @@ class SlashContext:
27
27
:ivar _logger: Logger instance.
28
28
:ivar deffered: Whether the command is current deffered (loading state)
29
29
:ivar _deffered_hidden: Internal var to check that state stays the same
30
- :ivar sent : Whether you sent the initial response .
30
+ :ivar responded : Whether you have responded with a message to the interaction .
31
31
:ivar guild_id: Guild ID of the command message. If the command was invoked in DM, then it is ``None``
32
32
:ivar author_id: User ID representing author of the command message.
33
33
:ivar channel_id: Channel ID representing channel of the command message.
@@ -50,7 +50,7 @@ def __init__(self,
50
50
self .bot = _discord
51
51
self ._logger = logger
52
52
self .deffered = False
53
- self .sent = False
53
+ self .responded = False
54
54
self ._deffered_hidden = False # To check if the patch to the deffered response matches
55
55
self .guild_id = int (_json ["guild_id" ]) if "guild_id" in _json .keys () else None
56
56
self .author_id = int (_json ["member" ]["user" ]["id" ] if "member" in _json .keys () else _json ["user" ]["id" ])
@@ -86,7 +86,7 @@ async def defer(self, hidden: bool = False):
86
86
87
87
:param hidden: Whether the deffered response should be ephemeral . Default ``False``.
88
88
"""
89
- if self .deffered or self .sent :
89
+ if self .deffered or self .responded :
90
90
raise error .AlreadyResponded ("You have already responded to this command!" )
91
91
base = {"type" : 5 }
92
92
if hidden :
@@ -165,7 +165,7 @@ async def send(self,
165
165
base ["flags" ] = 64
166
166
167
167
initial_message = False
168
- if not self .sent :
168
+ if not self .responded :
169
169
initial_message = True
170
170
if files :
171
171
raise error .IncorrectFormat ("You cannot send files in the initial response!" )
@@ -187,7 +187,7 @@ async def send(self,
187
187
resp = await self ._http .edit ({}, self .__token )
188
188
else :
189
189
resp = {}
190
- self .sent = True
190
+ self .responded = True
191
191
else :
192
192
resp = await self ._http .post_followup (base , self .__token , files = files )
193
193
if not hidden :
0 commit comments