mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 15:35:11 +00:00
Update src/plugins/betterBanReasons/index.tsx
Co-authored-by: vee <vendicated@riseup.net>
This commit is contained in:
parent
f6602fec19
commit
fe00ec39a7
1 changed files with 8 additions and 7 deletions
|
@ -84,13 +84,14 @@ export default definePlugin({
|
|||
}
|
||||
],
|
||||
getReasons() {
|
||||
return (settings.store.reasons.length ? settings.store.reasons : [
|
||||
i18n.Messages.BAN_REASON_OPTION_SPAM_ACCOUNT,
|
||||
i18n.Messages.BAN_REASON_OPTION_HACKED_ACCOUNT,
|
||||
i18n.Messages.BAN_REASON_OPTION_BREAKING_RULES
|
||||
]).map((reason: string) => (
|
||||
{ name: reason, value: reason }
|
||||
));
|
||||
const reasons = settings.store.reasons.length
|
||||
? settings.store.reasons
|
||||
: [
|
||||
i18n.Messages.BAN_REASON_OPTION_SPAM_ACCOUNT,
|
||||
i18n.Messages.BAN_REASON_OPTION_HACKED_ACCOUNT,
|
||||
i18n.Messages.BAN_REASON_OPTION_BREAKING_RULES
|
||||
];
|
||||
return reasons.map(s => ({ name: s, value: s });
|
||||
},
|
||||
getDefaultState() {
|
||||
return settings.store.textInputDefault ? 1 : 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue