Extension:DiscordRCFeed

DiscordRCFeed extension provides the Discord versions of FormattedRCFeed and RCFeedFormatter 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 following keys of the associative array:


 * or  whether to skip bot edits. Same as described on Manual:$wgRCFeeds.
 * or  whether to skip anon edits. Same as described on Manual:$wgRCFeeds.
 * : or   whether to skip registered users. Same as described on Manual:$wgRCFeeds.
 * or  whether to skip minor edits. Same as described on Manual:$wgRCFeeds.
 * or  whether to skip patrolled edits. Same as described on Manual:$wgRCFeeds.
 * or . Defaults to.
 * ,,   and
 * Lists for filtering notifications. See below for details. Defaults to.
 * and
 * Associative arrays for Controlling the display of tools shown with notification. See below for details. Defaults to.
 * An array used to override the post data of the webhook request. See below for details. Defaults to.
 * or  whether to skip patrolled edits. Same as described on Manual:$wgRCFeeds.
 * or . Defaults to.
 * ,,   and
 * Lists for filtering notifications. See below for details. Defaults to.
 * and
 * Associative arrays for Controlling the display of tools shown with notification. See below for details. Defaults to.
 * An array used to override the post data of the webhook request. See below for details. Defaults to.
 * Lists for filtering notifications. See below for details. Defaults to.
 * and
 * Associative arrays for Controlling the display of tools shown with notification. See below for details. Defaults to.
 * An array used to override the post data of the webhook request. See below for details. Defaults to.
 * An array used to override the post data of the webhook request. See below for details. Defaults to.
 * An array used to override the post data of the webhook request. See below for details. Defaults to.
 * An array used to override the post data of the webhook request. See below for details. Defaults to.

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

,  and   are similar.

The next example shows disabling new user notifications.
 * can contain,  ,   and  . (Note that   is always omitted by the same cause of T127360)
 * can contain, , ,  ,  ...
 * can contain, ,  ...

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

Default values are defined in includes/Constants.php.

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

Registering Multiple Webhooks
You can register multiple webhooks with separate settings. The key should start with .