3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 04:25:01 +00:00

More initialization order fixes (vol 2)

This commit is contained in:
Dragory 2021-05-23 17:13:11 +03:00
parent 22316eb714
commit 72637fe1b3
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
27 changed files with 97 additions and 44 deletions

View file

@ -59,14 +59,16 @@ export const LocateUserPlugin = zeppelinGuildPlugin<LocateUserPluginType>()({
GuildBanRemoveAlertsEvt
],
afterLoad(pluginData) {
beforeLoad(pluginData) {
const { state, guild } = pluginData;
state.alerts = GuildVCAlerts.getGuildInstance(guild.id);
state.outdatedAlertsTimeout = null;
state.usersWithAlerts = [];
state.unloaded = false;
},
afterLoad(pluginData) {
outdatedAlertsLoop(pluginData);
fillActiveAlertsList(pluginData);
},