Repository navigation
Discord
Status: Implemented
Last Updated: 2026-11-13
Audience: Users
Last verified: 2026-11-13 against b1688a8de
Code: src/Martlet.Discord, src/Martlet.Desktop/DiscordService.cs, src/Martlet.Desktop/DiscordReplyEngine.cs
Martlet can be on Discord in two ways:
- Martlet's own bot chats in direct messages, channels and threads, joins server voice calls and calls you in private.
- Martlet in your Discord calls joins the calls you are already in, through your PC's sound. There she can also show up on camera as her character, with a background.
Open Companion › Discord. Its first line always says what to do next.
Martlet uses a bot account. She never logs in as a person, because that breaks Discord's rules and gets accounts banned. So:
- A bot can't have friends. The Friends and calls card is her friends list.
- A bot can't start or join DM calls or group DM calls. She calls you in a private voice channel in her home server instead.
- A bot can't send camera video. Her bot's picture follows the character. To show her live, use Martlet in your Discord calls (below).
- In a group DM, the bot answers only
/martlet. It can't read the group's messages.
- Press Open the Developer Portal and choose New Application. Name it after your character.
- On Bot, press Reset Token and copy the token. In Martlet, paste it into Bot token and press Save and connect.
- On Bot, under Privileged Gateway Intents, turn on Message Content Intent. Then press Reconnect in Martlet, if it asks.
- On Installation, allow Guild Install and User Install.
- In Martlet, use Add to a server for each server. Use Add to home
server for a small server of your own, where she makes private call
channels. Use Add to my account to use
/martletin any DM or group DM. - Under People on Discord, DM the bot and choose That's me, or paste your user ID. Choose the Home server there too.
Martlet keeps the bot token in Windows Credential Manager, not in the settings file. It shares the token as a secret with your paired computers. Save and connect first checks that the text looks like a bot token. If it doesn't, go to the Bot page in the Developer Portal, press Reset Token and copy the whole token. Forget the bot disconnects and removes the token, but keeps your chat modes and people. If the token may have leaked, reset it in the Developer Portal too.
Turn off Connect to Discord to stop Martlet from connecting. Your bot token, chat modes and people are kept.
Martlet must know which Discord user is you:
- DM Martlet's bot, or write where the bot can see it.
- Under People on Discord, pick yourself and choose That's me.
Or paste your user ID:
- In Discord, open Settings › Advanced and turn on Developer Mode.
- Right-click your name and choose Copy User ID.
- Paste the ID in Martlet. It is a long number.
Where Martlet chats has a mode for Server channels, Direct messages and Voice channels:
- Off: never.
-
Only when mentioned: when someone mentions her, replies to her, says her
name or uses
/martlet. - Sometimes: she joins in when she thinks she should. She waits a while after her last message and speaks up on her own only a few times an hour in one place.
- Always: she answers everything.
At first, server channels are Off, direct messages are Always and voice
channels are Sometimes. Choose a mode for server channels so she chats there.
Under Channels with their own mode, choose a channel and a mode and press
Add rule. In a server, /chatmode changes the mode of the channel you are
in. Only you or someone with the Manage Channels permission can use it.
Only you and the people Martlet knows may DM her. Turn on Anyone may DM Martlet to change that.
| Command | What it does |
|---|---|
/martlet message:<text> |
Ask Martlet something: in a server, in her DMs, or (with Add to my account) in any DM or group DM |
/chatmode |
Change this channel's mode (servers only) |
/join, /leave
|
Join or leave your voice channel (servers only) |
/call person:<name> |
Call one of her friends (you only) |
/friend ask, /friend remove
|
Ask to be her friend, or leave her friends list |
/selfie |
Post a picture of the character as she looks now |
-
/joinbrings her into your voice channel. She also joins when someone drags her in. She leaves after 2 minutes alone. - She hears each person by name. She answers when someone says her name, or when you are alone with her. In Sometimes, she adds a comment now and then.
- When someone talks over her, she stops.
- She speaks with a voice engine on one of your computers. A cloud voice can't speak in Discord calls. See Voices.
- Other people's speech becomes text on your own computers (Parakeet), never in the cloud.
Anyone can ask to be her friend with /friend ask. You choose Approve or
Decline on the Friends and calls card, or Add someone by ID.
To call a friend, press Call, use /call, or tell Martlet: "Call Ana." She
makes a private voice channel in her home server, DMs your friend a link and
joins. The channel goes away after the call. Turn off Martlet may call them
for someone she should never call.
Her Discord status follows what she does, such as On a call with Ana or Watching along.
This brings Martlet into calls on your own Discord account: DM calls, group calls and server calls. Martlet never controls Discord: no clicks, no typing and no use of your account. It works while always listening runs.
- Turn on Martlet joins my Discord calls.
- Under Hear, keep The Discord app only (recommended).
- To name the speakers, turn on See who is talking in the Discord window (on this PC only), and type your Discord display name.
- To let her speak into the call, install a virtual audio cable yourself, such as VB-Audio Virtual Cable. Choose CABLE Input for Martlet's voice in the call. In Discord, choose CABLE Output as your input device. Your own microphone must reach the cable too, for example through Voicemeeter.
- Press Check this PC.
What she hears from the call goes to Thinking as the call's words. It never counts as you, and it never goes into memory or voice recognition. She answers when someone says her name, and otherwise only now and then.
Discord hears only your input device, so Martlet speaks through a virtual audio cable:
- Install a virtual audio cable yourself, for example VB-Audio Virtual Cable.
- In Martlet, choose its CABLE Input for Martlet's voice in the call.
- In Discord, open User Settings › Voice & Video and choose CABLE Output as your input device.
- Make your own voice reach the cable too. Speak through Martlet's microphone listening, or mix your microphone into the cable with Voicemeeter or the Windows Listen to this device setting.
She can be your webcam in the call:
- Press Open camera view. The character opens in its own window, Martlet camera.
- Choose a background: Green, Blue, Magenta, Black or a picture. For a picture, use Choose a picture file... or A picture from Creations..., or Draw it to have her draw one (Picture making).
- Frame her: drag her, zoom with the mouse wheel, or use Bigger, Smaller, Left, Right, Up, Down and Reset framing. In the camera window, the arrow keys nudge her, Home resets the framing and Shift+drag moves the window. OBS captures her as framed.
- In OBS (you install it), add a Window Capture of Martlet camera. For a color background, add a Chroma Key filter.
- In OBS, press Start Virtual Camera. In Discord, choose OBS Virtual Camera as your camera.
Ask her for a new background during the call, and she changes it herself. When a paid picture provider draws the background, Martlet asks first, because it may cost money. Martlet installs no camera driver.
- Each answered message is kept in Conversations, one conversation for each channel or DM. Delete or edit it there, and Martlet deletes or edits it in Discord too while the bot is online. This works for her own messages, and for other people's messages only in a server where she can manage messages.
- Discord replies never use tools, Home Assistant or your earlier conversations. Remembered facts go only into your own DMs with her.
- When Discord shares a local model with your PC conversation, Martlet gives the PC conversation priority and can stop a Discord request.
Martlet: download · repository · changelog · issues
These pages come from docs/wiki in the repository. To suggest a change, open an issue or a pull request there.
- Home
- Accounts and households
- Accounts and Household
- Android phones and tablets: what it takes, and the plan
- Martlet's API for other apps and scripts
- App Guides
- App Settings and Updates
- App guides: game and app knowledge from the web
- Architecture
- Bounded PCM playback
- Audio dependency inventory and notices
- Avatar guide: Live2D, VRM and speech animation
- V01a explicit microphone capture
- Chatterbox voice engines
- Cleaning up disk space
- One Martlet on all your computers
- Companion controls and behavior requirements
- Components, jobs and placement (design)
- Live conversation
- Creations
- Decision map: which file owns each decision
- Deep research: web search and long research jobs
- The desktop app: updates, notification area, exiting and appearance
- Linux and macOS desktop companion: research, decision and plan
- Developer Guide
- Dia voice engine
- Diagnostics
- Discord
- Architecture and provider contracts
- Discord
- Memory (P03a/P03b/P03c)
- Singing
- Desktop troubleshooting and local support
- Recognizing people by voice, and Parakeet
- Echo cancellation
- ElevenLabs voice: your cloned voice with tones
- F5 worker and reference-voice foundation
- FAQ
- First Steps
- Game state plan: implementation history
- Glossary: one name for each concept
- GPT-SoVITS voice
- Hosted Thinking: cloud models when Thinking can't run on this PC
- Installation and support
- Installing Martlet
- iOS and iPadOS: what it takes, and the plan
- Repository instructions for coding agents
- Repository knowledge base
- Knowledge base maintenance
- GitHub Wiki mirror
- Linux and Mac
- Listening and Voice ID
- Local model apps
- Lorebooks
- macOS: what it takes, and the plan
- Martlet MCP Server
- MCP in Martlet
- MCP: The app's window
- MCP: Apps, home and memory
- MCP: Characters
- MCP: Diagnostics and logs
- MCP: Computers, network and accounts
- MCP: Other
- MCP: Tool permissions
- MCP pages
- MCP: Server and protocol internals
- MCP: Settings
- MCP: Start here
- MCP: Thinking and models
- MCP: Voice and listening
- Memory
- Messaging apps
- Model catalog: sources, conflicts and design
- Motion host role
- Multiple Computers
- Your Martlet network
- OCR host role
- Share your language models: the OpenAI-compatible endpoint
- Packaging
- Perception worker contracts
- Personality and Characters
- Picture making
- Pictures and Creations
- Picture making host role
- Platforms: what each device can do
- Prerequisites: what Martlet bundles, installs for you, or needs from you
- Privacy and Safety
- Reading the text on your screen
- Wiki source
- Recommendation design: ask three questions, plan for three situations
- Recommended setups: one machine to unlimited budget
- Releasing
- Repository Layout
- Research and provenance ledger
- Resource footprints
- Roadmap
- Watch my screen: screen-aware commentary
- Search engine
- Image and audio models: who sees, who hears, who answers
- Setting Up a Host
- Setup, Windows credentials and local audio
- Sharing with Friends
- Singing
- Smart Home
- Smart home and cameras
- Source Projects
- Talking to Martlet
- Telegram and WhatsApp
- The Character
- Thinking
- Tools and MCP
- Troubleshooting
- Martlet desktop UI design
- User stories and target flows
- Voice activity detection
- Validating changes
- Validation and Testing
- Vision
- Voice latency: from you stopping talking to Martlet's voice
- Voice recognition host role
- Multi-engine voice setup and comparison
- Voices
- The welcome wizard
- XTTS-v2 voice engine