mirror of
https://github.com/miaowware/qrm2.git
synced 2024-11-22 15:58:40 -05:00
remove unnecessary categories
This commit is contained in:
parent
831667ec10
commit
ea508d2a59
8
main.py
8
main.py
@ -84,7 +84,7 @@ async def _extctl(ctx: commands.Context):
|
||||
await ctx.invoke(cmd)
|
||||
|
||||
|
||||
@_extctl.command(name="list", category=cmn.cat.admin)
|
||||
@_extctl.command(name="list")
|
||||
@commands.check(cmn.check_if_owner)
|
||||
async def _extctl_list(ctx: commands.Context):
|
||||
"""Lists Extensions."""
|
||||
@ -94,7 +94,7 @@ async def _extctl_list(ctx: commands.Context):
|
||||
await ctx.send(embed=embed)
|
||||
|
||||
|
||||
@_extctl.command(name="load", category=cmn.cat.admin)
|
||||
@_extctl.command(name="load")
|
||||
@commands.check(cmn.check_if_owner)
|
||||
async def _extctl_load(ctx: commands.Context, extension: str):
|
||||
try:
|
||||
@ -105,7 +105,7 @@ async def _extctl_load(ctx: commands.Context, extension: str):
|
||||
await ctx.send(embed=embed)
|
||||
|
||||
|
||||
@_extctl.command(name="reload", aliases=["relaod"], category=cmn.cat.admin)
|
||||
@_extctl.command(name="reload", aliases=["relaod"])
|
||||
@commands.check(cmn.check_if_owner)
|
||||
async def _extctl_reload(ctx: commands.Context, extension: str):
|
||||
if ctx.invoked_with == "relaod":
|
||||
@ -120,7 +120,7 @@ async def _extctl_reload(ctx: commands.Context, extension: str):
|
||||
await ctx.send(embed=embed)
|
||||
|
||||
|
||||
@_extctl.command(name="unload", category=cmn.cat.admin)
|
||||
@_extctl.command(name="unload")
|
||||
@commands.check(cmn.check_if_owner)
|
||||
async def _extctl_unload(ctx: commands.Context, extension: str):
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user