PakistanZarScape/discord.js-v2-components
A Discord bot code showcasing Components V2 with SlashCommandBuilder, including TextDisplays, Sections, Media Galleries, Separators, Buttons, Channel Select Menus, and File attachments. Perfect as a reference or starting point for building advanced interactive messages in Discord.js
🧩 Hướng dẫn thực hành Discord Components V2 bằng Discord.js
Tài nguyên tham khảo đầy đủ các thành phần giao diện V2 của Discord, kèm ví dụ slash command thực tế.
Dự án discord.js-v2-components của ZarScape là một kho mã nguồn mở minh họa cách xây dựng tin nhắn tương tác phong phú bằng hệ thống Components V2 của Discord. Thay vì dựa vào embed truyền thống, dự án này cho phép bạn tạo giao diện đẹp mắng hoàn toàn từ các thành phần (components), bao gồm cả slash command mẫu để dễ dàng tham khảo và phát triển.
✨ Điểm nổi bật
- TextDisplay: Hiển thị văn bản định dạ Markdown tĩnh.
- Separator: Thêm khoảng cách trực quan giữa các thành phần.
- Section: Nhóm nội dung với thumbnail hoặc nút phụ trợ.
- Thumbnail: Đính kèm hình ảnh nhỏ cạnh nội dung section.
- Button: Tạo nút bấm dạng liên kết hoặc hành động tương tác.
- ChannelSelectMenu: Cho phép người dùng chọn kênh từ danh sách thả xuống.
- MediaGallery: Trình chiếu nhiều hình ảnh hoặc video trong một carousel.
- File: Đính kèm tệp tin và tham chiếu chúng trong thông điệp.
💡 Vì sao đáng chú ý
Components V2 mang lại khả năng kiểm soát hoàn toàn định dạng và bố cục của tin nhắn Discord mà không cần dùng tới embed. Điều này giúp các bot trở nên nhẹ hơn, linh hoạt hơn và dễ tùy biến giao diện theo phong cách riêng. Dự án cung cấp cả một ví dụ slash command hoàn chỉnh sử dụng SlashCommandBuilder, kết hợp nhiều loại thành phần khác nhau — lý tưởng để học tập hoặc làm nền tảng cho các dự án bot phức tạp.
#DiscordJS #ComponentsV2 #BotDevelopment #OpenSource #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
Free visual editor and bot for Discord messages: embeds, button roles, scheduled messages and Components V2, sent through webhooks or the bot. Hosted at https://message.style
Reverse engineer anything with agents, from app behavior down to native binaries.
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
Interactive roadmaps, guides and other educational content to help developers grow in their careers.
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core