Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python bot ban script

@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')
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #python #bot #ban #script
ADD COMMENT
Topic
Name
1+8 =