mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 11:40:12 +01:00
fix(tryitandsee): send only link instead of embed
The tryitandsee command now sends a direct link (https://tryitands.ee/) instead of an embedded GIF. This simplifies the response and removes the use of embeds and images.
This commit is contained in:
@@ -9,21 +9,15 @@ def tryitandsee_command():
|
|||||||
description="Try it and see",
|
description="Try it and see",
|
||||||
)
|
)
|
||||||
async def tryitandsee(self, context):
|
async def tryitandsee(self, context):
|
||||||
gif_url = "https://yes.nighty.works/raw/1BQP8c.gif"
|
link = "https://tryitands.ee/"
|
||||||
|
|
||||||
embed = discord.Embed(
|
|
||||||
color=0x7289DA,
|
|
||||||
)
|
|
||||||
embed.set_author(name="Try It And See", icon_url="https://yes.nighty.works/raw/YxMC0r.png")
|
|
||||||
embed.set_image(url=gif_url)
|
|
||||||
|
|
||||||
if getattr(context, "interaction", None):
|
if getattr(context, "interaction", None):
|
||||||
inter = context.interaction
|
inter = context.interaction
|
||||||
if not inter.response.is_done():
|
if not inter.response.is_done():
|
||||||
await inter.response.send_message(embed=embed, ephemeral=False)
|
await inter.response.send_message(link, ephemeral=False)
|
||||||
else:
|
else:
|
||||||
await inter.followup.send(embed=embed, ephemeral=True)
|
await inter.followup.send(link, ephemeral=True)
|
||||||
else:
|
else:
|
||||||
await context.send(embed=embed)
|
await context.send(link)
|
||||||
|
|
||||||
return tryitandsee
|
return tryitandsee
|
||||||
|
|||||||
Reference in New Issue
Block a user