From fcfacfa210d3566a9540fed5a8ae91343a786d21 Mon Sep 17 00:00:00 2001 From: poVoq Date: Sat, 11 Apr 2020 00:29:23 +0000 Subject: [PATCH] Fix Username/avatar spoofing --- Section-Discord-(basic).md | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/Section-Discord-(basic).md b/Section-Discord-(basic).md index 35afbb5..5a79c9f 100644 --- a/Section-Discord-(basic).md +++ b/Section-Discord-(basic).md @@ -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}" ```