mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-14 21:31:50 +00:00
fix: remove deprecated success_emoji/error_emoji properties
This commit is contained in:
parent
c21aa7fbbf
commit
d4292205b9
1 changed files with 5 additions and 1 deletions
|
@ -307,7 +307,11 @@ connect().then(async () => {
|
|||
const row = await guildConfigs.getActiveByKey(key);
|
||||
if (row) {
|
||||
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) {
|
||||
logger.error(`Error while loading config "${key}": ${err.message}`);
|
||||
return {};
|
||||
|
|
Loading…
Add table
Reference in a new issue