mirror of
https://github.com/42wim/matterbridge.git
synced 2025-05-30 11:27:26 +02:00
Fix Username/avatar spoofing
parent
f2d291e7fc
commit
fcfacfa210
@ -141,7 +141,7 @@ SyncTopic=false
|
||||
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`
|
||||
|
||||
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
|
||||
[[gateway]]
|
||||
@ -157,20 +157,15 @@ channel="testing"
|
||||
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
|
||||
[[gateway]]
|
||||
name="testing"
|
||||
enable=true
|
||||
WebhookURL="https://discordapp.com/api/webhooks/thing1/thing2"
|
||||
|
||||
[[gateway.inout]]
|
||||
account="slack.myworkspace"
|
||||
channel="testing"
|
||||
[[gateway.inout]]
|
||||
account="discord.myserver"
|
||||
channel="testing"
|
||||
[discord]
|
||||
[discord.mydiscord]
|
||||
Token="YOUR_TOKEN_HERE"
|
||||
Server="name or uid of guild" # picked from guilds the bot is connected to
|
||||
WebhookURL="https://discordapp.com/api/webhooks/thing1/thing2"
|
||||
RemoteNickFormat="{NICK} via {PROTOCOL}"
|
||||
```
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user