fix: Fixed most imports and some typescript changes

This commit is contained in:
Marius Begby committed 2023-08-27 00:39:03 +02:00
1 parent 1a7f800ba2
commit 0d9f4bd404
60 files changed
+488 -265

No files matched your search

+6 -5
View File
@@ -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',