Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @client.command(pass_context=True)
- async def add(ctx):
- #check to see if role exists
- roleExist = None
- for x in ctx.message.server.roles:
- if str(x) == "Follower":
- roleExist = True
- await client.say("Role: Follower already exists.")
- if roleExist == None:
- await client.say("Role does not exist, creating a new one now")
- await client.create_role(ctx.message.server, name="Follower", colour=discord.Colour.gold(), hoist=True, mentionable=True)
- else:
- pass
- #assigns role
- #await client.say("Assining roles now")
- role = discord.utils.get(ctx.message.server.roles, name="Follower")
- await client.add_roles(ctx.message.author, role)
- """
- The bug appears when i comment out await clien.say("Assining roles now") but not when i leave it in
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement