📌  相关文章
📜  如何删除角色 discord py rewrite - Python 代码示例

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

代码示例1
@client.command(name="delete_role", pass_context=True)
async def delete_role(ctx, role_name):
    #find role object
    role_object = discord.utils.get(ctx.message.guild.roles, name=role_name)
    #delete role
    await role_object.delete()