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

@@ -1,9 +1,11 @@
import { EmbedOptions } from '../../types/configTypes';
import loggerModule from '../../services/logger';
import config from 'config';
const embedOptions = config.get('embedOptions');
const { EmbedBuilder } = require('discord.js');
const embedOptions: EmbedOptions = config.get('embedOptions');
import { EmbedBuilder } from 'discord.js';
exports.notInVoiceChannel = async ({ interaction, executionId }) => {
const logger = require('../../services/logger').child({
export const notInVoiceChannel = async ({ interaction, executionId }) => {
const logger = loggerModule.child({
source: 'voiceChannelValidator.js',
module: 'validator',
name: 'notInVoiceChannel',
@@ -30,8 +32,8 @@ exports.notInVoiceChannel = async ({ interaction, executionId }) => {
return false;
};
exports.notInSameVoiceChannel = async ({ interaction, queue, executionId }) => {
const logger = require('../../services/logger').child({
export const notInSameVoiceChannel = async ({ interaction, queue, executionId }) => {
const logger = loggerModule.child({
source: 'voiceChannelValidator.js',
module: 'utilValidation',
name: 'notInSameVoiceChannel',