📜  discord.py autorole - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:24.750000             🧑  作者: Mango

代码示例1
@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)