I'd like to get matterbridge to send messages with avatars and nicknames in Discord, so that it looks nicer than this:

I see https://github.com/42wim/matterbridge/wiki/Section-Discord-(basic)#usernameavatar-spoofing but this is confusing me. I've tried setting up a webhook and putting it in a few places in the config file, but no changes.
I have most of the channels set up using a [[samechannelgateway]], which ideally I'd like to keep, but it looks like maybe #674 needs to be solved first? Here's the relevant part of my config file:
[[gateway]]
name="testing"
enable=true
[[gateway.inout]]
account="slack.classicpress"
channel="testing"
[[gateway.inout]]
account="discord.classicpress"
channel="testing"
WebhookURL="https://discordapp.com/api/webhooks/thing1/thing2"
Edit: I've also tried putting the WebhookURL under the main [[gateway]] section, it didn't work that way either.
I am also not sure what a channel-specific webhook for each channel has to do with username/avatar spoofing, or why that's a requirement. Can someone explain that part?
Hopefully we can feed the answers to these questions back into better documentation on that Discord page.
Heyoooo! For the troubleshooting, can you share your logs with -debug flag set, during connect (and posting a message, if you can get that far)?
I am also not sure what a channel-specific webhook for each channel has to do with username/avatar spoofing, or why that's a requirement. Can someone explain that part?
Creating a message via a user's api token only lets the gateway post with the user/avatar that generated the token. But executing a webhook can set any old username/avatar_url.
Hopefully we can feed the answers to these questions back into better documentation on that Discord page.
I LIKE THE WAY YOU THINK. Not to pawn off the task, but if the above explanation makes sense, might you be down to update the wiki page with whatever would make sense to nylen-from-the-past?
Solved - I was missing the [gateway.inout.options] block.
Thanks for the additional info! I've updated https://github.com/42wim/matterbridge/wiki/Section-Discord-(basic)#usernameavatar-spoofing with what I learned here, so I think this issue is done.
The problem is actually that the documentation is wrong :)
@qaisjp the webhook url needs to be in the guild specific [discord] section if the bot has permissions to edit webhooks, not the [[gateway]].
Pls can you fix the docs @poVoq
@qaisjp ok I think that is clearer now:
https://github.com/42wim/matterbridge/wiki/Section-Discord-(basic)#usernameavatar-spoofing
yay
Most helpful comment
@qaisjp ok I think that is clearer now:
https://github.com/42wim/matterbridge/wiki/Section-Discord-(basic)#usernameavatar-spoofing