seyfert 2.2.1-dev-12624658735.0 → 2.2.1-dev-12626895432.0

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.
@@ -4,6 +4,7 @@ import type { GuildRoleStructure, InteractionGuildMemberStructure, UserStructure
4
4
  import type { AllChannels, AutocompleteInteraction } from '../../structures';
5
5
  import { type APIApplicationCommandBasicOption, type APIApplicationCommandOption, ApplicationCommandOptionType, ApplicationCommandType, type ApplicationIntegrationType, type InteractionContextType, type LocaleString } from '../../types';
6
6
  import type { Groups, RegisteredMiddlewares } from '../decorators';
7
+ import type { CommandOptionWithType } from '../handle';
7
8
  import type { CommandContext } from './chatcontext';
8
9
  import type { ExtraProps, IgnoreCommand, OnOptionsReturnObject, SeyfertChannelMap, UsingClient } from './shared';
9
10
  export interface ReturnOptionsTypes {
@@ -71,7 +72,7 @@ export declare class BaseCommand {
71
72
  botPermissions?: bigint;
72
73
  name_localizations?: Partial<Record<LocaleString, string>>;
73
74
  description_localizations?: Partial<Record<LocaleString, string>>;
74
- options?: CommandOption[] | SubCommand[];
75
+ options?: CommandOptionWithType[] | SubCommand[];
75
76
  ignore?: IgnoreCommand;
76
77
  aliases?: string[];
77
78
  props: ExtraProps;
@@ -123,7 +124,7 @@ export declare class Command extends BaseCommand {
123
124
  export declare abstract class SubCommand extends BaseCommand {
124
125
  type: ApplicationCommandOptionType;
125
126
  group?: string;
126
- options?: CommandOption[];
127
+ options?: CommandOptionWithType[];
127
128
  toJSON(): {
128
129
  options: APIApplicationCommandBasicOption[];
129
130
  name: BaseCommand["name"];
@@ -15,7 +15,7 @@ export type CallbackEventHandler = {
15
15
  };
16
16
  export type EventContext<T extends {
17
17
  data: {
18
- name: ClientNameEvents;
18
+ name: ClientNameEvents | CustomEventsKeys;
19
19
  };
20
20
  }> = Parameters<CallbackEventHandler[T['data']['name']]>;
21
21
  export interface ClientEvent {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seyfert",
3
- "version": "2.2.1-dev-12624658735.0",
3
+ "version": "2.2.1-dev-12626895432.0",
4
4
  "description": "The most advanced framework for discord bots",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",