关于 discord-graphics-generation
discord-graphics-generation 是使用 each::sense 制作 Discord 服务器视觉素材的技能,适合社区管理员和设计者。它覆盖服务器图标、横幅、角色图标、表情等多种版位,并提供尺寸指引。
主要功能
- 01生成服务器图标与横幅
- 02制作角色图标和机器人头像
- 03创建欢迎、规则及公告图
- 04生成自定义表情与贴纸
- 05按 Discord 版位指定尺寸
适用场景
- 01为新社区设计服务器品牌素材
- 02制作活动横幅与公告图片
- 03为角色组生成统一图标
- 04制作服务器表情和贴纸
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ eachlabs/ skills --skill discord-graphics-generation安装后在 Claude Code 中输入/discord-graphics-generation确认已加载。
附带文件references/SSE-EVENTS.md
详细介绍
Discord 图形生成
使用 each::sense 生成专业的 Discord 服务器图形。此技能可创建针对 Discord 各种图形位置、尺寸和最佳实践优化的图像。
功能
- 服务器图标:用于标识服务器的方形图标(512x512)
- 服务器横幅:用于服务器资料的宽幅横幅(960x540)
- 身份组图标:用于标识身份组的小图标(64x64)
- 欢迎图形:欢迎区域的频道标题图
- 规则图形:规则频道的视觉标题图
- 公告横幅:醒目的公告图形
- 活动横幅:服务器活动的宣传图形
- 机器人头像:Discord 机器人的自定义头像
- 表情包:服务器自定义表情
- 助推徽章:用于表彰服务器助推者的图形
快速开始
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a Discord server icon for a gaming community called Pixel Warriors, featuring a pixel art sword and shield with purple and blue colors"}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
Discord 图形格式与尺寸
| 资源类型 | 尺寸 | 宽高比 | 用途 |
|---|---|---|---|
| 服务器图标 | 512x512 | 1:1 | 服务器标识,随处显示 |
| 服务器横幅 | 960x540 | 16:9 | 服务器资料页标题图(Nitro Level 2+) |
| 身份组图标 | 64x64 | 1:1 | 用户名旁的身份组徽章 |
| 邀请背景图 | 1920x1080 | 16:9 | 服务器邀请背景(Nitro Level 1+) |
| 服务器发现图 | 1024x1024 | 1:1 | 服务器发现列表 |
| 自定义表情 | 128x128 | 1:1 | 服务器表情(最大 256KB) |
| 贴纸 | 320x320 | 1:1 | 自定义贴纸 |
使用场景示例
1. Discord 服务器图标
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a 512x512 Discord server icon for a tech community called CodeHub. Feature a modern code bracket symbol with gradient from cyan to purple, dark background, clean minimal design that reads well at small sizes."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
2. 服务器横幅
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a 960x540 Discord server banner for an anime discussion community. Show a stylish anime-inspired cityscape at night with neon lights, purple and pink color scheme. Leave the center area less busy for the server name overlay."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
3. 身份组图标套组
# Admin role icon
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a 64x64 Discord role icon for Admin role. Gold crown symbol on dark background, simple and recognizable at small size. Clean vector-style design."}],
"model": "eachsense/beta",
"stream": true,
"session_id": "discord-roles-001"
}'
# Moderator role icon (same session for consistency)
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a 64x64 Discord role icon for Moderator role. Silver shield symbol, same style as the admin icon. Simple and recognizable."}],
"model": "eachsense/beta",
"stream": true,
"session_id": "discord-roles-001"
}'
# VIP role icon
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a 64x64 Discord role icon for VIP members. Purple diamond or star symbol, matching the style of previous role icons."}],
"model": "eachsense/beta",
"stream": true,
"session_id": "discord-roles-001"
}'
4. 欢迎频道图形
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a wide banner graphic for a Discord welcome channel. Friendly and inviting design with soft gradients in blue and purple. Include visual space for welcome text. Aspect ratio 16:9, dimensions 1200x675. Make it warm and community-focused."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
5. 规则频道图形
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a Discord rules channel header graphic. Professional and authoritative design with a scroll or document motif. Dark theme with gold accents. 1200x400 pixels. Include subtle gavel or scales of justice imagery. Clean and readable."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
6. 公告图形
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a Discord announcement banner for a server update. Exciting and attention-grabbing with a megaphone or notification bell motif. Red and orange energy colors with dark background. 1200x600 pixels. Space for announcement text."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
7. 活动横幅
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a Discord event banner for a gaming tournament. Esports style with dynamic angles and energy effects. Team colors: red vs blue. 1200x675 pixels. Include space for event name, date, and prize info. Competitive and exciting mood."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
8. 机器人头像
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a 512x512 Discord bot avatar for a music bot called BeatBot. Friendly robot face with headphones, musical notes floating around. Cyan and white color scheme on dark background. Cute but modern design, reads well as small circle."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
9. 表情包生成
# Generate consistent emoji set
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a 128x128 Discord emoji of a happy pepe-style frog giving thumbs up. Simple, clean design with thick outlines for visibility at small sizes. Green frog, expressive eyes."}],
"model": "eachsense/beta",
"stream": true,
"session_id": "emoji-pack-001"
}'
# Sad emoji
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a 128x128 Discord emoji of the same frog character but sad with a single tear. Same art style as before, consistent design."}],
"model": "eachsense/beta",
"stream": true,
"session_id": "emoji-pack-001"
}'
# Laughing emoji
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a 128x128 Discord emoji of the same frog character laughing hard with tears of joy. Consistent style with previous emojis."}],
"model": "eachsense/beta",
"stream": true,
"session_id": "emoji-pack-001"
}'
10. 服务器助推徽章
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a 64x64 Discord role icon for Server Boosters. Premium feel with Discord Nitro pink/purple gradient colors. Lightning bolt or rocket symbol to represent boost. Shiny metallic effect, stands out from other role icons."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
最佳实践
服务器图标
- 简洁:设计应在 32x32 像素下仍易于辨认
- 对比度:使用高对比度颜色以便清晰显示
- 居中:让主要元素保持居中(显示为圆形)
- 避免文字:避免使用文字,因为在小尺寸下无法辨认
- 品牌色:使用统一的品牌或社区颜色
身份组图标
- 最大 64x64:Discord 将身份组图标限制为 64x64
- 简单形状:复杂细节在小尺寸下会难以辨认
- 颜色编码:为不同身份组级别使用不同颜色
- 保持统一:创建风格协调一致的套组
- 透明背景:使用透明背景
横幅与标题图
- 安全区域:重要元素应远离边缘
- 文字空间:为叠加文字留出空间
- 适配移动端:测试在移动设备上的显示效果
- 文件大小:横幅文件大小应低于 10MB
表情
- 128x128:Discord 表情的标准尺寸
- 256KB 限制:文件大小不得超过此限制
- 粗描边:有助于在小尺寸下清晰显示
- 透明背景:使用透明背景以提高适用性
- 突出表情:强调情绪或动作
Discord 图形的提示词技巧
创建 Discord 图形时,请在提示词中包含以下细节:
- 精确尺寸:指定尺寸(512x512、960x540、64x64 等)
- 资源类型:服务器图标、横幅、身份组图标、表情等
- 主题/风格:游戏、动漫、专业、极简等
- 颜色:指定颜色,或让 AI 根据主题选择
- 关键元素:要包含的符号、吉祥物或图像
- 可读性:说明图形是否需要在小尺寸下保持清晰
- 文字空间:说明是否需要为叠加文字留出空间
提示词结构示例
"Create a [size] Discord [asset type] for [community type/name].
Feature [key visual elements] with [color scheme].
Style: [aesthetic description].
[Additional requirements like small-size readability, text space, etc.]"
模式选择
生成前询问用户:
“你想要快速且经济,还是高质量?”
| 模式 | 适用场景 | 速度 | 质量 |
|---|---|---|---|
max | 最终资源、服务器品牌形象、面向公众的图形 | 较慢 | 最高 |
eco | 快速草稿、概念探索、批量生成表情 | 较快 | 良好 |
多轮创意迭代
使用 session_id 对 Discord 图形进行迭代:
# Initial server icon concept
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a 512x512 Discord server icon for a space exploration gaming community"}],
"model": "eachsense/beta",
"stream": true,
"session_id": "space-server-branding"
}'
# Iterate based on feedback
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Make the planet more prominent and add some stars in the background. Keep the same color scheme."}],
"model": "eachsense/beta",
"stream": true,
"session_id": "space-server-branding"
}'
# Create matching banner
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Now create a matching 960x540 server banner with the same space theme and color palette"}],
"model": "eachsense/beta",
"stream": true,
"session_id": "space-server-branding"
}'
完整的服务品牌套件
生成一套协调统一的品牌套件:
# 1. Server icon
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a 512x512 Discord server icon for a creative art community called ArtVault. Modern abstract paint splash design, vibrant rainbow colors on dark background."}],
"model": "eachsense/beta",
"stream": true,
"session_id": "artvault-branding",
"mode": "max"
}'
# 2. Server banner
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a matching 960x540 server banner. Extend the paint splash theme across a wider canvas. Same colors and style."}],
"model": "eachsense/beta",
"stream": true,
"session_id": "artvault-branding",
"mode": "max"
}'
# 3. Role icons
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create 3 role icons (64x64 each) for Artist, Moderator, and VIP roles. Use paintbrush for Artist (blue), palette for Mod (orange), and star for VIP (gold). Same art style as the server icon."}],
"model": "eachsense/beta",
"stream": true,
"session_id": "artvault-branding",
"mode": "max"
}'
错误处理
| 错误 | 原因 | 解决方案 |
|---|---|---|
Failed to create prediction: HTTP 422 | 余额不足 | 在 eachlabs.ai 充值 |
| 内容政策违规 | 内容被禁止 | 调整提示词,使其符合 Discord 社区准则 |
| 超时 | 生成任务复杂 | 将客户端超时时间设为至少 10 分钟 |
| 图片过大 | 文件大小超出限制 | 请求更小的尺寸或更简单的设计 |
相关技能
each-sense- 核心 API 文档social-media-graphics- 社交媒体素材logo-generation- 品牌徽标创建character-design- 吉祥物和角色创建
评论
支持 Markdown