1.8 KiB
1.8 KiB
Custom instructions for GitHub Copilot (discord.js 15.0.0-dev)
When generating or modifying code for Discord.js version 15.0.0-dev.1759363313-f510b5ffa:
-
Primary Source of Truth
- Do not assume the official docs, guide, or GitHub repositories are fully up-to-date.
- Always prioritize the installed package in
node_modules/discord.jsas the most reliable source. - Always cross-reference with the provided file
example.ts.txtto understand new or experimental APIs.
-
Secondary Sources
- Only use these as references when the information is still valid:
- Mark clearly if the information is outdated compared to the development version.
-
Code Analysis
- Inspect the type definitions and source files inside
node_modules/discord.jsbefore suggesting new methods or classes. - If
example.ts.txtshows usage not covered in documentation, assume that is the intended API for this development version.
- Inspect the type definitions and source files inside
-
Validation
- Always suggest running:
to validate typings.
npx tsc --noEmit - Remind to check runtime memory and CPU usage with:
and external profilers if needed.
console.log(process.memoryUsage());
- Always suggest running:
-
Communication
- When suggesting code, state explicitly whether it comes from:
node_modules(preferred, authoritative)example.ts.txt(author-provided experimental reference)- official docs (secondary, possibly outdated)
- When suggesting code, state explicitly whether it comes from: