[nextgen] add weds warnings

This commit is contained in:
bignutty 2025-01-17 23:07:27 +01:00
parent b3ab294c2a
commit b66fd3b1d4

View file

@ -74,10 +74,26 @@ module.exports.BADGE_ICONS = Object.freeze({
// nextgen icons
module.exports.ICONS_NEXTGEN = Object.freeze({
"weds_warning": "<:nextgen_ico_weds_warning:1329933496780722357>",
// These icon names (weds_warning_:warningId) have to be synced with the server (/utils_service/endpoints/weather.js).
"weds_warning_wind": "<:nextgen_ico_weds_warning_wind:1329933507006435359>",
"weds_warning_tropicalstorm": "<:nextgen_ico_weds_warning_tropica:1329933486819115079>",
"weds_warning_tornado": "<:nextgen_ico_weds_warning_tornado:1329933476522365101>",
"weds_warning_temperature": "<:nextgen_ico_weds_warning_heat:1329933467370258452>",
"weds_warning_frost": "<:nextgen_ico_weds_warning_frost:1329933455898837051>",
"weds_warning_flood": "<:nextgen_ico_weds_warning_flood:1329933447401046079>",
})
// nextgen icons legacy name -> new name mappings
module.exports.ICONS_NEXTGEN_LEGACY_MAPPINGS = Object.freeze({
// WEATHER BLOCK
"weather_warning_generic": "weds_warning",
"weather_warning_storm": "weds_warning_wind",
"weather_warning_tropical_storm": "weds_warning_tropicalstorm",
"weather_warning_tornado": "weds_warning_tornado",
"weather_warning_heat": "weds_warning_temperature",
"weather_warning_frost": "weds_warning_frost",
"weather_warning_flood": "weds_warning_flood",
})
// TODO: Load icon configuration from server