Hello for my bot I put an auto role system but alas when I run my code its said to me:
NameError: name 'message' is not define
can u help me pls the code:
@client.event
async def on_ready():
Channel = client.get_channel('829747866360610843')
Text= "Hey Si Tu Veux Acceder Au Conversations Exclusivement Pour Les Mangas Clique Sur La Réaction !"
Moji = await message.channel.send(Channel, Text)
await client.add_reaction(Moji, emoji='')
@client.event
async def on_reaction_add(reaction, user):
Channel = client.get_channel('829747866360610843')
if reaction.message.channel.id != Channel:
return
if user.reaction.emoji == "":
Role = discord.utils.get(user.server.roles, name="manga")
await client.add_roles(user, Role)