Запрос вернет настройки плагина.
{
"success": true,
"response": {
"enabled": true,
"channelId": "479214992730751008",
"width": "100%",
"height": "300px",
"theme": "dark"
}
}
{
"success": false,
"error_code": 5,
"response": "Плагин неактивен."
}
Запрос вернет сгенерированный на основе настроек плагина виджет в виде HTML кода.
{
"success": true,
"response": "<iframe sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts" src="https"://discordapp.com/widget?id=479214992730751008&theme=dark" width="100%" height="300px" allowtransparency="true" frameborder="0"></iframe>"
}
{
"success": false,
"error_code": 5,
"response": "Плагин неактивен."
}