mirror of
https://github.com/nx-bat/pet-the-pond.git
synced 2026-09-22 10:29:11 -04:00
some logging for me.
This commit is contained in:
@@ -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');
|
||||
Reference in New Issue
Block a user