Added removal of cache when not needed
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
@@ -14,6 +14,7 @@ export default function loadEvents(client: Client) {
|
||||
if (!event.disabled) {
|
||||
client.on(event.event, event.execute)
|
||||
}
|
||||
delete require.cache[require.resolve(eventPath)]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user