refactor: owner checks and embed handling in owner cogs

Removed OWNER_ID from .env and bot.py, switching to @commands.is_owner() for owner checks. Unified embed sending logic in owner cogs, improved error messages, and updated invite command to use ephemeral responses and enhanced embed formatting.
This commit is contained in:
neoarz
2025-09-16 07:43:56 -04:00
parent 7fde0b82ad
commit 1cc3a32e1d
4 changed files with 29 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ class CogManagement(commands.Cog, name="cog_management"):
else:
await interaction.response.send_message(embed=embed, ephemeral=ephemeral)
else:
await self.send_embed(context, embed)
await context.send(embed=embed)
@commands.hybrid_command(
name="load",
@@ -109,7 +109,7 @@ class CogManagement(commands.Cog, name="cog_management"):
async def cog_command_error(self, context: Context, error) -> None:
if isinstance(error, commands.NotOwner):
embed = discord.Embed(
title="Error",
title="Permission Denied",
description="You are not the owner of the bot!",
color=0xE02B2B
)