I'm sorry for this perhaps the obvious question, but unfortunately in the documentation to the library discord.py I could not find information about the event of adding a bot to the server, is there such an event in this library, and if not, then maybe there is an api method in discord itself?
Yes, there is an on_server_join
event. If you wanted to print the name of the server to the terminal when you join, for example, you could do
@client.event
async def on_server_join(server):
print(server.name)
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments