1
0
Fork 0
mirror of synced 2024-09-30 17:29:33 +13: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) @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]