fix(tweety): slash commands show diff message

This commit is contained in:
neoarz
2025-10-07 15:22:33 -04:00
parent 25ea98236d
commit 70af8e24b2

View File

@@ -166,7 +166,7 @@ def tweety_command():
@commands.cooldown(1, 10, commands.BucketType.user) @commands.cooldown(1, 10, commands.BucketType.user)
async def tweety(self, context, verified: Optional[str] = "false", theme: Optional[str] = "light"): async def tweety(self, context, verified: Optional[str] = "false", theme: Optional[str] = "light"):
interaction = getattr(context, "interaction", None) interaction = getattr(context, "interaction", None)
if interaction is not None and not isinstance(context.message, discord.Message): if interaction is not None:
try: try:
embed = discord.Embed( embed = discord.Embed(
title="Tweety", title="Tweety",