Hello stack overflow community!
Just wanted to ask why when If I give a specific user ID to a ban command it return me the following(The purpose of this command its just when someone with bans perms enters it w/o ping or introducing any input and only the command it gets banned, aka a mini troll ban command):
Here's the command code:
> @client.command() @commands.has_permissions(ban_members = True)
> #async def niceroger(ctx,Member:discord.User=None): async def niceroger(ctx,Member:discord.User=None):
> user=669680584376713259
> username = client.get_user(user)
> #user2=discord.get_member(669680584376713259)
> reason = "Bye bye"
> await ctx.guild.ban(username, reason=reason)
> #await ctx.guild.ban(user, reason=reason)
> #await ctx.guild.ban(Member, reason = reason)
> await ctx.channel.send(f"Bye <@669680584376713259>")
Best regards, Engineer