📜  python bot ban script - Python 代码示例

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

代码示例1
@commands.command()
@commands.has_permissions(ban_members=True)
  async def ban(self, ctx, member: discord.Member, *, reason=None):
     await member.ban(reason=reason)
     await ctx.send(f'User {member} has been kick')