Fix Username/avatar spoofing

poVoq 2020-04-11 00:29:23 +00:00
parent f2d291e7fc
commit fcfacfa210

@ -141,7 +141,7 @@ SyncTopic=false
2. Specify the name and channel, and copy the resulting webhook URL 2. Specify the name and channel, and copy the resulting webhook URL
3. Paste in your gateway as `WebhookURL="https://discordapp.com/api/webhooks/529689699999999999/Da-H4RRY_P0-kjdsknkfgfjghf` 3. Paste in your gateway as `WebhookURL="https://discordapp.com/api/webhooks/529689699999999999/Da-H4RRY_P0-kjdsknkfgfjghf`
If matterbridge does not have permissions to modify webhooks, you will need a webhook per channel: If your Discord bot has a role that **does not** have permissions to modify webhooks, you will need a webhook per channel:
```toml ```toml
[[gateway]] [[gateway]]
@ -157,20 +157,15 @@ channel="testing"
WebhookURL="https://discordapp.com/api/webhooks/thing1/thing2" WebhookURL="https://discordapp.com/api/webhooks/thing1/thing2"
``` ```
If matterbridge **does** have permissions to modify webhooks, you can use one webhook for the gateway: If your Discord bot has a role that **does** have permissions to modify webhooks, you can use one webhook (configured for any channel on the same Discord server) for all channels on that Server/Guild:
```toml ```toml
[[gateway]] [discord]
name="testing" [discord.mydiscord]
enable=true Token="YOUR_TOKEN_HERE"
WebhookURL="https://discordapp.com/api/webhooks/thing1/thing2" Server="name or uid of guild" # picked from guilds the bot is connected to
WebhookURL="https://discordapp.com/api/webhooks/thing1/thing2"
[[gateway.inout]] RemoteNickFormat="{NICK} via {PROTOCOL}"
account="slack.myworkspace"
channel="testing"
[[gateway.inout]]
account="discord.myserver"
channel="testing"
``` ```