seyfert 2.2.1-dev-12553394166.0 → 2.2.1-dev-12553471154.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.
|
@@ -2,7 +2,7 @@ import type { ReturnCache } from '../..';
|
|
|
2
2
|
import type { GuildMemberStructure, GuildStructure, InteractionGuildMemberStructure, MessageStructure, OptionResolverStructure, UserStructure, WebhookMessageStructure } from '../../client/transformers';
|
|
3
3
|
import type { If, MakeRequired, UnionToTuple, When } from '../../common';
|
|
4
4
|
import type { InteractionCreateBodyRequest, InteractionMessageUpdateBodyRequest, MessageWebhookCreateBodyRequest } from '../../common/types/write';
|
|
5
|
-
import { type AllChannels, ChatInputCommandInteraction
|
|
5
|
+
import { type AllChannels, ChatInputCommandInteraction } from '../../structures';
|
|
6
6
|
import { BaseContext } from '../basecontext';
|
|
7
7
|
import type { RegisteredMiddlewares } from '../decorators';
|
|
8
8
|
import type { Command, ContextOptions, OptionsRecord, SubCommand } from './chat';
|
|
@@ -30,7 +30,7 @@ export declare class CommandContext<T extends OptionsRecord = {}, M extends keyo
|
|
|
30
30
|
editResponse(body: InteractionMessageUpdateBodyRequest): Promise<When<InferWithPrefix, WebhookMessageStructure | MessageStructure, WebhookMessageStructure>>;
|
|
31
31
|
deleteResponse(): Promise<void>;
|
|
32
32
|
editOrReply<WR extends boolean = false>(body: InteractionCreateBodyRequest | InteractionMessageUpdateBodyRequest, withResponse?: WR): Promise<When<WR, WebhookMessageStructure | When<InferWithPrefix, MessageStructure, never>, void | WebhookMessageStructure | When<InferWithPrefix, MessageStructure, never>>>;
|
|
33
|
-
followup(body: MessageWebhookCreateBodyRequest): Promise<
|
|
33
|
+
followup(body: MessageWebhookCreateBodyRequest): Promise<If<InferWithPrefix, WebhookMessageStructure | MessageStructure, WebhookMessageStructure>>;
|
|
34
34
|
fetchResponse(): Promise<If<InferWithPrefix, WebhookMessageStructure | MessageStructure, WebhookMessageStructure>>;
|
|
35
35
|
channel(mode?: 'rest' | 'flow'): Promise<If<InferWithPrefix, AllChannels | undefined, AllChannels>>;
|
|
36
36
|
channel(mode: 'cache'): ReturnCache<If<InferWithPrefix, AllChannels | undefined, AllChannels>>;
|
|
@@ -26,7 +26,7 @@ export declare class EntryPointContext<M extends keyof RegisteredMiddlewares = n
|
|
|
26
26
|
editResponse(body: InteractionMessageUpdateBodyRequest): Promise<WebhookMessageStructure>;
|
|
27
27
|
deleteResponse(): Promise<void>;
|
|
28
28
|
editOrReply<WR extends boolean = false>(body: InteractionCreateBodyRequest | InteractionMessageUpdateBodyRequest, withResponse?: WR): Promise<When<WR, WebhookMessageStructure, void>>;
|
|
29
|
-
followup(body: MessageWebhookCreateBodyRequest): Promise<
|
|
29
|
+
followup(body: MessageWebhookCreateBodyRequest): Promise<WebhookMessageStructure>;
|
|
30
30
|
fetchResponse(): Promise<WebhookMessageStructure>;
|
|
31
31
|
channel(mode?: 'rest' | 'flow'): Promise<AllChannels>;
|
|
32
32
|
channel(mode: 'cache'): ReturnCache<AllChannels>;
|
|
@@ -27,7 +27,7 @@ export declare class MenuCommandContext<T extends MessageCommandInteraction | Us
|
|
|
27
27
|
editResponse(body: InteractionMessageUpdateBodyRequest): Promise<WebhookMessageStructure>;
|
|
28
28
|
deleteResponse(): Promise<void>;
|
|
29
29
|
editOrReply<WR extends boolean = false>(body: InteractionCreateBodyRequest | InteractionMessageUpdateBodyRequest, withResponse?: WR): Promise<When<WR, WebhookMessageStructure, void>>;
|
|
30
|
-
followup(body: MessageWebhookCreateBodyRequest): Promise<
|
|
30
|
+
followup(body: MessageWebhookCreateBodyRequest): Promise<WebhookMessageStructure>;
|
|
31
31
|
fetchResponse(): Promise<WebhookMessageStructure>;
|
|
32
32
|
channel(mode?: 'rest' | 'flow'): Promise<AllChannels>;
|
|
33
33
|
channel(mode: 'cache'): ReturnCache<AllChannels>;
|
|
@@ -62,7 +62,7 @@ export declare class ComponentContext<Type extends keyof ContextComponentCommand
|
|
|
62
62
|
* @param fetchReply - Whether to fetch the reply or not.
|
|
63
63
|
*/
|
|
64
64
|
editOrReply<FR extends boolean = false>(body: InteractionCreateBodyRequest | InteractionMessageUpdateBodyRequest, fetchReply?: FR): Promise<When<FR, WebhookMessageStructure, void>>;
|
|
65
|
-
followup(body: MessageWebhookCreateBodyRequest): Promise<
|
|
65
|
+
followup(body: MessageWebhookCreateBodyRequest): Promise<WebhookMessageStructure>;
|
|
66
66
|
/**
|
|
67
67
|
* @returns A Promise that resolves to the fetched message
|
|
68
68
|
*/
|
|
@@ -58,7 +58,7 @@ export declare class ModalContext<M extends keyof RegisteredMiddlewares = never>
|
|
|
58
58
|
* @param fetchReply - Whether to fetch the reply or not.
|
|
59
59
|
*/
|
|
60
60
|
editOrReply<FR extends boolean = false>(body: InteractionCreateBodyRequest | InteractionMessageUpdateBodyRequest, fetchReply?: FR): Promise<When<FR, WebhookMessageStructure, void>>;
|
|
61
|
-
followup(body: MessageWebhookCreateBodyRequest): Promise<
|
|
61
|
+
followup(body: MessageWebhookCreateBodyRequest): Promise<WebhookMessageStructure>;
|
|
62
62
|
/**
|
|
63
63
|
* @returns A Promise that resolves to the fetched message
|
|
64
64
|
*/
|