Added the ability to remove a role from the server
This commit is contained in:
parent
32c8db7d38
commit
5a38a63a9a
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class Roles:
|
||||||
|
|
||||||
@role.command(name='delete', aliases=['remove'], pass_context=True)
|
@role.command(name='delete', aliases=['remove'], pass_context=True)
|
||||||
@checks.customPermsOrRole(manage_server=True)
|
@checks.customPermsOrRole(manage_server=True)
|
||||||
async def remove_role(self, ctx, role: discord.Role=None):
|
async def remove_role(self, ctx, *, role: discord.Role=None):
|
||||||
"""This command can be used to remove one of the roles from the server"""
|
"""This command can be used to remove one of the roles from the server"""
|
||||||
if role is None:
|
if role is None:
|
||||||
server_roles = [role for role in ctx.message.server.roles if not role.is_everyone]
|
server_roles = [role for role in ctx.message.server.roles if not role.is_everyone]
|
||||||
|
|
Loading…
Reference in a new issue