AdminRoles = ["Moderation","Administration","Emperor"]
@client.command()
async def Commands(ctx):
member = ctx.author
if AdminRoles in member.roles:
ShowCommand = discord.Embed(
title = "Moderation Commands",
description = "All commands",
colour = discord.Colour.red()
)
await ctx.send(embed = ShowCommand)
else:
ShowCommand = discord.Embed(
title = "Member Commands",
description = "All commands",
colour = discord.Colour.red()
)
await ctx.send(embed = ShowCommand)
我修复了上面的代码,因为当我输入命令时,它会继续显示正常的播放器命令,并且应该显示 Mod 命令。
杨__羊羊
收到一只叮咚
相关分类