import { GuildChannel } from 'discord.js'; import { EventHandler } from '../utils/types'; import { context } from '../config/context'; const event: EventHandler = { name: 'channelCreate', execute(channel: GuildChannel) { if (!channel.guild) return; context.logging.logSystem(channel.guild, `Channel erstellt: ${channel.name} (${channel.id})`); context.stats.refreshGuild(channel.guild.id).catch(() => undefined); } }; export default event;