用python写了一个机器人。我做了它来禁止参与者,但不幸的是它只是给出了一个错误:discord.ext.commands.errors.CommandInvokeError: Command raised an exception: Forbidden: 403 Forbidden (error code: 50013): Missing Permissions
资源:
#import need library and module
import discord
from discord.ext import commands
#defining the prefix to be used to call the function
bot = commands.Bot(command_prefix='$')
client = discord.Client()
@bot.command()
async def ban(ctx, member: commands.MemberConverter):
await ctx.guild.ban(member)
#called the bot
bot.run('')
该机器人拥有所有权利
该机器人不具有允许您禁止成员的适当权限的角色。