17 lines
439 B
TypeScript
17 lines
439 B
TypeScript
// External Imports
|
|
import { CommandClient, Event, Guild } from 'athena-prime';
|
|
|
|
// Internal Imports
|
|
import { Database } from '../shared/Database';
|
|
|
|
// ---------------
|
|
|
|
class GuildCreateEvent extends Event<CommandClient> {
|
|
event: string = 'guildCreate' as const;
|
|
|
|
async handle(context: CommandClient<any, any>, guild: Guild) {
|
|
await Database.GetOrCreateSettings(guild.id);
|
|
}
|
|
}
|
|
|
|
export default new GuildCreateEvent('guildCreate'); |