Answers for "discord.py check if user is bot"

-1

discord.py check if user is bot

@bot.command()
async def kick(ctx, user: discord.Member, *, reason="No reason provided"):
    if not user.bot:
        await user.kick(reason=reason)
        await ctx.send(f"Successfully kicked {user}!")
    else:
        await ctx.send("You can't kick a bot!")
Posted by: Guest on March-31-2021

Code answers related to "discord.py check if user is bot"

Python Answers by Framework

Browse Popular Code Answers by Language