Converted main codebase to typescript
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
16
src/utils/Events.ts
Normal file
16
src/utils/Events.ts
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user