mirror of
https://github.com/nx-bat/pet-the-pond.git
synced 2026-09-22 02:19:10 -04:00
24 lines
550 B
TypeScript
24 lines
550 B
TypeScript
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');
|