mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix country empty field values
This commit is contained in:
@@ -38,10 +38,10 @@ module.exports = class CountryCommand extends Command {
|
||||
.setTitle(data.name)
|
||||
.setThumbnail(`https://www.countryflags.io/${data.alpha2Code}/flat/64.png`)
|
||||
.addField('❯ Population', formatNumber(data.population), true)
|
||||
.addField('❯ Capital', data.capital, true)
|
||||
.addField('❯ Capital', data.capital || 'None', true)
|
||||
.addField('❯ Currency', data.currencies[0].symbol, true)
|
||||
.addField('❯ Location', data.subregion || data.region, true)
|
||||
.addField('❯ Demonym', data.demonym, true)
|
||||
.addField('❯ Demonym', data.demonym || 'None', true)
|
||||
.addField('❯ Native Name', data.nativeName, true)
|
||||
.addField('❯ Area', `${formatNumber(data.area)}km`, true)
|
||||
.addField('❯ Languages', data.languages.map(lang => lang.name).join('/'));
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "116.5.0",
|
||||
"version": "116.5.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user