seyfert 2.2.1-dev-12626405602.0 → 2.2.1-dev-12627012581.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?:
|
|
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?:
|
|
127
|
+
options?: CommandOptionWithType[];
|
|
127
128
|
toJSON(): {
|
|
128
129
|
options: APIApplicationCommandBasicOption[];
|
|
129
130
|
name: BaseCommand["name"];
|
package/lib/events/event.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface ClientDataEvent {
|
|
|
11
11
|
export type CallbackEventHandler = {
|
|
12
12
|
[K in keyof ClientEvents]: (...data: [Awaited<ClientEvents[K]>, UsingClient, number]) => unknown;
|
|
13
13
|
} & {
|
|
14
|
-
[K in keyof CustomEvents]: (...data: [Parameters<CustomEvents[K]>, UsingClient, number]) => unknown;
|
|
14
|
+
[K in keyof CustomEvents]: (...data: [...Parameters<CustomEvents[K]>, UsingClient, number]) => unknown;
|
|
15
15
|
};
|
|
16
16
|
export type EventContext<T extends {
|
|
17
17
|
data: {
|