3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

fix: remove deprecated success_emoji/error_emoji properties

This commit is contained in:
Dragory 2023-04-01 20:39:13 +03:00
parent c21aa7fbbf
commit d4292205b9
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -307,7 +307,11 @@ connect().then(async () => {
const row = await guildConfigs.getActiveByKey(key); const row = await guildConfigs.getActiveByKey(key);
if (row) { if (row) {
try { try {
return loadYamlSafely(row.config); const loaded = loadYamlSafely(row.config);
// Remove deprecated properties some may still have in their config
delete loaded.success_emoji;
delete loaded.error_emoji;
return loaded;
} catch (err) { } catch (err) {
logger.error(`Error while loading config "${key}": ${err.message}`); logger.error(`Error while loading config "${key}": ${err.message}`);
return {}; return {};