tangled
alpha
login
or
join now
thevoid.cafe
/
voidy
0
fork
atom
A powerful and extendable Discord bot, with it's own module system :3
thevoid.cafe/projects/voidy
0
fork
atom
overview
issues
pulls
pipelines
✨ Deploy commands on client ready
Jo
1 year ago
135d9f24
fd395306
+4
-1
1 changed file
expand all
collapse all
unified
split
src
events
client
ready.ts
+4
-1
src/events/client/ready.ts
···
1
1
import { Events } from "discord.js";
2
2
import { GatewayReadyDispatchData } from "discord-api-types/gateway";
3
3
+
import { CommandHandler } from "../../handlers/CommandHandler.ts";
3
4
4
5
export default {
5
6
name: Events.ClientReady,
6
6
-
execute(event: GatewayReadyDispatchData) {
7
7
+
async execute(event: GatewayReadyDispatchData) {
8
8
+
await CommandHandler.deployCommands();
9
9
+
7
10
console.log(`[Voidy] Ready on account ${event.user.username}#${event.user.discriminator}`);
8
11
}
9
12
}