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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user