Home > Enterprise >  How to get the user which added the discord bot?
How to get the user which added the discord bot?

Time:07-20

I want to know the person which added the bot. How can I do this using discord.py?

CodePudding user response:

I recommend checking the audit-log via guild.audit_logs(). Discordpy does not explicitly include BOT_ADD, but it might be in there.

Otherwise you'll have to use the official discord endpoint where you should see the BOT_ADD entry and the affected (executing) user.

  • Related