Skip to content

Conversation

@seeyebe
Copy link

@seeyebe seeyebe commented Sep 28, 2025

No description provided.

Copy link
Contributor

@reinacchi reinacchi left a 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

@seeyebe
Copy link
Author

seeyebe commented Sep 30, 2025

I didn't remove the bot placeholder, the issue is BOT will not work as prefix it should be exactly Bot.

also see: https://discord.com/channels/831967755447828491/831975480877514822/1421983849612709888

@bsian03
Copy link
Collaborator

bsian03 commented Sep 30, 2025

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

@seeyebe
Copy link
Author

seeyebe commented Sep 30, 2025

just merge it 🤠

@bsian03 bsian03 requested a review from Copilot October 1, 2025 13:05
Copy link

Copilot AI left a 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"

@bsian03 bsian03 changed the title fix: bot token placeholder and add components v2 example chore(examples): update bot token placeholder and add components v2 example Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants