5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-09 16:50:30 +00:00
matterbridge/bridge/discord
Alexandre GV ac4aee39e3
discord: Add AllowMention to restrict allowed mentions (#1462)
* 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
2021-05-13 22:39:25 +02:00
..
transmitter Use valid transmitter Log default (discord) (#1402) 2021-02-15 22:20:08 +01:00
discord.go discord: Add AllowMention to restrict allowed mentions (#1462) 2021-05-13 22:39:25 +02:00
handlers_test.go Fix #1049: missing space before embeds (discord) (#1124) 2020-05-07 00:19:48 +02:00
handlers.go Reject cross-channel message references (discord) (#1345) 2020-12-31 16:21:37 +00:00
helpers_test.go Split Discord bridge in multiple files (#632) 2018-12-07 23:36:01 +01:00
helpers.go discord: Add AllowMention to restrict allowed mentions (#1462) 2021-05-13 22:39:25 +02:00
webhook.go discord: Add AllowMention to restrict allowed mentions (#1462) 2021-05-13 22:39:25 +02:00