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": []
}
}
}