Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- autoroles = {}
- @client.command()
- async def autorole(ctx, role: discord.Role):
- autoroles[ctx.guild] = role
- @client.event
- async def on_member_join(member):
- await member.add_roles(autoroles[member.guild])
Advertisement
Add Comment
Please, Sign In to add comment