Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tux/cogs/fun/imgeffect.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def deepfry(self, interaction: discord.Interaction, image: discord.Attachm

# say that the image is being processed
logger.info("Processing image...")
await interaction.response.send_message("Processing image...")
await interaction.response.defer(ephemeral=True)

# open url with PIL
logger.info("Opening image with PIL and HTTPX...")
Expand Down Expand Up @@ -89,8 +89,8 @@ async def deepfry(self, interaction: discord.Interaction, image: discord.Attachm
pil_image.save(arr, format="JPEG", quality=1)
arr.seek(0)
file = discord.File(arr, filename="deepfried.jpg")
# edit message with image
await interaction.followup.send(content="Here is your deepfried image:", file=file)

await interaction.followup.send(file=file, ephemeral=True)


async def setup(bot: commands.Bot) -> None:
Expand Down