# Add Channel Discord Embed

> Switch Discord channel to Embed rich display for tool notifications. Triggers on "add discord embed", "enable discord embed", "discord embed", "rich discord", "discord rich display".

- Skill: `yukihirop/add-channel-discord-embed` (Agent Skill)
- Install (CLI): `npx skillmds@latest add yukihirop/add-channel-discord-embed`
- Raw SKILL.md: https://api.skillmd.com/api/skills/yukihirop/add-channel-discord-embed/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: yukihirop (https://skillmd.com/u/yukihirop)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/yukihirop/add-channel-discord-embed

---


# Switch to Discord Embed Display

## Step 0: Language selection

Before proceeding with any other steps in this skill, ask the user which language to continue in using `AskUserQuestion`. Keep this initial prompt in English because the preferred language is not yet known.

- Question: `Which language should I continue in?`
- Options: `English`, `日本語 (Japanese)`

Use the selected language for all subsequent user-facing messages and for every further `AskUserQuestion` prompt in this skill. Do not translate code, file paths, shell commands, or file contents.

Switch from plain text Discord notifications to Embed rich display. Tool notifications and thinking indicators will be shown as colored Discord Embeds instead of plain text.

**Note:** Embed is the **default** that ships with `deploy/templates/host/entry.template.ts`. Use this skill only if a previous customization downgraded the import (e.g. to `@nagi/channel-discord`) and you want to restore the default rich display.

## Prerequisites

Discord must already be configured. If not, set up the Discord bot first.

## Steps

### 1. Check current state

Read `deploy/{ASSISTANT_NAME}/host/entry.ts` and check which Discord import is used:

```typescript
// Plain text
const { createDiscordFactory } = await import("@nagi/channel-discord");

// Embed (rich display — default)
const { createDiscordFactory } = await import("@nagi/channel-discord-embed");
```

If already using `@nagi/channel-discord-embed`, tell the user it's already enabled (this is the shipped default).

### 2. Switch import

In `deploy/{ASSISTANT_NAME}/host/entry.ts`, replace the Discord import:

```typescript
// Before
const { createDiscordFactory } = await import("@nagi/channel-discord");

// After
const { createDiscordFactory } = await import("@nagi/channel-discord-embed");
```

No other changes needed — the factory function, config, and registration are identical.

### 3. Verify

```bash
pnpm exec tsc --noEmit
```

### 4. Restart nagi

```bash
launchctl kickstart -k gui/$(id -u)/com.nagi.{ASSISTANT_NAME}
sleep 2
launchctl list | grep com.nagi.{ASSISTANT_NAME}
```

### 5. Test

Tell user:

> Send a message in Discord that triggers tool use.
> Tool notifications should now appear as colored Embeds instead of plain text.

## Reverting to plain text

To switch back, reverse the import in `deploy/{ASSISTANT_NAME}/host/entry.ts`:

```typescript
const { createDiscordFactory } = await import("@nagi/channel-discord");
```

Then restart nagi.

