Files
mediawiki-matrix-notifs/README.md
T
2018-12-09 15:43:42 +00:00

1.2 KiB

Discord (mw-discord)

MediaWiki extension for sending notifications to a Discord webhook from MediaWiki.

Requirements

  • Discord webhook URL: This can be obtained by editing a channel on a server with the correct permissions.
  • MediaWiki 1.31+

Configuration

  • $wgDiscordWebhookURL - A string or array containing webhook URLs

Optional

  • $wgDiscordNoBots - Do not send notifications that are triggered by a bot account - default: true
  • $wgDiscordNoMinor - Do not send notifications that are for minor edits - default: false
  • $wgDiscordNoNull - Do not send notifications for null edits - default: true

Hooks used

  • PageContentSaveComplete - New edits to pages and page creations
  • ArticleDeleteComplete - Page deletions
  • ArticleUndelete - Page restorations
  • ArticleRevisionVisibilitySet - Revision visibility changes
  • ArticleProtectComplete - Page protections
  • TitleMoveComplete - Page moves
  • LocalUserCreated - User registrations
  • BlockIpComplete - User blocked
  • UnblockUserComplete - User unblocked
  • UserGroupsChanged - User rights changed
  • UploadComplete - File was uploaded
  • FileDeleteComplete - File revision was deleted
  • FileUndeleteComplete - File revision was restored