Extension:DiscordRCFeed

DiscordRCFeed extension provides the Discord versions of FormattedRCFeed and RCFeedFormatter subclasses which can be used in. Basically, this is a fork of DiscordNotifications, but heavily modified.

Requirements

 * Setting a feed requires the sockets PHP extension. If the extension is not enabled, actions like edits, moves, etc may work, but the action may not get logged in recent changes at all. See for details.
 * Apache should have NE (NoEscape) flag on to prevent issues in URLs. By default you should have this enabled.

Additional options
You can set the element that has the following key for the :

Filtering Notifications
is a list that contains namespaces should be omitted.

The others are similar.

The next example shows how to disable the new user notification.
 * can contain,  ,   and  . (see more) Note that   is always omitted by the same cause of T127360.
 * can contain, , ,  ,  ...
 * can contain, ,  ... (see more)
 * can contain, ,  ... (see more)

Controlling Page Tools and User Tools
Page tools and user tools are tools shown after page or user link.

The full default values can be found in includes/Constants.php.

Webhook Request Overriding
is an associative array which used to override the post data of the webhook request. You can set username or avatar using this instead of setting in Discord. Visit https://discord.com/developers/docs/resources/webhook#execute-webhook-jsonform-params for all available parameters.



Next example shows how to reuse your icon set in $wgLogos.

Registering Multiple Webhooks
You can register multiple webhooks with separate settings. Only the important part is that all keys of the feeds you want to must start with, for example,  ,  ,   and   are valid keys.

Splitting changes on talk pages from others
Note that this is not suitable for wiki where Structured Discussions is enabled as a page on  is not considered a talk page by. In that case, filtering by namespace is only the solution: