Skip to content

Commit 661c089

Browse files
committed
Fixed type 2 and 5 not working
1 parent 99d40f4 commit 661c089

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

discord_slash/model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ async def send(self,
110110
base["data"]["flags"] = 64
111111
if hidden and embeds:
112112
self.logger.warning("You cannot use both `hidden` and `embeds` at the same time!")
113+
if (send_type == 2 or send_type == 5) and not self.sent:
114+
base = {"type": send_type}
113115
initial = True if not self.sent else False
114116
resp = await self._http.post(base, self._discord.user.id, self.interaction_id, self.__token, initial)
115117
self.sent = True

0 commit comments

Comments
 (0)