fix(bot): 🐛 Fix reply argument conversion.
This commit is contained in:
+4
-1
@@ -337,6 +337,9 @@ class Payphone(commands.AutoShardedBot):
|
||||
f"❌ You're going too fast! Wait `{int(exception.retry_after)}` seconds before trying again."
|
||||
)
|
||||
|
||||
elif isinstance(exception, errors.NotOwner):
|
||||
await context.send("❌ You're not the owner of this bot.")
|
||||
|
||||
elif isinstance(exception, errors.CommandNotFound):
|
||||
return
|
||||
|
||||
@@ -378,7 +381,7 @@ async def is_channel_enabled(ctx: commands.Context) -> Literal[True]:
|
||||
|
||||
if ctx.guild is None:
|
||||
return True
|
||||
|
||||
|
||||
if ctx.command.qualified_name in ["config enable", "config disable"]:
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user