-
Notifications
You must be signed in to change notification settings - Fork 412
chore(examples): update bot token placeholder and add components v2 example #1604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
chore(examples): update bot token placeholder and add components v2 example #1604
Conversation
reinacchi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see a need to remove the Bot placeholder since Eris supports tokens without the "Bot" prefix.
https://github.com/abalabahaha/eris/blob/dev/lib/gateway/Shard.js#L1951
|
I didn't remove the bot placeholder, the issue is also see: https://discord.com/channels/831967755447828491/831975480877514822/1421983849612709888 |
|
Just to clarify here - prefixless tokens are deprecated and have been so for a while. So while it is still possible to not prefix the token, it is strongly discouraged |
|
just merge it 🤠 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR standardizes the bot token placeholder in example files and adds a new Components V2 example to demonstrate Discord's latest message component features.
- Standardizes token placeholder from "TOKEN" to "BOT_TOKEN" across all example files
- Adds a comprehensive Components V2 example showcasing card-style layouts, sections, containers, and media galleries
- Updates documentation comment in components.js to reflect correct API reference
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| examples/sharding.js | Updates token placeholder and comment to use "BOT_TOKEN" |
| examples/reactionButtons.js | Updates token placeholder and comment to use "BOT_TOKEN" |
| examples/playFile.js | Updates token placeholder and comment to use "BOT_TOKEN" |
| examples/pingpong.js | Updates token placeholder and comment to use "BOT_TOKEN" |
| examples/intent.js | Updates token placeholder and comment to use "BOT_TOKEN" |
| examples/embed.js | Updates token placeholder and comment to use "BOT_TOKEN" |
| examples/componentsV2.js | New comprehensive example demonstrating Components V2 features |
| examples/components.js | Updates token placeholder, comment, and API documentation URL |
| examples/basicCommands.js | Updates token placeholder and comment to use "BOT_TOKEN" |
| examples/applicationCommands.js | Updates token placeholder and comment to use "BOT_TOKEN" |
No description provided.