mirror of
https://github.com/nx-bat/synapse.git
synced 2026-09-22 13:09:04 -04:00
(events): added messageCreate & messageUpdate. this also removes the
`shardReady` event as it isn't in use.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { CommandClient, Event, Guild } from "athena-prime";
|
||||
import { createConfiguration } from "../../utils/database";
|
||||
import { database } from "../../utils";
|
||||
|
||||
// ----------
|
||||
|
||||
@@ -7,7 +7,7 @@ class GuildCreateEvent extends Event<CommandClient> {
|
||||
event: string = 'guildCreate' as const;
|
||||
|
||||
async handle(context: CommandClient<any, any>, guild: Guild) {
|
||||
await createConfiguration(guild.id);
|
||||
await database.createConfiguration(guild.id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user