Fixed bug

This commit is contained in:
Inbestigator 2024-06-09 16:58:35 -07:00
parent ebb4160198
commit 767ce54d8f

View file

@ -58,6 +58,7 @@ const settings = definePluginSettings({
reasons: { reasons: {
description: "Your custom reasons", description: "Your custom reasons",
type: OptionType.COMPONENT, type: OptionType.COMPONENT,
default: [],
component: ReasonsComponent, component: ReasonsComponent,
}, },
otherOptionDefault: { otherOptionDefault: {
@ -84,7 +85,7 @@ export default definePlugin({
} }
], ],
getReasons() { getReasons() {
return (settings.store.reasons.length() ? settings.store.reasons : [ return (settings.store.reasons.length ? settings.store.reasons : [
i18n.Messages.BAN_REASON_OPTION_SPAM_ACCOUNT, i18n.Messages.BAN_REASON_OPTION_SPAM_ACCOUNT,
i18n.Messages.BAN_REASON_OPTION_HACKED_ACCOUNT, i18n.Messages.BAN_REASON_OPTION_HACKED_ACCOUNT,
i18n.Messages.BAN_REASON_OPTION_BREAKING_RULES i18n.Messages.BAN_REASON_OPTION_BREAKING_RULES