So I have been trying to make a verify command (.verify), where it needs an argument names and is supposed to make a role with their name and assign it to them and also is in supposed to be sent in a specific channel so the people aren't allowed to make roles themselves I thought it was the channel.id at first but I put print(ctx.message.channel.id) and it was the same so I knew that wasn't the error, but it doesn't make the role and doesn't give any role, and even no error! Please help me. Here is my code so far.
@client.command(pass_context=True)
async def verify(ctx, name):
print(ctx.message.channel.id)
if ctx.message.channel.id == 521645091098722305:
await client.create_role(author.server, name=name)
await client.say('Done! Welcome!')
If done thanks, Sincerely, Bread