|
2 | 2 |
|
3 | 3 | ## What? |
4 | 4 |
|
5 | | -An Matrix<->Discord bridge for receiving and sending Discord messages with Matrix-client. |
| 5 | +A Matrix<->Discord bridge for receiving and sending Discord messages with Matrix-client. |
6 | 6 |
|
7 | 7 | ## Set up |
8 | 8 |
|
9 | | -- Get Power Level 50 in Matrix room (not sure why bridge wants that..) |
10 | | -- You also need to be admin at Discord channel or have a admin to help you |
11 | | -- Get a invite link from one of Hacklab.fi admins at #matrix:hacklab.fi. Don't spread the link as it can be used to invite the bot to any Discord room. |
12 | | -- Invite the bridge to your Discord server using the link. The bridge will need all the permissions selected. |
13 | | -- Invite `@_discord_bot:hacklab.fi` to your Matrix room. The bot should have permissions to invite users. |
14 | | -- Open the text channel you'd like to bridge in the Discord web application. |
15 | | -- In the address bar there should be a URL like `https://discordapp.com/channels/ServerID/ChannelID` |
16 | | -- Use that as a reference to say in your Matrix room `!discord bridge ServerID ChannelID` |
17 | | -- The bridge will ask for confirmation on Discord side, and after approved your room should be bridged to Discord. |
| 9 | +Channel refers to the Discord channel to be bridged. |
| 10 | + |
| 11 | +ChannelID is a string of numbers used internally to identify the Channel, such as `1234567890123456789`. |
| 12 | + |
| 13 | +Server refers to the Discord server which contains Channel. |
| 14 | + |
| 15 | +Room refers to the Matrix room to be bridged. |
| 16 | + |
| 17 | +1. Get Power Level 50 (Moderator) in the Room |
| 18 | +2. Inviting the Discord bot requires "application (bot) management" permissions in the Channel's Server |
| 19 | +3. Get a Discord bot invite link from one of Hacklab.fi admins at `#matrix:hacklab.fi`. Keep the link private as it can be used to invite the bot to any Server |
| 20 | +4. Invite the Discord bot to your Server using the link. The bridge will need all the preselected permissions |
| 21 | +5. Invite `@discordbot:hacklab.fi` to your Room. The bot should have permissions to invite users |
| 22 | +6. Obtain the ChannelID of the Channel with any method such as: |
| 23 | + - Any client: |
| 24 | + - Open the Channel |
| 25 | + - Select any message there and "Copy Message Link" |
| 26 | + - Your clipboard should now contain `https://discordapp.com/channels/ServerID/ChannelID/MessageID` |
| 27 | + - Any client: |
| 28 | + - Right click the Channel in the channel list and "Copy Channel ID" |
| 29 | + - Requires enabling Developer Mode (Settings -> Advanced -> Developer Mode) |
| 30 | + - Web Browser: |
| 31 | + - Open the Channel in the Discord web application |
| 32 | + - In the address bar there should be a URL like `https://discordapp.com/channels/ServerID/ChannelID` |
| 33 | +7. Use ChannelID obtained above as a reference to say in your Room `!discord bridge ChannelID` |
| 34 | +8. To bridge Matrix messages to Discord using webhooks say `!discord set-relay --create Matrix` |
| 35 | +9. The bridge may ask for confirmation on Discord side (deprecated?), after an approval your Channel and Room should be bridged Matrix<->Discord |
0 commit comments