Answer the question
In order to leave comments, you need to log in
How to fix bot object has no attribute "send_message"?
@client.event
async def on_ready():
Channel = client.get_channel('887722241641558088')
Text= "YOUR_MESSAGE_HERE"
Moji = await client.send(Channel, Text)
await client.add_reaction(Moji, emoji='✅')
@client.event
async def on_reaction_add(reaction, user):
Channel = client.get_channel('887722241641558088')
if reaction.message.channel.id != Channel:
return
if reaction.emoji == "✅":
Role = discord.utils.get(user.server.roles, name="ПИДАРАС")
await client.add_roles(user, Role)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question