Skip to content

Commit 17e52b1

Browse files
authored
Merge pull request #38 from drjaska/master
Improve Matrix>Discord documentation
2 parents 015b55b + 2194c24 commit 17e52b1

File tree

1 file changed

+28
-10
lines changed

1 file changed

+28
-10
lines changed

src/matrix/discord.md

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,34 @@
22

33
## What?
44

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.
66

77
## Set up
88

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

Comments
 (0)