mirror of
https://github.com/nx-bat/synapse.git
synced 2026-09-22 08:19:06 -04:00
f353a73a9e
`shardReady` event as it isn't in use.
15 lines
387 B
TypeScript
15 lines
387 B
TypeScript
import { CommandClient, Event, Guild } from "athena-prime";
|
|
import { database } from "../../utils";
|
|
|
|
// ----------
|
|
|
|
class GuildCreateEvent extends Event<CommandClient> {
|
|
event: string = 'guildCreate' as const;
|
|
|
|
async handle(context: CommandClient<any, any>, guild: Guild) {
|
|
await database.createConfiguration(guild.id);
|
|
}
|
|
}
|
|
|
|
export default new GuildCreateEvent('guildCreate');
|