Update ServerDetails.plugin.js

This commit is contained in:
Mirco Wittrien 2021-11-23 22:54:47 +01:00
parent 549a9e55b4
commit 25fd92198e
1 changed files with 8 additions and 8 deletions

View File

@ -2,7 +2,7 @@
* @name ServerDetails * @name ServerDetails
* @author DevilBro * @author DevilBro
* @authorId 278543574059057154 * @authorId 278543574059057154
* @version 1.1.0 * @version 1.1.1
* @description Shows Server Details in the Server List Tooltip * @description Shows Server Details in the Server List Tooltip
* @invite Jx3TjNS * @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien * @donate https://www.paypal.me/MircoWittrien
@ -17,12 +17,12 @@ module.exports = (_ => {
"info": { "info": {
"name": "ServerDetails", "name": "ServerDetails",
"author": "DevilBro", "author": "DevilBro",
"version": "1.1.0", "version": "1.1.1",
"description": "Shows Server Details in the Server List Tooltip" "description": "Shows Server Details in the Server List Tooltip"
}, },
"changeLog": { "changeLog": {
"fixed": { "progress": {
"Server Changes": "Works again after Discords 100th Change for Servers" "Region Section": "Region Section was removed and replaced by the Language Section"
} }
} }
}; };
@ -141,9 +141,9 @@ module.exports = (_ => {
prefix: BDFDB.LanguageUtils.LanguageStrings.ROLES, prefix: BDFDB.LanguageUtils.LanguageStrings.ROLES,
string: Object.keys(this.props.guild.roles).length string: Object.keys(this.props.guild.roles).length
}), }),
_this.settings.items.region && BDFDB.ReactUtils.createElement(GuildDetailsRowComponent, { _this.settings.items.language && BDFDB.ReactUtils.createElement(GuildDetailsRowComponent, {
prefix: BDFDB.LanguageUtils.LanguageStrings.REGION, prefix: BDFDB.LanguageUtils.LanguageStrings.LANGUAGE,
string: this.props.guild.region string: BDFDB.LanguageUtils.getName(BDFDB.LanguageUtils.languages[this.props.guild.preferredLocale]) || this.props.guild.preferredLocale
}) })
].flat(10).filter(n => n) ].flat(10).filter(n => n)
}); });
@ -182,7 +182,7 @@ module.exports = (_ => {
channels: {value: true, description: "CHANNELS"}, channels: {value: true, description: "CHANNELS"},
roles: {value: true, description: "ROLES"}, roles: {value: true, description: "ROLES"},
boosts: {value: true, description: "boosts"}, boosts: {value: true, description: "boosts"},
region: {value: true, description: "REGION"} language: {value: true, description: "LANGUAGE"}
}, },
dates: { dates: {
tooltipDates: {value: {}, description: "Tooltip Dates"} tooltipDates: {value: {}, description: "Tooltip Dates"}