Skip to content

Commit

Permalink
fix: plug command interaction timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
KnownBlackHat committed Jul 11, 2024
1 parent ef8375b commit 0f72684
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mr_robot/exts/greeter.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ async def slash_set(
outline: The outline of the text
message: The message to send
"""
await interaction.send("Please wait, processing!")
try:
bg_img = await self.__request_bg(img_url)
usr_img = await self.__request_usr(
Expand All @@ -252,7 +253,7 @@ async def slash_set(
welcome=(False if greeter_type == GOODBYE else True),
)
img_file = await self.loop.run_in_executor(None, gen_img)
await interaction.send(
await interaction.edit_original_response(
"This is how it will look like:",
file=img_file,
components=[DeleteButton(interaction.author)],
Expand Down

0 comments on commit 0f72684

Please sign in to comment.