tags: fix usage of old config property name

This commit is contained in:
Dragory 2021-02-13 17:30:47 +02:00
parent c3407e2d5d
commit ecb9fd43f8
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -109,7 +109,7 @@ export async function onMessageCreate(pluginData: GuildPluginData<TagsPluginType
});
}
const deleteInvoke = tagResult.category?.category_delete_invoke ?? config.global_delete_invoke;
const deleteInvoke = tagResult.category?.auto_delete_command ?? config.auto_delete_command;
if (!deleteWithCommand && deleteInvoke) {
// Try deleting the invoking message, ignore errors silently
pluginData.client.deleteMessage(msg.channel_id, msg.id).catch(noop);