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