Skip to content

Commit c511e98

Browse files
committed
fixed output
1 parent f205fb7 commit c511e98

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

discord_bot/cogs/commands.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,11 @@ async def whojudge_debug(self, interaction: discord.Interaction):
119119
@app_commands.command(name="screen", description="ragebait")
120120
@app_commands.describe(gif="GIF URL")
121121
async def screen(self, interaction: discord.Interaction, gif: str):
122-
res = perform_gif_overlay(gif)
123-
return await interaction.response.send_message(
124-
file=discord.File(io.BytesIO(res), filename="output.gif")
122+
await interaction.response.send_message(
123+
content="Generating..."
125124
)
125+
res = perform_gif_overlay(gif)
126+
return await interaction.channel.send(file=discord.File(io.BytesIO(res), filename="output.gif"))
126127

127128

128129
async def setup(bot):

0 commit comments

Comments
 (0)