nexocord 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/creators.d.ts +1 -1
- package/dist/core/creators.d.ts.map +1 -1
- package/dist/core/types/Command.d.ts +1 -1
- package/dist/core/types/Command.d.ts.map +1 -1
- package/dist/core/types/Event.d.ts +1 -1
- package/dist/core/types/Event.d.ts.map +1 -1
- package/dist/core/types/Responder.d.ts +1 -1
- package/dist/core/types/Responder.d.ts.map +1 -1
- package/dist/core/types/Run.d.ts +3 -2
- package/dist/core/types/Run.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/core/creators.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ClientEvents } from 'discord.js';
|
|
2
|
-
import { Command, CommandType, Event, Responder, ResponderParser, ResponderTypes } from '
|
|
2
|
+
import { Command, CommandType, Event, Responder, ResponderParser, ResponderTypes } from './types';
|
|
3
3
|
export declare const createCommand: <T extends CommandType>(command: Command<T>) => Command<T>, createSubcommand: (name: string, directory: string) => Promise<any>, createEvent: <K extends keyof ClientEvents>(options: Event<K>) => Event<K>, createResponder: <const Path extends string, const Type extends ResponderTypes, Parse extends ResponderParser<Path> | undefined = undefined>(opts: Responder<Path, Type, Parse>) => Responder<Path, Type, Parse>;
|
|
4
4
|
//# sourceMappingURL=creators.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../src/core/creators.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,YAAY,EAIb,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../src/core/creators.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,YAAY,EAIb,MAAM,YAAY,CAAC;AAQpB,OAAO,EACL,OAAO,EACP,WAAW,EACX,KAAK,EACL,SAAS,EACT,eAAe,EACf,cAAc,EACf,MAAM,SAAS,CAAC;AAsFjB,eAAO,MAAQ,aAAa,GAjFC,CAAC,SAAS,WAAW,WAAW,OAAO,CAAC,CAAC,CAAC,iBAiFzC,gBAAgB,SA7EF,MAAM,aAAa,MAAM,KAAG,OAAO,CAAC,GAAG,CAAC,EA6EpC,WAAW,GAhBhC,CAAC,SAAS,MAAM,YAAY,WAAW,KAAK,CAAC,CAAC,CAAC,KAAG,KAAK,CAAC,CAAC,CAAC,EAgBxB,eAAe,SAXhE,IAAI,SAAS,MAAM,QACnB,IAAI,SAAS,cAAc,EACjC,KAAK,SAAS,eAAe,CAAC,IAAI,CAAC,GAAG,SAAS,oBACzC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,iCAS5B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChatInputCommandInteraction, UserContextMenuCommandInteraction, MessageContextMenuCommandInteraction, ContextMenuCommandInteraction, APIApplicationCommandOption, PermissionResolvable, PermissionFlagsBits } from 'discord.js';
|
|
2
|
-
import { RunCommand, RunAutoComplete } from '
|
|
2
|
+
import { RunCommand, RunAutoComplete } from './Run';
|
|
3
3
|
export declare enum CommandType {
|
|
4
4
|
ChatInput = 1,
|
|
5
5
|
User = 2,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Command.d.ts","sourceRoot":"","sources":["../../../src/core/types/Command.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,2BAA2B,EAC3B,iCAAiC,EACjC,oCAAoC,EACpC,6BAA6B,EAC7B,2BAA2B,EAC3B,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Command.d.ts","sourceRoot":"","sources":["../../../src/core/types/Command.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,2BAA2B,EAC3B,iCAAiC,EACjC,oCAAoC,EACpC,6BAA6B,EAC7B,2BAA2B,EA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YAAY,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Event.d.ts","sourceRoot":"","sources":["../../../src/core/types/Event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,MAAM,KAAK,CAAC,CAAC,SAAS,MAAM,YAAY,GAAG,MAAM,YAAY,IAAI;IACrE,IAAI,EAAE,CAAC,CAAC;IACR,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;CAClB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonInteraction, ModalSubmitInteraction, StringSelectMenuInteraction, UserSelectMenuInteraction, RoleSelectMenuInteraction, ChannelSelectMenuInteraction, MentionableSelectMenuInteraction } from 'discord.js';
|
|
2
2
|
import { ZodTypeAny, infer as zInfer } from 'zod/v3';
|
|
3
|
-
import { RunResponder } from '
|
|
3
|
+
import type { RunResponder } from './Run';
|
|
4
4
|
export declare enum ResponderType {
|
|
5
5
|
Button = "button",
|
|
6
6
|
Modal = "modal",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Responder.d.ts","sourceRoot":"","sources":["../../../src/core/types/Responder.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,4BAA4B,EAC5B,gCAAgC,EACjC,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,UAAU,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Responder.d.ts","sourceRoot":"","sources":["../../../src/core/types/Responder.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iB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;IACd,GAAG,EAAE,YAAY,CAAC,6BAA6B,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IACpE,QAAQ,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,CAAC"}
|
package/dist/core/types/Run.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AutocompleteInteraction, ClientEvents } from 'discord.js';
|
|
2
|
-
import { ExtendedClient } from '
|
|
3
|
-
import { CommandInteraction, CommandType
|
|
2
|
+
import type { ExtendedClient } from '../client/ExtendedClient';
|
|
3
|
+
import type { CommandInteraction, CommandType } from './Command';
|
|
4
|
+
import type { ResponderParse } from './Responder';
|
|
4
5
|
export type RunEvent<K extends keyof ClientEvents = keyof ClientEvents> = (...args: [...ClientEvents[K], ExtendedClient]) => any;
|
|
5
6
|
export type RunCommand<T extends CommandType> = (interaction: CommandInteraction<T>, client?: ExtendedClient) => any;
|
|
6
7
|
export type RunResponder<I, Path extends string, P = undefined> = (interaction: I, params: ResponderParse<P, Path>) => unknown | Promise<unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Run.d.ts","sourceRoot":"","sources":["../../../src/core/types/Run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Run.d.ts","sourceRoot":"","sources":["../../../src/core/types/Run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,MAAM,YAAY,GAAG,MAAM,YAAY,IAAI,CACxE,GAAG,IAAI,EAAE,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,KAC1C,GAAG,CAAC;AAGT,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,WAAW,IAAI,CAC9C,WAAW,EAAE,kBAAkB,CAAC,CAAC,CAAC,EAClC,MAAM,CAAC,EAAE,cAAc,KACpB,GAAG,CAAC;AAGT,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,IAAI,SAAS,MAAM,EAAE,CAAC,GAAG,SAAS,IAAI,CAChE,WAAW,EAAE,CAAC,EACd,MAAM,EAAE,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,KAC5B,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAEhC,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,EAAE,uBAAuB,EAAE,OAAO,EAAE,MAAM,KAAK,GAAG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nexocord",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Framework TypeScript moderno para criar bots escaláveis do Discord com discord.js v14, apresentando arquitetura modular, cli e utilitários amigáveis para desenvolvedores.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|