Answer the question
In order to leave comments, you need to log in
Where is the error in the code?
I made a code how to solve the error
@Bot.event
async def on_raw_reaction_remove(payload):
channel = Bot.get_channel(payload.channel_id)
message = await channel.fetch_message(payload.message_id)
guild = Bot.get_guild(payload.guild_id)
reaction = discord.utils.get(message.reactions, emoji=payload.emoji.name)
payload.member = guild.get_member(payload.member)
if payload.message_id == здесь ид and reaction.emoji == 'здесь emoji':
role = discord.utils.get(guild.roles, name='здесь роль')
await payload.member.remove_role(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