สวัสดีเอ่อล้นออกมาตั้งชุมชน!
แค่อยากจะถามว่าทำไมตอนถ้าฉันให้เป็นเฉพาะหมายเลขผู้ต้องเป็นแบคำสั่งมันกลับมามองฉันตาม(จุดประสงค์ของคำสั่งนี้มันแค่เมื่อใครบางคน bans perms งเข้ามันทำการอ่าน/เขียนต่อเนื่องหรือแนะนำอะไรนำเข้าข้อมูลและคำสั่งที่มันจะถูกแบนหรือเป็นมินิดิ!เธอโกรธฉันแบคำสั่ง):
นี่คือคำสั่งรหัส:
> @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>")
ที่ดีที่สุดที่ฝากฝัง, วิศวกร