Decreased typescript version

canary
WolverinDEV 2020-02-22 15:44:37 +01:00
parent 01a0dc1441
commit 5a85d2421c
3 changed files with 8 additions and 6 deletions

6
package-lock.json generated
View File

@ -5007,9 +5007,9 @@
"dev": true
},
"typescript": {
"version": "3.6.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.6.4.tgz",
"integrity": "sha512-unoCll1+l+YK4i4F8f22TaNVPRHcD9PA3yCuZ8g5e0qGqlVlJ/8FSateOLLSagn+Yg5+ZwuPkL8LFUc0Jcvksg==",
"version": "3.6.5",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.6.5.tgz",
"integrity": "sha512-BEjlc0Z06ORZKbtcxGrIvvwYs5hAnuo6TKdNFL55frVDlB+na3z5bsLhFaIxmT+dPWgBIjMo6aNnTOgHHmHgiQ==",
"dev": true
},
"unc-path-regex": {

View File

@ -36,8 +36,8 @@
"sass": "1.22.10",
"sha256": "^0.2.0",
"terser": "^4.2.1",
"ttypescript": "^1.5.7",
"typescript": "3.6.4",
"ttypescript": "^1.5.10",
"typescript": "3.6.5",
"wat2wasm": "^1.0.2",
"fs-extra": "latest"
},

View File

@ -113,7 +113,9 @@ namespace Modals {
channel_commander: bot.properties.client_is_channel_commander,
volume: bot.properties.player_volume,
description: bot.properties.client_description,
default_country_code: bot.channelTree?.server?.properties?.virtualserver_country_code || "DE",
default_country_code: (
!bot.channelTree ? undefined :
!bot.channelTree.server ? undefined : bot.channelTree.server.properties.virtualserver_country_code) || "DE",
country_code: bot.properties.client_country,
name: bot.properties.client_nickname,
priority_speaker: bot.properties.client_is_priority_speaker,