some logging for me.

This commit is contained in:
2026-09-13 21:14:56 +08:00
parent b7b26796bd
commit b32278c108
7 changed files with 81 additions and 18 deletions
+23
View File
@@ -0,0 +1,23 @@
import { CommandClient, Event, Guild } from 'athena-prime';
// ----------
class GuildCreateEvent extends Event<CommandClient> {
event: string = 'guildCreate' as const;
async handle(context: CommandClient<any, any>, guild: { id: string; }) {
await context.createMessage(process.env.LOGGING_CHANNEL, {
embed: {
color: 0xff5555,
title: 'Left Guild',
fields: [
{ name: 'Name', value: `${guild.id}`, inline: false }
],
}
});
}
}
export default new GuildCreateEvent('guildCreate');