Extension:Discord
From Linux Web Expert
Discord Release status: stable |
|
---|---|
File:mw-discord.png | |
Implementation | User interface, Notify |
Description | MediaWiki extension that sends notifications to Discord. |
Author(s) | Jayden Bailey (Jaydenkierantalk) |
Latest version | 1.0.13 (2023-05-19) |
Compatibility policy | Snapshots releases along with MediaWiki. Master is not backward compatible. |
MediaWiki | 1.31+ |
Database changes | No |
License | MIT License |
Download | GitHub:
<translate> Note:</translate> |
Example | https://runescape.wiki |
Expand | |
Expand | |
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Translate the Discord extension |
The Discord extension sends notifications to a Discord webhook (or several) from MediaWiki. When a certain event occurs on your MediaWiki wiki, including new edits, they can be sent as a message to a channel on a Discord server using a webhook.
This extension requires the PHP cURL extension to be installed on your web server, which on Linux is probably as simple as running sudo apt install php-curl -y
.
Live demo: https://runescape.wiki (https://discord.gg/runescapewiki)
Installation
- <translate> <tvar name=1>Download</tvar> and place the file(s) in a directory called <tvar name=name>
Discord
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate> - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'Discord' ); // List webhook URLs to send notifications to (string or array containing strings) $wgDiscordWebhookURL = [ "" ];
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
Configuration parameters
See README
See also
- Extension:DiscordNotifications - an alternate Discord webhook extension
- Extension:DiscordRCFeed
File:OOjs UI icon information-progressive.svg | <translate> This extension is included in the following wiki farms/hosts and/or packages:</translate>
<translate> This is not an authoritative list.</translate> <translate> Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.</translate> <translate> Always check with your wiki farms/hosts or bundle to confirm.</translate> |
Categories:
- Pages with script errors
- Pages with broken file links
- Stable extensions
- User interface extensions
- Notification extensions
- Extensions with release branches compatibility policy
- Extensions with manual MediaWiki version
- MIT licensed extensions
- Extensions in GitHub version control
- AfterImportPage extensions
- ApprovedRevsFileRevisionApproved extensions
- ApprovedRevsFileRevisionUnapproved extensions
- ApprovedRevsRevisionApproved extensions
- ApprovedRevsRevisionUnapproved extensions
- ArticleMergeComplete extensions
- ArticleProtectComplete extensions
- ArticleRevisionVisibilitySet extensions
- ArticleUndelete extensions
- BlockIpComplete extensions
- FileDeleteComplete extensions
- FileUndeleteComplete extensions
- LocalUserCreated extensions
- PageDeleteComplete extensions
- PageMoveComplete extensions
- PageSaveComplete extensions
- RenameUserComplete extensions
- UnblockUserComplete extensions
- UploadComplete extensions
- UserGroupsChanged extensions
- All extensions
- Discord extensions