mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
fix: separated types and classes
This commit is contained in:
1 parent
6dcddee2e9
commit
ea32ae6c61
42 files changed
+234
-296
No files matched your search
@@ -2,7 +2,7 @@ import { AutocompleteInteraction } from 'discord.js';
|
||||
import { Logger } from 'pino';
|
||||
import loggerModule from '../services/logger';
|
||||
import { ExtendedClient } from '../types/clientTypes';
|
||||
import { BaseAutocompleteInteraction } from '../types/interactionTypes';
|
||||
import { BaseAutocompleteInteraction } from '../classes/interactions';
|
||||
|
||||
export const handleAutocomplete = async (
|
||||
interaction: AutocompleteInteraction,
|
||||
|
||||
@@ -2,7 +2,7 @@ import { ChatInputCommandInteraction } from 'discord.js';
|
||||
import { Logger } from 'pino';
|
||||
import loggerModule from '../services/logger';
|
||||
import { ExtendedClient } from '../types/clientTypes';
|
||||
import { BaseSlashCommandInteraction } from '../types/interactionTypes';
|
||||
import { BaseSlashCommandInteraction } from '../classes/interactions';
|
||||
import { cannotSendMessageInChannel } from '../utils/validation/permissionValidator';
|
||||
|
||||
export const handleCommand = async (
|
||||
|
||||
@@ -2,7 +2,7 @@ import { MessageComponentInteraction } from 'discord.js';
|
||||
import { Logger } from 'pino';
|
||||
import loggerModule from '../services/logger';
|
||||
import { ExtendedClient } from '../types/clientTypes';
|
||||
import { BaseComponentInteraction } from '../types/interactionTypes';
|
||||
import { BaseComponentInteraction } from '../classes/interactions';
|
||||
import { cannotSendMessageInChannel } from '../utils/validation/permissionValidator';
|
||||
|
||||
export const handleComponent = async (
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
import { Logger } from 'pino';
|
||||
import loggerModule from '../services/logger';
|
||||
import { BotOptions, EmbedOptions } from '../types/configTypes';
|
||||
import { CustomError } from '../types/interactionTypes';
|
||||
import { CustomError } from '../classes/interactions';
|
||||
|
||||
const embedOptions: EmbedOptions = config.get('embedOptions');
|
||||
const botOptions: BotOptions = config.get('botOptions');
|
||||
|
||||
Reference in new issue
Block a user