#๐ how to make a discord bot leave similar to this one
18 messages ยท Page 1 of 1 (latest)
@modest knot
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
ive noticed that some discord paid bots, specifically one named bleed leaves servers immediately when its invited to a server its unfamilliar with. how can i replicate this function? ive tried to make it so that it leaves the server through a on_ready event every 10 minutes, but it seems slow. i would also like to see if i could figure out the guild id that the bot is added to, so i could leave more efficiently. if you dont know what im talking about, this video summarises it
isn't there an on_guild_join event or something like that?
discord.on_guild_join(guild)```
Called when a [`Guild`](https://discordpy.readthedocs.io/en/latest/api.html#discord.Guild) is either created by the [`Client`](https://discordpy.readthedocs.io/en/latest/api.html#discord.Client) or when the [`Client`](https://discordpy.readthedocs.io/en/latest/api.html#discord.Client) joins a guild.
This requires [`Intents.guilds`](https://discordpy.readthedocs.io/en/latest/api.html#discord.Intents.guilds) to be enabled.
is that on nextcord as well
should be
there is also the option of just not letting others add your bot to servers
(as in, discord option)
it existed before 2.0 when the libraries diverged so ya
!close
!close
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.