Fixed syntax error
This commit is contained in:
parent
e5568740af
commit
ccfef7d9ba
1 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ class Mod:
|
||||||
command))
|
command))
|
||||||
|
|
||||||
@perms.command(name="add", aliases=["setup,create"], pass_context=True, no_pm=True)
|
@perms.command(name="add", aliases=["setup,create"], pass_context=True, no_pm=True)
|
||||||
@commands.has_permissions("manage_server")
|
@commands.has_permissions(manage_server=True)
|
||||||
async def add_perms(self, ctx, *msg: str):
|
async def add_perms(self, ctx, *msg: str):
|
||||||
"""Sets up custom permissions on the provided command
|
"""Sets up custom permissions on the provided command
|
||||||
Format must be 'perms add <command> <permission>'"""
|
Format must be 'perms add <command> <permission>'"""
|
||||||
|
@ -152,7 +152,7 @@ class Mod:
|
||||||
config.closeConnection()
|
config.closeConnection()
|
||||||
|
|
||||||
@perms.command(name="remove", aliases=["delete"], pass_context=True, no_pm=True)
|
@perms.command(name="remove", aliases=["delete"], pass_context=True, no_pm=True)
|
||||||
@commands.has_permissions("manage_server")
|
@commands.has_permissions(manage_server=True)
|
||||||
async def remove_perms(self, ctx, *command: str):
|
async def remove_perms(self, ctx, *command: str):
|
||||||
"""Removes the custom permissions on the command specified"""
|
"""Removes the custom permissions on the command specified"""
|
||||||
cmd = " ".join(command)
|
cmd = " ".join(command)
|
||||||
|
|
Loading…
Reference in a new issue