13.10
Lấy một bảng
GET
/<guild_id>/api/panels/<panel_id>Lấy toàn bộ cấu hình của một bảng: tên, chế độ ticket, tin nhắn của bảng (khối nhúng cổ điển hoặc bố cục thành phần), kiểu nút, cách đóng tự động và (với bảng gộp) thiết lập danh sách thả xuống. Cần quyền `list_panels`.
Ví dụ về yêu cầu
curl -X GET \
-H "Authorization: Bearer <API_TOKEN>" \
https://api.ticketsx.xyz/<guild_id>/api/panels/<panel_id>Ví dụ về phản hồi
{
"panel": {
"PanelId": 1,
"Type": "single",
"PanelName": "Support",
"TicketMode": "channel",
"BypassAutoClose": false,
"MessageId": "1234567890123456789",
"PanelMessage": {
"PanelChannel": "1098765432101234567",
"PanelTitle": "Open a ticket!",
"PanelDescription": "Click the button below to contact staff.",
"PanelColor": "#5865F2",
"ButtonColor": "primary",
"ButtonText": "Open Ticket",
"ButtonEmoji": "\ud83d\udce9",
"DisablePanel": false,
"MessageFormat": "embed",
"Content": "",
"Embeds": [
{
"Title": "Open a ticket!",
"Description": "Click the button below to contact staff.",
"Color": "#5865F2",
"Fields": [],
"Timestamp": false
}
],
"LinkButtons": [],
"Components": []
}
}
}