📅  最后修改于: 2022-03-11 14:47:24.750000             🧑  作者: Mango
@client.event
async def on_raw_reaction_add(payload):
guild = client.get_guild(id=payload.guild_id)
roles = guild.get_role(role_id)
await user.add_roles(roles)