Skip to content

Commit dd52f01

Browse files
fix cmd called twice for a weird reason
Get the message data with a PATCH request
1 parent 063f9e7 commit dd52f01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

discord_slash/context.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ async def send(self,
182182
"type": 4,
183183
"data": base
184184
}
185-
resp = await self._http.post_initial_response(json_data, self._interaction_id, self.__token)
185+
await self._http.post_initial_response(json_data, self._interaction_id, self.__token)
186+
resp = await self._http.edit({}, self.__token)
186187
self._sent = True
187188
else:
188189
resp = await self._http.post_followup(base, self.__token, files=files)

0 commit comments

Comments
 (0)