Add events module with dashboard UI, scheduling, signups, and settings updates; extend env/readme.
This commit is contained in:
13
src/events/channelCreate.ts
Normal file
13
src/events/channelCreate.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user