mirror of
https://github.com/sern-handler/handler
synced 2026-06-06 01:16:55 +00:00
moving and fixing imports
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Context from './context';
|
||||
import { Context } from './context';
|
||||
import type Wrapper from './wrapper';
|
||||
import { ModuleStore } from './moduleStore';
|
||||
export * from './errors';
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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';
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 };
|
||||
Reference in New Issue
Block a user