Create the application
- Open the Discord Developer Portal.
- Click New Application.
- Name it
Waterbrother. - Copy the
Application IDfrom General Information.
Use Discord for DM-first control first. Create the bot, enable Message Content intent, save the token and application id in Waterbrother config, then run the Discord Gateway loop locally through the normal TUI-managed startup path.
Waterbrother.Application ID from General Information.Message Content Intent.Bot Token.export DISCORD_BOT_TOKEN=your_token_here export DISCORD_APPLICATION_ID=your_application_id_here
Store the Discord token and application id directly in Waterbrother config, the same way Telegram setup works in the TUI onboarding flow.
waterbrother config set-json channels '{"discord":{"enabled":true,"botToken":"YOUR_BOT_TOKEN","applicationId":"YOUR_APP_ID","pairingMode":"manual","allowedUserIds":[]}}'
Use OAuth2 URL Generator in the Discord portal.
botView Channels, Send Messages, Read Message History, Create Public Threads, Create Private Threads, Send Messages in Threadswaterbrother discord status waterbrother discord sync-commands waterbrother discord run
Waterbrother now syncs native Discord slash commands, grouped subcommands, and autocomplete-backed targets, then handles DMs, mentions, text commands, and slash-command execution through the live TUI bridge. If you want commands to appear immediately in one server, set channels.discord.guildId so sync stays guild-scoped instead of falling back to slower global registration.