L
L
Lukas Tumas2020-04-29 18:20:07
Python
Lukas Tumas, 2020-04-29 18:20:07

How to make auto issue of a role?

Hello, how to make auto issue of a role after a command?
A person enters a command and he is immediately given a role.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Soneiko, 2020-04-30
@Lubitelok

@client.command(pass_context = True)
Async def getrole(ctx):
Role = discord.utils.get(ctx.guild.roles, id = )
await ctx.author.add_roles(Role)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question