Files
Syntrel/cogs/miscellaneous/tryitandsee.py
neoarz 5128706f9a 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.
2025-10-04 19:31:06 -04:00

24 lines
679 B
Python

import discord
from discord.ext import commands
from discord.ext.commands import Context
def tryitandsee_command():
@commands.hybrid_command(
name="tryitandsee",
description="Try it and see",
)
async def tryitandsee(self, context):
link = "https://tryitands.ee/"
if getattr(context, "interaction", None):
inter = context.interaction
if not inter.response.is_done():
await inter.response.send_message(link, ephemeral=False)
else:
await inter.followup.send(link, ephemeral=True)
else:
await context.send(link)
return tryitandsee