mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 22:15:37 +00:00
feat: rename .js files to .ts
This commit is contained in:
1 parent
40bf9d926b
commit
92b1992b1a
54 files changed
No files matched your search
@@ -0,0 +1,22 @@
|
||||
const { Events } = require('discord.js');
|
||||
const { v4: uuidv4 } = require('uuid');
|
||||
|
||||
module.exports = {
|
||||
name: Events.GuildCreate,
|
||||
isDebug: false,
|
||||
once: false,
|
||||
execute: async (guild) => {
|
||||
const executionId = uuidv4();
|
||||
|
||||
const logger = require('../../services/logger').child({
|
||||
source: 'guildCreate.js',
|
||||
module: 'event',
|
||||
name: 'guildCreate',
|
||||
executionId: executionId,
|
||||
shardId: guild.shardId,
|
||||
guildId: guild.id
|
||||
});
|
||||
|
||||
logger.info(`Added to guild '${guild.id}' with ${guild.memberCount} members.`);
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user