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,7 +1,9 @@
|
||||
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 { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
|
||||
import { SlashCommandBuilder, EmbedBuilder } from 'discord.js';
|
||||
import loggerModule from '../../services/logger';
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
@@ -10,7 +12,7 @@ module.exports = {
|
||||
.setDMPermission(false)
|
||||
.setNSFW(false),
|
||||
execute: async ({ interaction, client, executionId }) => {
|
||||
const logger = require('../../services/logger').child({
|
||||
const logger = loggerModule.child({
|
||||
source: 'help.js',
|
||||
module: 'slashCommand',
|
||||
name: '/help',
|
||||
|
||||
Reference in new issue
Block a user