3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-20 16:25:03 +00:00

Fix old var names in onMessageCreate

This commit is contained in:
Dark 2021-01-28 01:40:46 +01:00
parent 6f545f5c4a
commit f4175dd88e
No known key found for this signature in database
GPG key ID: 384C4B4F5B1E25A8

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) { if (!deleteWithCommand && deleteInvoke) {
// Try deleting the invoking message, ignore errors silently // Try deleting the invoking message, ignore errors silently
pluginData.client.deleteMessage(msg.channel_id, msg.id).catch(noop); pluginData.client.deleteMessage(msg.channel_id, msg.id).catch(noop);