Discord send message

From evolution-foundation/evo-nexus · View interactive version

Discord send message is an AI agent skill from the GitHub repository evolution-foundation/evo-nexus. Send messages to Discord channels via the Discord API. Use this skill when the user wants to send text messages, notifications, or formatted content to a Discord channel.

How to use this skill

Skill file

Discord Send Message

Send messages to Discord channels using the Discord API v10. This skill supports plain text messages, formatted markdown content, and embeds.

When to Use This Skill

Use this skill when the user wants to:

Prerequisites

Instructions

When the user requests to send a Discord message:

  1. Validate Requirements
  1. Prepare the Message
  1. Make the API Request

Use the following curl command structure:

```bash

curl -X POST "https://discord.com/api/v10/channels/{CHANNEL_ID}/messages" \

-H "Authorization: Bot ${DISCORD_BOT_TOKEN}" \

-H "Content-Type: application/json" \

-d '{"content": "Your message here"}'

```

Replace:

  1. Handle Response
  1. Report Results

Message Format Options

Plain Text

{
  "content": "Hello from Claude Code!"
}

Markdown Formatting

{
  "content": "**Bold text** *Italic text* `code` [Link](https://example.com)"
}

Basic Embed

{
  "embeds": [{
    "title": "Notification",
    "description": "This is an embed message",
    "color": 3447003,
    "fields": [
      {
        "name": "Field Name",
        "value": "Field Value",
        "inline": false
      }
    ]
  }]
}

Text + Embed

{
  "content": "Check out this embed:",
  "embeds": [{
    "title": "Title",
    "description": "Description"
  }]
}

Validation Rules

Before sending:

Error Handling

Common Errors

401 Unauthorized

403 Forbidden

404 Not Found

400 Bad Request

Security Notes

Examples

See examples.md for detailed usage scenarios.

API Reference

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.