📜  使用 discord bot python 代码示例添加自我角色

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

代码示例1
@async def on_message(message):
     if message.content == "give me admin"
           role = discord.utils.get(server.roles, name="Admin")
           await client.add_roles(message.author.id, role)