User:Lens0021/Sandbox

= Extension:DiscordRCFeed/v0.1.3 =

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:

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

,  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 where all keys of the feeds you added start with.

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: