Discord.js Audit Log List

This is a list of all of the items you can use for the audit log. You can also find this here.
  • messageDelete
  • messageDeleteBulk
  • messageUpdate
  • message
  • guildCreate
  • guildDelete
  • guildMemberAdd
  • guildMemberRemove
  • guildBanAdd
  • guildBanRemove
  • guildMemberUpdate
  • guildUnavailable
  • guildUpdate
  • inviteCreate
  • inviteDelete
  • messageReactionAdd
  • messageReactionRemove
  • messageReactionRemoveAll
  • presenceUpdate
  • roleCreate
  • roleDelete
  • roleUpdate
  • shardDisconnect
  • shardError
  • shardReady
  • shardReconnecting
  • shardResume
  • userUpdate
  • voiceStateUpdate
  • warn
  • webhookUpdate
  • channelCreate
  • channelDelete
  • channelPinsUpdate
  • channelUpdate
  • emojiCreate
  • emojiDelete
  • emojiUpdate
You use these in the client on section… meaning here:
client.on('guildBanAdd' (args) => {
// code here
});
Just replace the guildBanAdd with one of the items above. Then replace the args with the args you want to pass through.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.