Added a roles command, to create roles on the fly
This commit is contained in:
parent
9060738e35
commit
de042becaa
1 changed files with 7 additions and 2 deletions
|
@ -10,7 +10,12 @@ class Roles:
|
||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
@commands.command(name='create role', aliases=['add role'], pass_context=True)
|
@commands.group(aliases='roles')
|
||||||
|
@checks.customPermsOrRole(manage_server=True)
|
||||||
|
async def role(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
@role.command(name='create', aliases=['add'], pass_context=True)
|
||||||
@checks.customPermsOrRole(manage_server=True)
|
@checks.customPermsOrRole(manage_server=True)
|
||||||
async def create_role(self, ctx):
|
async def create_role(self, ctx):
|
||||||
"""This command can be used to create a new role for this server"""
|
"""This command can be used to create a new role for this server"""
|
||||||
|
|
Loading…
Reference in a new issue