fix: fix crash when unloading reminders plugin without running afterLoad()
This commit is contained in:
parent
b05fbe1d04
commit
d60d2bc568
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ export const RemindersPlugin = zeppelinGuildPlugin<RemindersPluginType>()({
|
||||||
},
|
},
|
||||||
|
|
||||||
beforeUnload(pluginData) {
|
beforeUnload(pluginData) {
|
||||||
pluginData.state.unregisterGuildEventListener();
|
pluginData.state.unregisterGuildEventListener?.();
|
||||||
pluginData.state.unloaded = true;
|
pluginData.state.unloaded = true;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue