Thêm Discord Channel
Cần chuẩn bị gì trước khi bắt đầu
| Requirement | Purpose |
|---|---|
| Discord account | Dùng để tạo server, channel và developer application. |
| Một Discord server | Bot phải join server trước khi access channel. |
| Một text channel | Images và files sẽ được gửi vào channel này. |
| Discord Developer Portal | Dùng để tạo application, tạo bot và lấy Bot Token. |
Thêm ở đâu
- Mở System Settings.
- Vào Upload Settings.
- Nhấn Add Channel ở góc trên bên phải.
- Chọn
Discord.
Field Reference
| Field | Tác dụng | Required |
|---|---|---|
| Channel name | Tên dễ nhận biết cho channel này, ví dụ "Discord Primary". | Required |
| Bot Token | Discord bot token. | Required |
| Channel ID | ID của target text channel. | Required |
| Proxy URL (optional) | Chỉ dùng nếu Discord CDN access không ổn định. Nhập full URL, bao gồm https://. | Optional |
Các bước thiết lập
1. Tạo Discord Server và Text Channel
- Mở Discord.
- Tạo server mới, hoặc dùng existing server bạn sở hữu.
- Tạo một text channel trong server đó.

2. Tạo Bot trong Discord Developer Portal
- Mở Discord Developer Portal:
https://discord.com/developers/applications - Nhấn
New Application. - Nhập application name và tạo.
- Mở trang
Bottừ left sidebar. - Generate hoặc reset token trong trang
Bot. - Lưu token.
Token này chính là Bot Token cần nhập trong ImgBed.

3. Tạo OAuth2 Invite Link và Install Bot
- Mở trang
OAuth2từ left sidebar. - Trong scopes, chọn
bot. - Trong permission area, enable các permissions này:
| Permission | Required |
|---|---|
| View Channels | Yes |
| Send Messages | Yes |
| Attach Files | Yes |
| Read Message History | Yes |
- Ở cuối page, xác nhận integration type là
Guild Install. - Copy generated URL.
- Mở URL đó trong browser.
- Chọn target server.
- Hoàn tất authorization flow.


4. Enable Developer Mode và Copy Channel ID
- Nhấn biểu tượng gear cạnh avatar ở góc dưới bên trái Discord.
- Mở Advanced từ left sidebar.
- Enable Developer Mode.
- Quay lại target text channel.
- Right-click tên channel.
- Nhấn Copy Channel ID.
Số được copy là Channel ID mà ImgBed cần.


5. Điền Discord Channel trong ImgBed
Quay lại channel configuration dialog và điền như sau:
| UI Field | Value |
|---|---|
| Channel name | Tên channel tùy chọn, ví dụ DiscordPrimary. |
| Bot Token | Token đã lưu từ trang Bot trong Discord Developer Portal. |
| Channel ID | Channel ID đã copy từ Discord. |
| Proxy URL (optional) | Chỉ nhập nếu cần, ví dụ https://your-proxy.example.com. |
Điền xong thì nhấn Save.

Cách kiểm tra
| Check | Cách kiểm tra |
|---|---|
| Channel card xuất hiện | Sau khi save, trang Upload Settings cần hiển thị Discord channel card. |
| Channel bật được | Active switch nên giữ trạng thái on. |
| Configuration đã lưu | Detail view cần cho thấy Bot Token và Channel ID đã được lưu. |
| Upload hoạt động | Upload một test image và xác nhận nó xuất hiện trong target Discord text channel. |
Quick Checklist
text
Tạo Discord server
-> Tạo text channel
-> Tạo bot trong Discord Developer Portal
-> Lưu Bot Token từ trang Bot
-> Trong OAuth2, chọn bot, View Channels, Send Messages, Attach Files và Read Message History
-> Copy generated URL và authorize bot cho target server
-> Đảm bảo target text channel có cùng permissions
-> Enable Developer Mode
-> Right-click target text channel và copy Channel ID
-> Nhập Bot Token và Channel ID trong ImgBed
-> Save và upload test imageReferences
- Discord Developers Getting Started: https://docs.discord.com/developers/quick-start/getting-started
- Discord Help - Where can I find my User/Server/Message ID: https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID