moving and fixing imports

This commit is contained in:
jacoobes
2023-04-14 12:45:41 -05:00
parent 457cb25cb2
commit 09e57c73ac
6 changed files with 26 additions and 28 deletions

View File

@@ -20,7 +20,7 @@ import type {
Module,
} from '../../types/module';
import type { Args, Payload, Processed, SlashOptions } from '../../types/handler';
import type Context from '../structures/context';
import type { Context } from '../structures/context';
import type { MessageContextMenuCommandInteraction } from 'discord.js';
import type {
ButtonInteraction,

View File

@@ -138,3 +138,22 @@ export enum PayloadType {
*/
Warning = 'warning',
}
export const enum ApplicationCommandType {
User,
Message,
ChatInput
}
export const enum ComponentType {
ActionRow = 1,
Button = 2,
StringSelect = 3,
TextInput = 4,
UserSelect = 5,
RoleSelect = 6,
MentionableSelect = 7,
ChannelSelect = 8,
}

View File

@@ -1,4 +1,4 @@
import Context from './context';
import { Context } from './context';
import type Wrapper from './wrapper';
import { ModuleStore } from './moduleStore';
export * from './errors';

View File

@@ -1,22 +1,8 @@
import type { CommandModule } from '../../types/module';
import type { Processed } from '../../types/handler';
import { ApplicationCommandType, ComponentType } from './enums';
const enum ApplicationCommandType {
User,
Message,
ChatInput
}
const enum ComponentType {
ActionRow = 1,
Button = 2,
StringSelect = 3,
TextInput = 4,
UserSelect = 5,
RoleSelect = 6,
MentionableSelect = 7,
ChannelSelect = 8,
}
/**
* @since 2.0.0

View File

@@ -1,6 +1,5 @@
import type Wrapper from './structures/wrapper';
import type { Wrapper, CommandType, EventType, PluginType } from '../core/structures';
import { makeEventsHandler } from './events/userDefinedEventsHandling';
import { CommandType, EventType, PluginType } from './structures/enums';
import type { AnyEventPlugin, ControlPlugin, InitPlugin, Plugin } from '../types/plugin';
import { makeInteractionCreate } from './events/interactionHandler';
import { makeReadyEvent } from './events/readyHandler';
@@ -14,9 +13,9 @@ import type {
InputEvent,
} from '../types/module';
import type { Dependencies, DependencyConfiguration } from '../types/handler';
import { composeRoot, makeFetcher, useContainer } from './dependencies/provider';
import type { Logging } from './contracts';
import { err, ok, partition } from './utilities/functions';
import { composeRoot, makeFetcher, useContainer } from '../core/dependencies/provider';
import type { Logging } from '../core/contracts';
import { err, ok, partition } from '../core/utilities/functions';
import type { Awaitable, ClientEvents } from 'discord.js';
/**

View File

@@ -1,6 +0,0 @@
import Context from './context';
import type Wrapper from './wrapper';
import { ModuleStore } from './moduleStore';
export * from './errors';
export * from './enums';
export { Context, Wrapper, ModuleStore };