1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

Added the ability to remove a role from the server

This commit is contained in:
Phxntxm 2016-07-31 15:04:51 -05:00
parent 32c8db7d38
commit 5a38a63a9a

View file

@ -18,7 +18,7 @@ class Roles:
@role.command(name='delete', aliases=['remove'], pass_context=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"""
if role is None:
server_roles = [role for role in ctx.message.server.roles if not role.is_everyone]