AuditLogEntryCreate event handling

https://sourceb.in/aDrJQ7PuLm is my code currently for this gateway event but I am sure there has to be a better way to handle the data from this event and format it properly. Instead of switching to handling each tracked event in its own event handler file.
SourceBin
AuditLog Event
Handles audit log entry creation event
2 Replies
d.js toolkit
d.js toolkit3w ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
JCo
JCoOP3w ago
This seems a bit hacky to handle the input of AuditLog entries and how to output them in an embed. As it's heavily reliant on knowing the output of each of these events and them matching the exact parser output.

Did you find this page helpful?