1
0
Fork 0
mirror of synced 2024-09-28 07:21:16 +12:00

Added the ability to remove a role from the server

This commit is contained in:
Phxntxm 2016-07-31 15:02:51 -05:00
parent ddbff0f8a4
commit db7124503b

View file

@ -23,8 +23,8 @@ class Roles:
if role is None:
server_roles = [role for role in ctx.message.server.roles if not role.is_everyone]
await self.bot.say("Which role would you like to remove from the server? "
"Here is a list of this server's roles:```\n{}```".format("\n".join(server_roles)))
await self.bot.say("Which role would you like to remove from the server? Here is a list of this server's roles:"
"```\n{}```".format("\n".join([r.name for r in server_roles])))
check = lambda m: discord.utils.get(server_roles,name=m.content) > 0
msg = await self.bot.wait_for_message(author=ctx.message.author,channel=ctx.message.channel,check=check)
if msg is None: