Skip to content

Supported Client Events

The Megalog module only supports certain Discord client events defined in the MegalogSupportedClientEvent type and which are split into three types:

  • Guild events (defined in MegalogSupportedGuildClientEvent)
    • Events from a guild without corresponding audit log entries
    • Like message send in a guild channel
  • Audit log events (defined in MegalogSupportedAuditLogClientEvent)
    • Events from a guild with corresponding audit log entries
    • Like channel creation
  • Global events (defined in MegalogSupportedGlobalClientEvent)
    • Events relevant to all guilds
    • Like username change

All events are also listed in the table below with details of their behavior.

Audit log matching accuracy

Client events with audit log matching have differing accuracies:

  • absolute: Matches are always correct.
  • high: Matches are virtually always correct. Can practically be seen as always correct.
  • medium: Matches are likely to be correct but can also be unrelated.
  • low: Matches have an uncertain accuracy and should be seen as likely unrelated.

The accuracy of each event should be kept in mind while designing the Megalog log messages to ensure the user is aware of potentially false information.

Name Type Possible Audit Log Events
message guild -
messageDelete audit log
  • MESSAGE_DELETE: medium accuracy
messageDeleteBulk audit log
  • MESSAGE_DELETE_BULK: medium accuracy
messageUpdate guild -
channelCreate audit log
  • CHANNEL_CREATE: absolute accuracy
channelDelete audit log
  • CHANNEL_DELETE: absolute accuracy
channelPinsUpdate audit log
  • MESSAGE_PIN: low accuracy
  • MESSAGE_UNPIN: low accuracy
channelUpdate audit log
  • CHANNEL_UPDATE: high accuracy
  • CHANNEL_OVERWRITE_CREATE: high accuracy
  • CHANNEL_OVERWRITE_DELETE: high accuracy
  • CHANNEL_OVERWRITE_UPDATE: high accuracy
webhookUpdate audit log
  • WEBHOOK_CREATE: absolute accuracy
  • WEBHOOK_DELETE: absolute accuracy
  • WEBHOOK_UPDATE: high accuracy
emojiCreate audit log
  • EMOJI_CREATE: absolute accuracy
emojiDelete audit log
  • EMOJI_DELETE: absolute accuracy
emojiUpdate audit log
  • EMOJI_UPDATE: high accuracy
guildBanAdd audit log
  • MEMBER_BAN_ADD: high accuracy
guildBanRemove audit log
  • MEMBER_BAN_REMOVE: high accuracy
guildMemberAdd guild -
guildMemberRemove audit log
  • MEMBER_BAN_ADD: high accuracy
  • MEMBER_KICK: high accuracy
guildMemberUpdate audit log
  • MEMBER_UPDATE: high accuracy
  • MEMBER_ROLE_UPDATE: high accuracy
guildIntegrationsUpdate audit log
  • INTEGRATION_DELETE: medium accuracy
guildUpdate audit log
  • GUILD_UPDATE: high accuracy
inviteCreate audit log
  • INVITE_CREATE: absolute accuracy
inviteDelete audit log
  • INVITE_DELETE: absolute accuracy
roleCreate audit log
  • ROLE_CREATE: absolute accuracy
roleDelete audit log
  • ROLE_DELETE: absolute accuracy
roleUpdate audit log
  • ROLE_UPDATE: high accuracy
voiceStateUpdate audit log
  • MEMBER_DISCONNECT: low accuracy
  • MEMBER_MOVE: low accuracy
  • MEMBER_UPDATE: high accuracy
messageReactionRemoveAll guild -
messageReactionRemoveEmoji guild -
messageReactionAdd guild -
messageReactionRemove guild -
userUpdate global -

Last update: September 26, 2021