mirror of
https://github.com/nx-bat/synapse.git
synced 2026-09-22 17:29:05 -04:00
(init): initial files. includes basic client & database template using postgres.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { CommandClient, Event, Guild } from "athena-prime";
|
||||
import { deleteConfiguration } from "../../utils/database";
|
||||
|
||||
// ----------
|
||||
|
||||
class GuildDeleteEvent extends Event<CommandClient> {
|
||||
event: string = 'guildDelete' as const;
|
||||
|
||||
async handle(context: CommandClient<any, any>, guild: Guild | { id: string }) {
|
||||
await deleteConfiguration(guild.id);
|
||||
}
|
||||
}
|
||||
|
||||
export default new GuildDeleteEvent('guildDelete');
|
||||
Reference in New Issue
Block a user