I have a command that makes the bot leave a server, but, they can make the bot rejoin which i don't want and i also don't want to enable code grant as i want other servers to use my bot. and i have to keep on resting the script each time the bot joins a server i want the bot to leave just after it joins after all there isn't a way to ban it from the server. So here is my script.
@client.event
async def on_ready():
my_server = client.get_server('520354830472970270')
await client.leave_server(my_server)
print('left server')`