mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 22:01:50 +00:00
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) {
|
||||
pluginData.state.unregisterGuildEventListener();
|
||||
pluginData.state.unregisterGuildEventListener?.();
|
||||
pluginData.state.unloaded = true;
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue