Refactor command definitions in owner and moderation cogs for consistency. Change getinvite command to a regular command and update type hints for parameters in enlarge and roleicon commands to improve clarity and type safety.
Some checks failed
CI / Bot (Python) (push) Successful in 12s
CI / Dashboard (Next.js) (push) Failing after 8s

This commit is contained in:
TheOnlyMace
2026-07-21 22:47:29 +02:00
parent 299351463c
commit 20193404e8
3 changed files with 5 additions and 5 deletions

View File

@@ -237,9 +237,9 @@ class Owner(commands.Cog):
ctx=ctx)
await paginator.paginate()
@commands.hybrid_command(name="getinvite", aliases=["gi", "guildinvite"])
@commands.command(name="getinvite", aliases=["gi", "guildinvite"])
@commands.is_owner()
async def getinvite(self, ctx: Context, guild= discord.Guild):
async def getinvite(self, ctx: Context, guild: discord.Guild):
if not guild:
await ctx.send("Invalid server.")
return

View File

@@ -32,7 +32,7 @@ class Global(commands.Cog):
await ctx.send_help(ctx.command)
ctx.command.reset_cooldown(ctx)
@commands.hybrid_command(name="GB",help="Bans the user from all mutual guilds.")
@commands.hybrid_command(name="gb", aliases=["GB"], help="Bans the user from all mutual guilds.")
@commands.is_owner()
async def global_ban(self, ctx: commands.Context, user: discord.User, reason: str = "Severe violations of Discord's terms of service."):
mutual_guilds = [guild for guild in self.client.guilds if guild.get_member(user.id)]