getGlobalInformation
Returns global information regarding the DLive platform
const bot = new Dlive(key);
bot.getGlobalInformation().then(g =>
console.log(g.data.globalInfo.languages.map(lang =>
`Lang: ${lang.language} | Code: ${lang.code}`
).join('\n'))
);
Lang: English | Code: enLang: Turkish (Türkçe) | Code: trLang: Polish (Polski) | Code: plLang: Japanese (日本語) | Code: jaLang: Korean (한국어) | Code: koLang: Chinese (中文) | Code: zhLang: Spanish (Español) | Code: esLang: Thai (ภาษาไทย) | Code: thLang: French (Français) | Code: frLang: German (Deutsch) | Code: deLang: Greek (ελληνικά) | Code: elLang: Indonesian (Bahasa Indonesia) | Code: id
Lang: Georgian (ქართული ენა) | Code: ka
Lang: Dutch (Nederlands) | Code: nl
Lang: Russian (русский) | Code: ru
Lang: Czech (čeština) | Code: cs
Lang: Portuguese (português) | Code: pt
Lang: Hungarian (magyar nyelv) | Code: hu
Lang: Italian (italiano) | Code: it
Lang: Portuguese (português) | Code: pt
{
"data": {
"globalInfo": {
"languages": [
{
"id": "language:1",
"backendID": 1,
"language": "English",
"code": "en",
"__typename": "Language"
},
{
"id": "language:5",
"backendID": 5,
"language": "Turkish (Türkçe)",
"code": "tr",
"__typename": "Language"
},
{
"id": "language:4",
"backendID": 4,
"language": "Polish (Polski)",
"code": "pl",
"__typename": "Language"
},
{
"id": "language:7",
"backendID": 7,
"language": "Japanese (日本語)",
"code": "ja",
"__typename": "Language"
},
{
"id": "language:6",
"backendID": 6,
"language": "Korean (한국어)",
"code": "ko",
"__typename": "Language"
},
{
"id": "language:3",
"backendID": 3,
"language": "Chinese (中文)",
"code": "zh",
"__typename": "Language"
},
{
"id": "language:2",
"backendID": 2,
"language": "Spanish (Español)",
"code": "es",
"__typename": "Language"
},
{
"id": "language:8",
"backendID": 8,
"language": "Thai (ภาษาไทย)",
"code": "th",
"__typename": "Language"
},
{
"id": "language:9",
"backendID": 9,
"language": "French (Français)",
"code": "fr",
"__typename": "Language"
},
{
"id": "language:10",
"backendID": 10,
"language": "German (Deutsch)",
"code": "de",
"__typename": "Language"
},
{
"id": "language:19",
"backendID": 19,
"language": "Greek (ελληνικά)",
"code": "el",
"__typename": "Language"
},
{
"id": "language:11",
"backendID": 11,
"language": "Indonesian (Bahasa Indonesia)",
"code": "id",
"__typename": "Language"
},
{
"id": "language:12",
"backendID": 12,
"language": "Georgian (ქართული ენა)",
"code": "ka",
"__typename": "Language"
},
{
"id": "language:13",
"backendID": 13,
"language": "Dutch (Nederlands)",
"code": "nl",
"__typename": "Language"
},
{
"id": "language:14",
"backendID": 14,
"language": "Russian (русский)",
"code": "ru",
"__typename": "Language"
},
{
"id": "language:15",
"backendID": 15,
"language": "Czech (čeština)",
"code": "cs",
"__typename": "Language"
},
{
"id": "language:16",
"backendID": 16,
"language": "Portuguese (português)",
"code": "pt",
"__typename": "Language"
},
{
"id": "language:17",
"backendID": 17,
"language": "Hungarian (magyar nyelv)",
"code": "hu",
"__typename": "Language"
},
{
"id": "language:18",
"backendID": 18,
"language": "Italian (italiano)",
"code": "it",
"__typename": "Language"
},
{
"id": "language:20",
"backendID": 20,
"language": "Portuguese (português)",
"code": "pt",
"__typename": "Language"
}
],
"__typename": "GlobalInfo"
}
}
}
Updated over 5 years ago