mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 22:15:37 +00:00
fix: Fixed most imports and some typescript changes
This commit is contained in:
1 parent
1a7f800ba2
commit
0d9f4bd404
60 files changed
+488
-265
No files matched your search
@@ -1,9 +1,11 @@
|
||||
import config from 'config';
|
||||
const embedOptions = config.get('embedOptions');
|
||||
import { EmbedOptions } from '../../types/configTypes';
|
||||
const embedOptions: EmbedOptions = config.get('embedOptions');
|
||||
const botOptions = config.get('botOptions');
|
||||
const systemOptions = config.get('systemOptions');
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
const { v4: uuidv4 } = require('uuid');
|
||||
import { EmbedBuilder } from 'discord.js';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import loggerModule from '../../services/logger';
|
||||
|
||||
// Emitted when the player queue encounters error (general error with queue)
|
||||
module.exports = {
|
||||
@@ -12,8 +14,7 @@ module.exports = {
|
||||
isPlayerEvent: true,
|
||||
execute: async (queue, error) => {
|
||||
const executionId = uuidv4();
|
||||
|
||||
const logger = require('../../services/logger').child({
|
||||
const logger = loggerModule.child({
|
||||
source: 'generalError.js',
|
||||
module: 'event',
|
||||
name: 'playerGeneralError',
|
||||
|
||||
Reference in new issue
Block a user