Converted main codebase to typescript

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2023-12-28 13:17:57 +01:00
parent 1d9ded82a4
commit 68fde04bbb
122 changed files with 14230 additions and 1834 deletions

16
src/utils/Events.ts Normal file
View File

@@ -0,0 +1,16 @@
import { ExtendedClient as Client } from "./Client"
import { loadButtonEvents } from "./eventHandlers/button"
import { loadSlashCommandsEvents } from "./eventHandlers/command"
import { loadContextMenuEvents } from "./eventHandlers/contextmenu"
import { loadModalEvents } from "./eventHandlers/modal"
import { loadEvents } from "./eventHandlers/events"
import { loadAutocompleteEvents } from "./eventHandlers/autocomplete"
export function loadAllEvents(client: Client) {
loadEvents(client)
loadButtonEvents(client)
loadSlashCommandsEvents(client)
loadContextMenuEvents(client)
loadModalEvents(client)
loadAutocompleteEvents(client)
}