Anyone know how to ban someone that isn't in your server? i am able to get a command to ban users IN the server but i also want to ban people that aren't in it.
client.http.ban()
For rewrite branch,
await guild.ban(discord.Object(id=member_id))
For async branch,
fake_member = discord.Object(id=member_id)
fake_member.server = discord.Object(id=server_id)
await bot.ban(fake_member)
Don't use the internal http class calls for this as suggested above. It's designed primarily for internal use, subject to change, and in this case unnecessary.
Most helpful comment
For rewrite branch,
await guild.ban(discord.Object(id=member_id))For async branch,
Don't use the internal http class calls for this as suggested above. It's designed primarily for internal use, subject to change, and in this case unnecessary.