13.10
การดึงข้อมูลแผง
GET
/<guild_id>/api/panels/<panel_id>ดึงการตั้งค่าทั้งหมดของแผงหนึ่งแผง ได้แก่ ชื่อ โหมดทิกเก็ต ข้อความของแผง (ข้อความฝังแบบคลาสสิกหรือเลย์เอาต์คอมโพเนนต์) หน้าตาของปุ่ม การทำงานของการปิดอัตโนมัติ และการตั้งค่าดรอปดาวน์ (สำหรับแผงหลายปุ่ม) ต้องมีสิทธิ์ `list_panels`
ตัวอย่างคำขอ
curl -X GET \
-H "Authorization: Bearer <API_TOKEN>" \
https://api.ticketsx.xyz/<guild_id>/api/panels/<panel_id>ตัวอย่างการตอบกลับ
{
"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": []
}
}
}