mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 11:40:12 +01:00
fix(tweety): slash commands show diff message
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user