Skip to content

Commit

Permalink
fix: move args related directories
Browse files Browse the repository at this point in the history
  • Loading branch information
mouse484 committed Oct 22, 2022
1 parent 2c9d36e commit 09c81ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
13 changes: 4 additions & 9 deletions src/lib/context/command.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import { Client } from 'ecstar';
import {
Message,
Snowflake,
TextChannel,
User,
} from 'discord.js';
import { Message, Snowflake, TextChannel, User } from 'discord.js';

import { ContextBase } from 'ecstar/context';
import { parser, parsed } from 'ecstar/parser';
import { getArgs, argsType, TypeList } from 'ecstar/getArgs';
import { parser, parsed } from 'ecstar/utils/parser';
import { getArgs, argsType, TypeList } from 'ecstar/utils/getArgs';

export interface CommandContext extends ContextBase {
type: 'command';
Expand All @@ -18,7 +13,7 @@ export interface CommandContext extends ContextBase {
getArgs<T extends { [key: string]: keyof TypeList }>(types: T): argsType<T>;
args: parsed['args'];
send(
content: Parameters<TextChannel["send"]>[0],
content: Parameters<TextChannel['send']>[0],
channelID?: Snowflake
): Promise<Message>;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/getArgs.ts → src/lib/utils/getArgs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { parsed } from 'ecstar/parser';
import { parsed } from 'ecstar/utils/parser';

export type TypeList = {
string: string;
Expand Down
File renamed without changes.

0 comments on commit 09c81ad

Please sign in to comment.