Files
Papo/src/events/channelCreate.ts
Pascal Prießnitz 5aef575f41
All checks were successful
Deploy Discord Bot / deploy (push) Successful in 37s
[deploy] Add server stats module with dashboard controls
2025-12-04 11:37:49 +01:00

15 lines
460 B
TypeScript

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;