How to track add bot in discord? python discord.py api

Александр Слепенков

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?

Patrick Haugh

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to add end function to tictactoe discord BOT (discord.py)

From Dev

Discord bot not logging in (discord.py python)

From Dev

How to add timeout, python discord bot

From Dev

Discord bot fails to add a role to a user using discord.py

From Dev

Discord Python Bot Add Color to Role

From Dev

Discord Music Bot - Queue (discord.py)

From Dev

Response from a discord bot in discord.py

From Dev

Discord bot add role

From Dev

How to make alias of list, python discord bot

From Dev

How to make a bot join voice channels discord.py

From Dev

How to get the prefix of a server when the bot is mentioned? discord.py

From Dev

How to set number of servers that the bot is on as status (discord.py rewrite)?

From Java

I need to change a python discord bot's avatar (profile picture) using discord.py rewrite

From Dev

Discord bot update message. (Discord.py)

From Java

Discord.py bot guild count

From Dev

Multiple guild welcome bot - discord.py

From Dev

Permission System for Discord.py Bot

From Dev

discord.py bot message deleting not working

From Dev

Discord.py bot leaving voice channel

From Dev

Discord.py bot returning multiple messages

From Dev

discord.py Bot not always deleting messages

From Dev

Discord Python Music bot Error

From Dev

Python - DM a User Discord Bot

From Dev

How can I send an image from an API from a Discord bot?

From Dev

How do I move a user to a specific channel on discord using the discord.py API

From Dev

How to create a category and a channel using python discord.py

From Java

How to run extra Python code in a Discord bot project

From Dev

Programming a Discord bot in Python- How do I indent in embeds?

From Dev

How to run a python script in the background from my discord bot

Related Related

  1. 1

    How to add end function to tictactoe discord BOT (discord.py)

  2. 2

    Discord bot not logging in (discord.py python)

  3. 3

    How to add timeout, python discord bot

  4. 4

    Discord bot fails to add a role to a user using discord.py

  5. 5

    Discord Python Bot Add Color to Role

  6. 6

    Discord Music Bot - Queue (discord.py)

  7. 7

    Response from a discord bot in discord.py

  8. 8

    Discord bot add role

  9. 9

    How to make alias of list, python discord bot

  10. 10

    How to make a bot join voice channels discord.py

  11. 11

    How to get the prefix of a server when the bot is mentioned? discord.py

  12. 12

    How to set number of servers that the bot is on as status (discord.py rewrite)?

  13. 13

    I need to change a python discord bot's avatar (profile picture) using discord.py rewrite

  14. 14

    Discord bot update message. (Discord.py)

  15. 15

    Discord.py bot guild count

  16. 16

    Multiple guild welcome bot - discord.py

  17. 17

    Permission System for Discord.py Bot

  18. 18

    discord.py bot message deleting not working

  19. 19

    Discord.py bot leaving voice channel

  20. 20

    Discord.py bot returning multiple messages

  21. 21

    discord.py Bot not always deleting messages

  22. 22

    Discord Python Music bot Error

  23. 23

    Python - DM a User Discord Bot

  24. 24

    How can I send an image from an API from a Discord bot?

  25. 25

    How do I move a user to a specific channel on discord using the discord.py API

  26. 26

    How to create a category and a channel using python discord.py

  27. 27

    How to run extra Python code in a Discord bot project

  28. 28

    Programming a Discord bot in Python- How do I indent in embeds?

  29. 29

    How to run a python script in the background from my discord bot

HotTag

Archive