Discord Bridge
Setup
First, you need to register a Discord application for your bridge. Discord applications can be registered and managed in the Discord Developer Portal.
New Application button in the upper right corner.
Give it a name (visible when authorizing the bridge), read Discord's Terms and click Create.
Note the Client ID. It's required for the bridge.
Navigate to the Bot tab. The navigation can be found on the left.
Click Add Bot. You may also need to click Yes, do it! to confirm your action.
Note the Bot Token. It's required for the bridge.
Connect Discord server(s)
Usage
Bridge a room
https://discord.com/channels/GUILD_ID/CHANNEL_ID.
In a Matrix room you want to bridge, invite @discord:example.ems.host (replace the domain with the one of your homeserver).
Post the message !discord bridge GUILD_ID CHANNEL_ID after replacing the two placeholders.
A privileged Discord user will need to approve the bridge request by responding with !matrix approve
Messages from Discord are now bridged to Matrix and vice versa.
Unbridge
To unbridge a room post !discord unbridge in the Matrix room.