Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python how to code discord bot kick members

@bot.command()
async def kick(ctx, member: discord.Member, *, reason=None):
    await member.kick(reason=reason)
    await ctx.send(f'User {member} has been kicked from the server.')
 
PREVIOUS NEXT
Tagged: #python #code #discord #bot #kick #members
ADD COMMENT
Topic
Name
4+8 =