AuditLogEntry.executor is null

Why AuditLogEntry.executor is null when my bot delete a webhook?
3 Replies
d.js toolkit
d.js toolkit3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
duck
duck3y ago
if you're using <Webhook>.delete(), this method is implemented using the "Delete Webhook with Token" endpoint, which uses the webhook's token as authentication rather than your bot's token this results in it effectively being that the webhook deleted itself rather than your bot deleting the webhook
Adren
AdrenOP3y ago
Thanks <:wumpus_love:815963419559329874>

Did you find this page helpful?