Browsing tree for branch master, showing 3 entries
| / | docs | protocols | discord |
| Type | File | Last Commit | Author | Commit Date (UTC) | Size |
|---|---|---|---|---|---|
| txt | README.md | selfhoster1312 | 13:03, Sep 7 2025 | 4.82 KiB | |
| txt | account.md | Joseph Crowell | 00:14, Dec 12 2025 | 5.22 KiB | |
| txt | settings.md | Wohlstand | 23:53, Dec 19 2025 | 3.29 KiB |
| README.md |
| README.md |
Discord
Configuration
Basic configuration example:
FAQHow to create a discord bot token for matterbridge?See account.md. Username/avatar spoofingCreating a message via a user’s API token (the basic configuration above) only lets Matterbridge post with the user/avatar that generated the token. But executing a webhook can set any username and avatar URL. If you grant the bot the “Manage Webhooks” permission, it will automatically load and create webhooks in every bridged channel. You can even grant that permission on specific channels, if you don’t want to give it global permission.
Then, just provide
If you would like to create webhooks yourself, instead of letting the bot manage them, follow these instructions.1. On Discord, go to Server Settings, then Integrations, then Webhooks -> "Create Webhook" 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` Specify a webhook per channel: ```toml [[gateway]] name="testing" enable=true [[gateway.inout]] account="slack.myworkspace" channel="testing" [[gateway.inout]] account="discord.myserver" channel="testing" # Specify options for this gateway link [gateway.inout.options] WebhookURL="https://discordapp.com/api/webhooks/thing1/thing2" ```Guessing avatars when they are missing
Avatars from source platforms will usually be shown in Discord messages. However, sometimes users can’t (or don’t) set their avatar on the source platform, (e.g for messages sent from IRC to Discord), so messages from those may use a default avatar. The Note that it won’t try to “guess” avatars when:
As shown below, you can either provide the bridge platform name (
Seeing IDs instead of usernames on the other bridges?If you want roles/groups mentions to be shown with names instead of ID, you’ll need to give your bot the “Manage Roles” permission. Can I join the bot to a server I don’t own?You need permissions on the server to be able to join the bot, if you’re allowed to here’s how you do it: Click on the bot here: https://discordapp.com/developers/applications/me Click the “Generate OAUTH” button, copy the URL and paste it into your address bar, open the page and you’ll see the drop down menu for adding the bot to any server you have permissions on. Messages not being edited, but a new message with (edit) appears?Message editing is not supported by discord using webhooks. If you want message editing, disable webhooks and use token only Error obtaining server members: HTTP 403 ForbiddenDiscord changed its API: See https://github.com/42wim/matterbridge/wiki/Discord-bot-setup#privileged-gateway-intents for a fix Do I need to allow inbound connections for webhooks to workNo. Replies show the botname instead of the username/avatarThis is a discord limitation: https://github.com/42wim/matterbridge/issues/1558#issuecomment-1030713994
You can do a workaround by setting |