fix modpoints current config fields
This commit is contained in:
parent
00b3b07b8c
commit
7484c2a852
@ -174,15 +174,30 @@ class ModerationPointsSetting extends Setting {
|
|||||||
name: '》 Status',
|
name: '》 Status',
|
||||||
value: guild.format('SETTING_STATUS', { bool: Boolean(setting?.enabled) }, true),
|
value: guild.format('SETTING_STATUS', { bool: Boolean(setting?.enabled) }, true),
|
||||||
inline: true
|
inline: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: '》 Use points as multiplier for expiry',
|
||||||
|
value: guild.format('SETTING_STATUS', { bool: Boolean(setting?.multiplier) }, true),
|
||||||
|
inline: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '\u200b',
|
||||||
|
value: '\u200b',
|
||||||
|
inline: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: '》 Default Points',
|
name: '》 Default Points',
|
||||||
value: Object.entries(setting.points).map(([key, value]) => `**${key}:** \`${value}\``).join('\n'),
|
value: Object.entries(setting.points).sort(([key], [key2]) => key.length - key2.length).map(([key, value]) => `**${key}:** \`${value}\``).join('\n'),
|
||||||
inline: true
|
inline: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '》 Default Expirations',
|
name: '》 Default Expirations',
|
||||||
value: Object.entries(setting.expirations).map(([key, value]) => `**${key}:** \`${value ? this.client.resolver.timeAgo(value): 'N/A'}\``).join('\n'),
|
value: Object.entries(setting.expirations).sort(([key], [key2]) => key.length - key2.length).map(([key, value]) => `**${key}:** \`${value ? this.client.resolver.timeAgo(value): 'N/A'}\``).join('\n'),
|
||||||
|
inline: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '》 Word associations',
|
||||||
|
value: Object.entries(setting.associations).map(([key, value]) => `**${key}:** \`${value}\``).join('\n') || '`N/A`',
|
||||||
inline: true
|
inline: true
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user