Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ban discord.py

@client.command()
@commands.has_permissions(ban_members=True)
async def ban(ctx, member: discord.Member, *, reason=None):
    await member.ban(reason=reason)
    await ctx.send(f'User {member} has been baned from the server.')
 
PREVIOUS NEXT
Tagged: #ban
ADD COMMENT
Topic
Name
7+8 =