editTrigger error when not implemented

This commit is contained in:
Erik 2022-04-29 20:09:34 +03:00
parent 0cc1238c97
commit e6af66678a
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -246,6 +246,10 @@ class FilterSetting extends Setting {
}
_editTrigger() {
return { error: true, index: 'SETTING_FILTER_MISSING_TRIGGER_EDIT', params: { setting: this.name } };
}
async _editExpiration(interaction, actions, action) {
if (!interaction.guild._settings.modpoints?.enabled) return {