14 lines
387 B
TypeScript
14 lines
387 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})`);
|
|
}
|
|
};
|
|
|
|
export default event;
|