Added removal of cache when not needed

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-02-07 18:01:02 +01:00
parent 477b60da26
commit aaffac735c
7 changed files with 7 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ export default function loadAutocompleteEvents(client: Client, ft: FileType) {
)
)
}
delete require.cache[require.resolve(filePath)]
}
client.on(Events.InteractionCreate, async interaction => {