Repository navigation
Haven 4.0.0
Haven can talk to Discord now.
This is a big release and the version reflects that. There are no migration steps and nothing to reconfigure: the database changes only add to what is already there, and the Discord bridge arrives switched off, so a server that updates keeps working the way it did. It does touch shared ground, including the path every message takes on its way out, so take a backup before you update (Settings, Server Admin Settings, Backup) the way you would with any large release. Ferry in particular is brand new and has not been through a real deployment yet, so please report anything that looks off.
Ferry, the Discord bridge
Pair a Haven channel with a Discord channel and messages cross in both directions. A relayed message shows up on Discord under the Haven author's own name and picture rather than as one anonymous bot, and Discord messages arrive in Haven with the sender's name and avatar.
Each pairing chooses its own settings:
- Direction: two-way, Haven to Discord only, or Discord to Haven only
- Outgoing: mirror every message in the channel, or only the ones a member deliberately addresses with
=>, which has autocomplete for picking a destination
There is also an opt-in one-way Discord DM, off by default, since a bot cannot impersonate in a DM and replies stay on the Discord side.
Set it up in Settings, Server Admin Settings, Ferry. It walks you through creating the Discord bot, which takes a couple of minutes and is free. Each server needs its own bot: Discord caps unverified applications at 100 servers, so there is no way to ship a shared one. The bridge runs inside Haven, so nothing new has to be exposed to the internet.
A few things worth knowing before you switch it on:
- Sending is gated behind a new Send to Discord role permission, which starts off for everyone. Nobody can reach another server's Discord until you say so
- Pings are off by default, and
@everyonestays blocked even when you turn them on - Set
PUBLIC_URLin your.envif you want Haven avatars and images to appear on the Discord side - Custom emotes and @mentions cross in both directions. A mention only becomes a real ping when exactly one person in that Discord server answers to the name
Also new
- Search is a panel, not a takeover. Results open over the member list the way Discord does it. The panel survives channel switches and closes only when you close it. Public channels share one, each DM keeps its own.
- A secure voice gateway for bots (#5531). Bots can join voice with access that is scoped and granted deliberately rather than assumed.
- A RepoCloud deploy button (#5532). One more hosting route for people who would rather not run the server themselves.
Fixed
- The welcome screen no longer hides behind the server banner. On the no-channel-selected view "Welcome to Haven" was rendering underneath the banner image, and had been since banners shipped
- Steam and Spotify linking works for accounts that have changed their password. It failed with "Link session expired" for anyone who had changed their password, had an admin reset it, or used a recovery code. New accounts were unaffected, which is why it looked random
- Channel code rotation leaves clients in a working state (#5521, #5525), and voice recovers properly afterwards
- The docked soundboard handle points the right way and sits correctly on mobile
- Invite refinements (#5524): an invite whose uses are spent now reads as used instead of sitting there saying Active, and the expiry dropdown fits its longest option
Changed
- Admin settings are grouped. The admin sidebar was twenty entries in one flat run while the user side already had headings. It is now Server, People & Access, Content, Integrations and Maintenance, with related entries together. Nothing was removed
- Admins can clear an integration key, not just overwrite it (#5529)
- Added josolanes to the donor credits
Thanks
@Raidenphantom built his own Haven to Discord bridge before this existed and wrote up everything he hit along the way. Two of those were real gaps in this one: a third-party bot editing an image preview into an existing message bypassing the filters, and custom emotes arriving as raw <:name:id> text. Both are handled here because of that writeup.
Thanks also to @birdcrazy, @Bo0sted, @bernardokcosta, @josolanes and @KentuckyFriedBlyat.
Full changelog: https://github.com/ancsemi/Haven/blob/main/CHANGELOG.md