summaryrefslogtreecommitdiffstats
path: root/bridge/discord/webhook.go
Commit message (Collapse)AuthorAgeFilesLines
* discord: Add AllowMention to restrict allowed mentions (#1462)Alexandre GV2021-05-131-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | * Add DisablePingEveryoneHere/DisablePingRoles/DisablePingUsers keys to config * Add basic AllowedMentions behavior to discord webhooks * Initialize b.AllowedMentions on Discord Bridger init * Call b.getAllowedMentions on each webhook to allow config hot reloading * Add AllowedMentions on all Discord webhooks/messages * Add DisablePingEveryoneHere/DisablePingRoles/DisablePingUsers to matterbridge.toml.sample * Change 'Disable' for 'Allow' and revert logic in Discord AllowedMentions * Update Discord AllowedMentions in matterbridge.toml.sample * Fix typo in DisableWebPagePreview * Replace 'AllowPingEveryoneHere' with 'AllowPingEveryone' * Replace 3 AllowPingEveryone/Roles/Users bools with an array * Fix typo
* Fix 'webook' typo in discord/webhook.go (#1344)Qais Patankar2020-12-311-1/+1
|
* Split Bdiscord.Send into handleEventWebhook and handleEventBotUser (discord)Qais Patankar2020-12-131-0/+45
|
* Move webhook specific logic to its own file (discord)Qais Patankar2020-12-131-0/+102