Claude-skill-registry discord
Post announcements and messages to Discord channels. Use when sharing updates, releases, or team communications.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/discord-civitai-civitai" ~/.claude/skills/majiayu000-claude-skill-registry-discord && rm -rf "$T"
manifest:
skills/data/discord-civitai-civitai/SKILL.mdsource content
Discord
Post messages and announcements to Discord channels via the REST API. Navigate channels by name, send formatted messages with embeds, manage reactions, threads, and more.
Setup
Run the setup script to authenticate via Discord:
node .claude/skills/discord/setup.mjs https://discord-proxy.civitai.com
This will:
- Open your browser for Discord authentication
- Verify you're in the team server
- Save your personal API token to
.env
Admin Only: Direct Bot Token
If you manage the bot directly and need to bypass the proxy:
- Copy
to.env.example
in this skill directory.env - Uncomment and set
DISCORD_BOT_TOKEN - Optionally set
for auto-detectionDISCORD_GUILD
cp .claude/skills/discord/.env.example .claude/skills/discord/.env
Running Commands
node .claude/skills/discord/query.mjs <command> [options]
Commands
| Command | Description |
|---|---|
| List all guilds (servers) the bot is in |
| List text channels in a guild |
| Send a plain text message |
| Send a formatted announcement embed |
| Show bot information |
| List all members in the guild |
| Get user info and mention format |
| List all roles in the guild |
| Get role info and mention format |
| Get recent messages from a channel |
| Edit a message (bot's own only) |
| Delete a message |
| Reply to a message |
| Send embed with structured fields |
| Add reaction to a message |
| Remove reaction from a message |
| Pin a message |
| Unpin a message |
| List pinned messages in a channel |
| Create a thread |
| Send a direct message to a user |
| Read DM history with a user |
Options
| Flag | Description |
|---|---|
| Output raw JSON response |
| Set embed title |
| Set embed color (default: #1E88E5 blue) |
| Set embed footer text |
| Add a URL to the embed title |
| Limit results (users: default 100, messages: default 20) |
| Add field to rich embed (repeatable) |
| Add thumbnail image to embed |
| Add large image to embed |
| Thread name (for thread command) |
Examples
Send Messages
# Send to channel by name node .claude/skills/discord/query.mjs send dev-general "Deployment complete!" # Send to channel by ID node .claude/skills/discord/query.mjs send 966054537880289330 "Build passed"
Send Announcements
# Basic announcement with auto-formatting node .claude/skills/discord/query.mjs announce dev-alerts "New feature deployed!" # Announcement with custom title and color node .claude/skills/discord/query.mjs announce deployments "v5.0.1381 released" --title "Release" --color "#00C853"
Rich Embeds with Fields
# Structured release announcement node .claude/skills/discord/query.mjs rich-embed dev-general "New release is live!" \ --title "Release v5.0.1382" \ --field "Version|5.0.1382|inline" \ --field "Author|@justin|inline" \ --field "Changes|3 files modified" \ --footer "Civitai" \ --color "#00C853"
Edit Messages
# Edit using message link node .claude/skills/discord/query.mjs edit "https://discord.com/channels/955.../966.../123..." "Updated content" # Edit using channel + message ID node .claude/skills/discord/query.mjs edit dev-general 1234567890 "Updated content"
Delete Messages
# Delete using message link node .claude/skills/discord/query.mjs delete "https://discord.com/channels/955.../966.../123..." # Delete using channel + message ID node .claude/skills/discord/query.mjs delete dev-general 1234567890
Reply to Messages
# Reply using message link node .claude/skills/discord/query.mjs reply "https://discord.com/channels/955.../966.../123..." "Thanks for the update!" # Reply using channel + message ID node .claude/skills/discord/query.mjs reply dev-general 1234567890 "Got it!"
Reactions
# Add a reaction (use Unicode emoji) node .claude/skills/discord/query.mjs react "https://discord.com/channels/..." "U+2705" node .claude/skills/discord/query.mjs react dev-general 1234567890 "U+1F44D" # Remove a reaction node .claude/skills/discord/query.mjs unreact "https://discord.com/channels/..." "U+2705"
Pin/Unpin Messages
# Pin a message node .claude/skills/discord/query.mjs pin "https://discord.com/channels/..." # Unpin a message node .claude/skills/discord/query.mjs unpin "https://discord.com/channels/..." # List pinned messages node .claude/skills/discord/query.mjs pins dev-general
Threads
# Create thread from a message node .claude/skills/discord/query.mjs thread "https://discord.com/channels/..." --thread "Discussion" # Create thread in channel (no parent message) node .claude/skills/discord/query.mjs thread dev-general --thread "New Topic"
Direct Messages
# Send DM to a user by name node .claude/skills/discord/query.mjs dm justin "Hey, can you review this PR?" # Send DM to a user by ID node .claude/skills/discord/query.mjs dm 303445765865603073 "Quick question about the deployment" # Read DM history with a user node .claude/skills/discord/query.mjs dm-messages justin # Read last 50 DMs node .claude/skills/discord/query.mjs dm-messages justin --limit 50
Users and Roles
# List users node .claude/skills/discord/query.mjs users --limit 50 # Find user to get mention format node .claude/skills/discord/query.mjs user justin # Output: Mention: <@303445765865603073> # List roles node .claude/skills/discord/query.mjs roles # Find role to get mention format node .claude/skills/discord/query.mjs role devs # Output: Mention: <@&955572624992382996>
Mention Users and Roles
# Mention a user in a message node .claude/skills/discord/query.mjs send dev-general "<@303445765865603073> check this PR" # Mention a role node .claude/skills/discord/query.mjs announce dev-general "<@&955572624992382996> new release!" --title "Attention Devs"
Read Messages
# Get last 20 messages (default) node .claude/skills/discord/query.mjs messages dev-general # Get last 50 messages node .claude/skills/discord/query.mjs messages dev-general --limit 50
Message Links
Most commands accept Discord message links directly:
- Format:
https://discord.com/channels/GUILD_ID/CHANNEL_ID/MESSAGE_ID - Right-click any message in Discord > "Copy Message Link"
Commands that accept message links:
edit, delete, reply, react, unreact, pin, unpin, thread
Channel Name Matching
Channel names are matched flexibly:
- Exact match:
dev-general - Partial match:
matchesdev-gendev-general - With or without emoji prefix:
matchesteamteam - Case insensitive:
matchesDEV-GENERALdev-general
When to Use
- Deployments: Announce releases to
ordeploymentsdev-alerts - Bug fixes: Share fixes with the team in
dev-general - Feature announcements: Post to relevant channels
- Team updates: Share progress in
or project-specific channelsteam - Automated notifications: Post from CI/CD or scripts
- Mentioning users: Look up user IDs with
command, then @mention themuser - Mentioning roles: Look up role IDs with
command, then @mention themrole - Reading context: Check recent messages with
commandmessages - Reactions: Acknowledge messages with emoji reactions
- Organizing discussions: Create threads for focused conversations
- Direct messages: Send private DMs to team members, read DM history
Tips
- Use
for important updates (creates rich embed)announce - Use
for quick messages or automated notificationssend - Use
for structured data with multiple fieldsrich-embed - Channel names are cached after first lookup
- Bot must have appropriate permissions in target channel
- Use
for scripting or piping to other tools--json - Message links work across all message-targeting commands
Permissions Required
The bot needs these Discord permissions:
- to list and find channelsView Channels
- to post messagesSend Messages
- for rich announcementsEmbed Links
- to read channel messagesRead Message History
- to add reactionsAdd Reactions
- to pin/unpin and delete messagesManage Messages
- to create threadsCreate Public Threads- Server Members Intent - enabled in Discord Developer Portal (for listing members)