mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 14:38:49 +00:00
21 lines
501 B
TypeScript
21 lines
501 B
TypeScript
import { v4 as uuidv4 } from 'uuid';
|
|
import { Events } from 'discord.js';
|
|
import loggerModule from '../../services/logger';
|
|
|
|
module.exports = {
|
|
name: Events.Error,
|
|
isDebug: false,
|
|
once: false,
|
|
execute: async (error) => {
|
|
const executionId = uuidv4();
|
|
const logger = loggerModule.child({
|
|
source: 'error.js',
|
|
module: 'event',
|
|
name: 'clientError',
|
|
executionId: executionId
|
|
});
|
|
|
|
logger.error(error);
|
|
}
|
|
};
|