Answer the question
In order to leave comments, you need to log in
How to ban a person with a space in their nickname?
I can't ban a person if there is a space in the nickname. Accepts only the first part of the nickname.
It just says user not found.
@bot.command( pass_context = True )
@commands.has_any_role( 966160872990965860, 966075529256116274, 966073485917040660 )
async def ban( ctx, member: discord.Member, *, reason = None ):
await ctx.channel.purge( limit = 1 )
await member.ban( reason = reason )
await ctx.send( f'Забанен пользователь { member.mention }' )
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question