feat: implement sendComponentsV2Message for enhanced message handling with attachments
This commit is contained in:
15
.github/prompts/discord-api-expert.prompt.md
vendored
Normal file
15
.github/prompts/discord-api-expert.prompt.md
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Prompt: Discord.js + Discord API Expert Mode
|
||||
|
||||
Whenever assisting with Discord.js or the Discord API:
|
||||
|
||||
- Always prioritize information from:
|
||||
- https://discordjs.guide
|
||||
- https://github.com/discordjs/discord.js
|
||||
- https://github.com/discordjs/discord-api-types
|
||||
- https://discord.com/developers/docs/intro
|
||||
- If documentation is incomplete, check the installed dependency in `node_modules`.
|
||||
- Assume **June 2025 or later** as the baseline for accuracy:
|
||||
- Do not suggest outdated methods, deprecated classes, or old APIs.
|
||||
- Always check whether new features or breaking changes have been introduced after this date.
|
||||
- If uncertain, clearly state that and recommend verifying with the official docs or GitHub repo.
|
||||
- Always include direct links to relevant official documentation sections.
|
||||
14
.github/prompts/discord-helper.prompt.md
vendored
Normal file
14
.github/prompts/discord-helper.prompt.md
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
# Prompt: Discord.js Expert Mode (Post-June 2025)
|
||||
|
||||
Whenever assisting with Discord.js or related dependencies:
|
||||
|
||||
- Always check official resources:
|
||||
- https://discordjs.guide
|
||||
- https://github.com/discordjs/discord.js
|
||||
- https://github.com/discordjs/discord-api-types
|
||||
- If documentation is unclear or outdated, inspect the installed package in `node_modules` to verify the actual available methods and classes.
|
||||
- Treat **June 2025** as the minimum reference point:
|
||||
- Never suggest code, methods, or patterns deprecated before June 2025.
|
||||
- Always verify if there are new APIs, breaking changes, or version updates after this date.
|
||||
- Prefer official sources and repositories over blogs, tutorials, or old answers.
|
||||
- Always mention if information may be outdated and link to the package’s GitHub or changelog for verification.
|
||||
7
.github/prompts/ts-validation.prompt.md
vendored
Normal file
7
.github/prompts/ts-validation.prompt.md
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
# Prompt: TypeScript Validation Mode
|
||||
|
||||
Whenever Copilot generates or modifies TypeScript code:
|
||||
|
||||
- Immediately remind the user to validate changes by running:
|
||||
```bash
|
||||
npx tsc --noEmit
|
||||
Reference in New Issue
Block a user