seyfert 2.1.1-dev-12418439067.0 → 2.1.1-dev-12450598903.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.
- package/lib/commands/applications/chatcontext.d.ts +5 -5
- package/lib/commands/applications/entrycontext.d.ts +8 -8
- package/lib/commands/applications/menucontext.d.ts +10 -10
- package/lib/commands/handle.d.ts +1 -1
- package/lib/commands/optionresolver.d.ts +1 -1
- package/lib/common/shorters/application.d.ts +3 -2
- package/lib/common/shorters/bans.d.ts +3 -2
- package/lib/common/shorters/channels.d.ts +3 -3
- package/lib/common/shorters/emojis.d.ts +5 -4
- package/lib/common/shorters/guilds.d.ts +18 -18
- package/lib/common/shorters/guilds.js +2 -2
- package/lib/common/shorters/interaction.d.ts +6 -5
- package/lib/common/shorters/members.d.ts +10 -10
- package/lib/common/shorters/messages.d.ts +9 -8
- package/lib/common/shorters/roles.d.ts +7 -6
- package/lib/common/shorters/templates.d.ts +7 -6
- package/lib/common/shorters/threads.d.ts +7 -6
- package/lib/common/shorters/threads.js +2 -2
- package/lib/common/shorters/users.d.ts +5 -4
- package/lib/common/shorters/webhook.d.ts +9 -8
- package/lib/components/componentcontext.d.ts +9 -9
- package/lib/components/modalcontext.d.ts +9 -9
- package/lib/events/hooks/auto_moderation.d.ts +4 -3
- package/lib/events/hooks/custom.d.ts +7 -7
- package/lib/events/hooks/dispatch.d.ts +2 -1
- package/lib/events/hooks/entitlement.d.ts +4 -3
- package/lib/events/hooks/guild.d.ts +20 -105
- package/lib/events/hooks/integration.d.ts +8 -148
- package/lib/events/hooks/message.d.ts +3 -6
- package/lib/events/hooks/soundboard.d.ts +12 -115
- package/lib/events/hooks/thread.d.ts +3 -7
- package/lib/events/hooks/typing.d.ts +5 -49
- package/lib/structures/AutoModerationRule.d.ts +9 -8
- package/lib/structures/ClientUser.d.ts +3 -2
- package/lib/structures/Guild.d.ts +33 -38
- package/lib/structures/GuildBan.d.ts +5 -4
- package/lib/structures/GuildEmoji.d.ts +8 -7
- package/lib/structures/GuildMember.d.ts +17 -16
- package/lib/structures/GuildRole.d.ts +10 -9
- package/lib/structures/GuildTemplate.d.ts +12 -11
- package/lib/structures/Interaction.d.ts +7 -7
- package/lib/structures/Interaction.js +1 -1
- package/lib/structures/Message.d.ts +14 -14
- package/lib/structures/Poll.d.ts +3 -2
- package/lib/structures/Sticker.d.ts +8 -8
- package/lib/structures/User.d.ts +4 -3
- package/lib/structures/VoiceState.d.ts +8 -8
- package/lib/structures/Webhook.d.ts +8 -7
- package/lib/structures/channels.d.ts +27 -27
- package/lib/structures/channels.js +1 -1
- package/package.json +4 -4
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ThreadChannelStructure } from '../../client/transformers';
|
|
1
2
|
import type { APIThreadMember, RESTGetAPIChannelThreadMembersQuery, RESTGetAPIChannelThreadsArchivedQuery, RESTPatchAPIChannelJSONBody, RESTPostAPIChannelMessagesThreadsJSONBody, RESTPostAPIChannelThreadsJSONBody, RESTPostAPIGuildForumThreadsJSONBody } from '../../types';
|
|
2
3
|
import type { MakeRequired, When } from '../types/util';
|
|
3
4
|
import { BaseShorter } from './base';
|
|
@@ -8,25 +9,25 @@ export declare class ThreadShorter extends BaseShorter {
|
|
|
8
9
|
* @param reason The reason for unpinning the message.
|
|
9
10
|
* @returns A promise that resolves when the thread is succesfully created.
|
|
10
11
|
*/
|
|
11
|
-
create(channelId: string, body: RESTPostAPIChannelThreadsJSONBody | RESTPostAPIGuildForumThreadsJSONBody, reason?: string): Promise<
|
|
12
|
+
create(channelId: string, body: RESTPostAPIChannelThreadsJSONBody | RESTPostAPIGuildForumThreadsJSONBody, reason?: string): Promise<ThreadChannelStructure>;
|
|
12
13
|
fromMessage(channelId: string, messageId: string, options: RESTPostAPIChannelMessagesThreadsJSONBody & {
|
|
13
14
|
reason?: string;
|
|
14
|
-
}): Promise<
|
|
15
|
+
}): Promise<ThreadChannelStructure>;
|
|
15
16
|
join(threadId: string): Promise<never>;
|
|
16
17
|
leave(threadId: string): Promise<never>;
|
|
17
|
-
lock(threadId: string, locked?: boolean, reason?: string): Promise<
|
|
18
|
-
edit(threadId: string, body: RESTPatchAPIChannelJSONBody, reason?: string): Promise<
|
|
18
|
+
lock(threadId: string, locked?: boolean, reason?: string): Promise<ThreadChannelStructure>;
|
|
19
|
+
edit(threadId: string, body: RESTPatchAPIChannelJSONBody, reason?: string): Promise<ThreadChannelStructure>;
|
|
19
20
|
removeMember(threadId: string, memberId: string): Promise<never>;
|
|
20
21
|
fetchMember<WithMember extends boolean = false>(threadId: string, memberId: string, with_member: WithMember): Promise<When<WithMember, Required<APIThreadMember>, GetAPIChannelThreadMemberResult>>;
|
|
21
22
|
addMember(threadId: string, memberId: string): Promise<never>;
|
|
22
23
|
listMembers<T extends RESTGetAPIChannelThreadMembersQuery = RESTGetAPIChannelThreadMembersQuery>(threadId: string, query?: T): Promise<InferWithMemberOnList<T>>;
|
|
23
24
|
listArchivedThreads(channelId: string, type: 'public' | 'private', query?: RESTGetAPIChannelThreadsArchivedQuery): Promise<{
|
|
24
|
-
threads:
|
|
25
|
+
threads: ThreadChannelStructure[];
|
|
25
26
|
members: GetAPIChannelThreadMemberResult[];
|
|
26
27
|
hasMore: boolean;
|
|
27
28
|
}>;
|
|
28
29
|
listJoinedArchivedPrivate(channelId: string, query?: RESTGetAPIChannelThreadsArchivedQuery): Promise<{
|
|
29
|
-
threads:
|
|
30
|
+
threads: ThreadChannelStructure[];
|
|
30
31
|
members: GetAPIChannelThreadMemberResult[];
|
|
31
32
|
hasMore: boolean;
|
|
32
33
|
}>;
|
|
@@ -40,8 +40,8 @@ class ThreadShorter extends base_1.BaseShorter {
|
|
|
40
40
|
lock(threadId, locked = true, reason) {
|
|
41
41
|
return this.edit(threadId, { locked }, reason).then(x => (0, structures_1.channelFrom)(x, this.client));
|
|
42
42
|
}
|
|
43
|
-
edit(threadId, body, reason) {
|
|
44
|
-
return this.client.channels.edit(threadId, body, { reason });
|
|
43
|
+
async edit(threadId, body, reason) {
|
|
44
|
+
return (await this.client.channels.edit(threadId, body, { reason }));
|
|
45
45
|
}
|
|
46
46
|
removeMember(threadId, memberId) {
|
|
47
47
|
return this.client.proxy.channels(threadId)['thread-members'](memberId).delete();
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { type DMChannelStructure, type MessageStructure, type UserStructure } from '../../client/transformers';
|
|
1
2
|
import type { MessageCreateBodyRequest } from '../types/write';
|
|
2
3
|
import { BaseShorter } from './base';
|
|
3
4
|
export declare class UsersShorter extends BaseShorter {
|
|
4
|
-
createDM(userId: string, force?: boolean): Promise<
|
|
5
|
-
deleteDM(userId: string, reason?: string): Promise<
|
|
6
|
-
fetch(userId: string, force?: boolean): Promise<
|
|
5
|
+
createDM(userId: string, force?: boolean): Promise<DMChannelStructure>;
|
|
6
|
+
deleteDM(userId: string, reason?: string): Promise<DMChannelStructure>;
|
|
7
|
+
fetch(userId: string, force?: boolean): Promise<UserStructure>;
|
|
7
8
|
raw(userId: string, force?: boolean): Promise<import("../../types").APIUser>;
|
|
8
|
-
write(userId: string, body: MessageCreateBodyRequest): Promise<
|
|
9
|
+
write(userId: string, body: MessageCreateBodyRequest): Promise<MessageStructure>;
|
|
9
10
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { type WebhookMessageStructure, type WebhookStructure } from '../../client/transformers';
|
|
1
2
|
import { type MessageWebhookMethodEditParams, type MessageWebhookMethodWriteParams } from '../../structures';
|
|
2
3
|
import type { RESTPatchAPIWebhookJSONBody, RESTPatchAPIWebhookWithTokenJSONBody, RESTPostAPIChannelWebhookJSONBody } from '../../types';
|
|
3
4
|
import { BaseShorter } from './base';
|
|
4
5
|
export declare class WebhookShorter extends BaseShorter {
|
|
5
|
-
create(channelId: string, body: RESTPostAPIChannelWebhookJSONBody): Promise<
|
|
6
|
+
create(channelId: string, body: RESTPostAPIChannelWebhookJSONBody): Promise<WebhookStructure>;
|
|
6
7
|
/**
|
|
7
8
|
* Deletes a webhook.
|
|
8
9
|
* @param webhookId The ID of the webhook.
|
|
@@ -17,14 +18,14 @@ export declare class WebhookShorter extends BaseShorter {
|
|
|
17
18
|
* @param options The optional parameters including token and reason.
|
|
18
19
|
* @returns A Promise that resolves when the webhook is edited.
|
|
19
20
|
*/
|
|
20
|
-
edit(webhookId: string, body: RESTPatchAPIWebhookWithTokenJSONBody | RESTPatchAPIWebhookJSONBody, options: WebhookShorterOptionalParams): Promise<
|
|
21
|
+
edit(webhookId: string, body: RESTPatchAPIWebhookWithTokenJSONBody | RESTPatchAPIWebhookJSONBody, options: WebhookShorterOptionalParams): Promise<WebhookStructure>;
|
|
21
22
|
/**
|
|
22
23
|
* Fetches a webhook.
|
|
23
24
|
* @param webhookId The ID of the webhook.
|
|
24
25
|
* @param token The token of the webhook (optional).
|
|
25
26
|
* @returns A Promise that resolves to the fetched webhook.
|
|
26
27
|
*/
|
|
27
|
-
fetch(webhookId: string, token?: string): Promise<
|
|
28
|
+
fetch(webhookId: string, token?: string): Promise<WebhookStructure>;
|
|
28
29
|
/**
|
|
29
30
|
* Writes a message using the webhook.
|
|
30
31
|
* @param webhookId The ID of the webhook.
|
|
@@ -32,7 +33,7 @@ export declare class WebhookShorter extends BaseShorter {
|
|
|
32
33
|
* @param data The data for writing the message.
|
|
33
34
|
* @returns A Promise that resolves to the written message.
|
|
34
35
|
*/
|
|
35
|
-
writeMessage(webhookId: string, token: string, { body: data, ...payload }: MessageWebhookMethodWriteParams): Promise<
|
|
36
|
+
writeMessage(webhookId: string, token: string, { body: data, ...payload }: MessageWebhookMethodWriteParams): Promise<WebhookMessageStructure | null>;
|
|
36
37
|
/**
|
|
37
38
|
* Edits a message sent by the webhook.
|
|
38
39
|
* @param webhookId The ID of the webhook.
|
|
@@ -41,7 +42,7 @@ export declare class WebhookShorter extends BaseShorter {
|
|
|
41
42
|
* @param data The data for editing the message.
|
|
42
43
|
* @returns A Promise that resolves to the edited message.
|
|
43
44
|
*/
|
|
44
|
-
editMessage(webhookId: string, token: string, { messageId, body: data, ...json }: MessageWebhookMethodEditParams): Promise<
|
|
45
|
+
editMessage(webhookId: string, token: string, { messageId, body: data, ...json }: MessageWebhookMethodEditParams): Promise<WebhookMessageStructure>;
|
|
45
46
|
/**
|
|
46
47
|
* Deletes a message sent by the webhook.
|
|
47
48
|
* @param webhookId The ID of the webhook.
|
|
@@ -59,9 +60,9 @@ export declare class WebhookShorter extends BaseShorter {
|
|
|
59
60
|
* @param threadId The ID of the thread the message belongs to.
|
|
60
61
|
* @returns A Promise that resolves to the fetched message
|
|
61
62
|
*/
|
|
62
|
-
fetchMessage(webhookId: string, token: string, messageId: string, threadId?: string): Promise<
|
|
63
|
-
listFromGuild(guildId: string): Promise<
|
|
64
|
-
listFromChannel(channelId: string): Promise<
|
|
63
|
+
fetchMessage(webhookId: string, token: string, messageId: string, threadId?: string): Promise<WebhookMessageStructure>;
|
|
64
|
+
listFromGuild(guildId: string): Promise<WebhookStructure[]>;
|
|
65
|
+
listFromChannel(channelId: string): Promise<WebhookStructure[]>;
|
|
65
66
|
}
|
|
66
67
|
export type WebhookShorterOptionalParams = Partial<{
|
|
67
68
|
token: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AllChannels, ButtonInteraction, ChannelSelectMenuInteraction, ComponentCommand, MentionableSelectMenuInteraction, ReturnCache, RoleSelectMenuInteraction, StringSelectMenuInteraction, UserSelectMenuInteraction } from '..';
|
|
2
|
-
import type { GuildMemberStructure, GuildStructure } from '../client/transformers';
|
|
2
|
+
import type { GuildMemberStructure, GuildStructure, InteractionGuildMemberStructure, UserStructure, WebhookMessageStructure } from '../client/transformers';
|
|
3
3
|
import type { CommandMetadata, ExtendContext, GlobalMetadata, RegisteredMiddlewares, UsingClient } from '../commands';
|
|
4
4
|
import { BaseContext } from '../commands/basecontext';
|
|
5
|
-
import type { ComponentInteractionMessageUpdate, InteractionCreateBodyRequest, InteractionMessageUpdateBodyRequest, MakeRequired, ModalCreateBodyRequest, UnionToTuple } from '../common';
|
|
5
|
+
import type { ComponentInteractionMessageUpdate, InteractionCreateBodyRequest, InteractionMessageUpdateBodyRequest, MakeRequired, ModalCreateBodyRequest, UnionToTuple, When } from '../common';
|
|
6
6
|
export interface ComponentContext<Type extends keyof ContextComponentCommandInteractionMap = keyof ContextComponentCommandInteractionMap> extends BaseContext, ExtendContext {
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
@@ -36,12 +36,12 @@ export declare class ComponentContext<Type extends keyof ContextComponentCommand
|
|
|
36
36
|
* @param body - The body of the response.
|
|
37
37
|
* @param fetchReply - Whether to fetch the reply or not.
|
|
38
38
|
*/
|
|
39
|
-
write<FR extends boolean = false>(body: InteractionCreateBodyRequest, fetchReply?: FR): Promise<
|
|
39
|
+
write<FR extends boolean = false>(body: InteractionCreateBodyRequest, fetchReply?: FR): Promise<When<FR, WebhookMessageStructure, void>>;
|
|
40
40
|
/**
|
|
41
41
|
* Defers the reply to the interaction.
|
|
42
42
|
* @param ephemeral - Whether the reply should be ephemeral or not.
|
|
43
43
|
*/
|
|
44
|
-
deferReply<FR extends boolean = false>(ephemeral?: boolean, fetchReply?: FR): Promise<
|
|
44
|
+
deferReply<FR extends boolean = false>(ephemeral?: boolean, fetchReply?: FR): Promise<When<FR, WebhookMessageStructure, undefined>>;
|
|
45
45
|
/**
|
|
46
46
|
* ACK an interaction and edit the original message later; the user does not see a loading state
|
|
47
47
|
*/
|
|
@@ -50,7 +50,7 @@ export declare class ComponentContext<Type extends keyof ContextComponentCommand
|
|
|
50
50
|
* Edits the response of the interaction.
|
|
51
51
|
* @param body - The updated body of the response.
|
|
52
52
|
*/
|
|
53
|
-
editResponse(body: InteractionMessageUpdateBodyRequest): Promise<
|
|
53
|
+
editResponse(body: InteractionMessageUpdateBodyRequest): Promise<WebhookMessageStructure>;
|
|
54
54
|
/**
|
|
55
55
|
* Updates the interaction with new data.
|
|
56
56
|
* @param body - The updated body of the interaction.
|
|
@@ -61,11 +61,11 @@ export declare class ComponentContext<Type extends keyof ContextComponentCommand
|
|
|
61
61
|
* @param body - The body of the response or updated body of the interaction.
|
|
62
62
|
* @param fetchReply - Whether to fetch the reply or not.
|
|
63
63
|
*/
|
|
64
|
-
editOrReply<FR extends boolean = false>(body: InteractionCreateBodyRequest | InteractionMessageUpdateBodyRequest, fetchReply?: FR): Promise<
|
|
64
|
+
editOrReply<FR extends boolean = false>(body: InteractionCreateBodyRequest | InteractionMessageUpdateBodyRequest, fetchReply?: FR): Promise<When<FR, WebhookMessageStructure, void>>;
|
|
65
65
|
/**
|
|
66
66
|
* @returns A Promise that resolves to the fetched message
|
|
67
67
|
*/
|
|
68
|
-
fetchResponse(): Promise<
|
|
68
|
+
fetchResponse(): Promise<WebhookMessageStructure>;
|
|
69
69
|
/**
|
|
70
70
|
* Deletes the response of the interaction.
|
|
71
71
|
* @returns A promise that resolves when the response is deleted.
|
|
@@ -104,11 +104,11 @@ export declare class ComponentContext<Type extends keyof ContextComponentCommand
|
|
|
104
104
|
/**
|
|
105
105
|
* Gets the author of the interaction.
|
|
106
106
|
*/
|
|
107
|
-
get author():
|
|
107
|
+
get author(): UserStructure;
|
|
108
108
|
/**
|
|
109
109
|
* Gets the member of the interaction.
|
|
110
110
|
*/
|
|
111
|
-
get member():
|
|
111
|
+
get member(): InteractionGuildMemberStructure | undefined;
|
|
112
112
|
isComponent(): this is ComponentContext<keyof ContextComponentCommandInteractionMap>;
|
|
113
113
|
isButton(): this is ComponentContext<'Button', M>;
|
|
114
114
|
isChannelSelectMenu(): this is ComponentContext<'ChannelSelect', M>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AllChannels, Interaction, ModalCommand, ModalSubmitInteraction, ReturnCache } from '..';
|
|
2
|
-
import type { GuildMemberStructure, GuildStructure } from '../client/transformers';
|
|
2
|
+
import type { GuildMemberStructure, GuildStructure, InteractionGuildMemberStructure, UserStructure, WebhookMessageStructure } from '../client/transformers';
|
|
3
3
|
import type { CommandMetadata, ExtendContext, GlobalMetadata, RegisteredMiddlewares, UsingClient } from '../commands';
|
|
4
4
|
import { BaseContext } from '../commands/basecontext';
|
|
5
|
-
import type { InteractionCreateBodyRequest, InteractionMessageUpdateBodyRequest, MakeRequired, ModalCreateBodyRequest, UnionToTuple } from '../common';
|
|
5
|
+
import type { InteractionCreateBodyRequest, InteractionMessageUpdateBodyRequest, MakeRequired, ModalCreateBodyRequest, UnionToTuple, When } from '../common';
|
|
6
6
|
export interface ModalContext extends BaseContext, ExtendContext {
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
@@ -41,27 +41,27 @@ export declare class ModalContext<M extends keyof RegisteredMiddlewares = never>
|
|
|
41
41
|
* @param body - The body of the response.
|
|
42
42
|
* @param fetchReply - Whether to fetch the reply or not.
|
|
43
43
|
*/
|
|
44
|
-
write<FR extends boolean = false>(body: InteractionCreateBodyRequest, fetchReply?: FR): Promise<
|
|
44
|
+
write<FR extends boolean = false>(body: InteractionCreateBodyRequest, fetchReply?: FR): Promise<When<FR, WebhookMessageStructure, void>>;
|
|
45
45
|
/**
|
|
46
46
|
* Defers the reply to the interaction.
|
|
47
47
|
* @param ephemeral - Whether the reply should be ephemeral or not.
|
|
48
48
|
*/
|
|
49
|
-
deferReply<FR extends boolean = false>(ephemeral?: boolean, fetchReply?: FR): Promise<
|
|
49
|
+
deferReply<FR extends boolean = false>(ephemeral?: boolean, fetchReply?: FR): Promise<When<FR, WebhookMessageStructure, undefined>>;
|
|
50
50
|
/**
|
|
51
51
|
* Edits the response of the interaction.
|
|
52
52
|
* @param body - The updated body of the response.
|
|
53
53
|
*/
|
|
54
|
-
editResponse(body: InteractionMessageUpdateBodyRequest): Promise<
|
|
54
|
+
editResponse(body: InteractionMessageUpdateBodyRequest): Promise<WebhookMessageStructure>;
|
|
55
55
|
/**
|
|
56
56
|
* Edits the response or replies to the interaction.
|
|
57
57
|
* @param body - The body of the response or updated body of the interaction.
|
|
58
58
|
* @param fetchReply - Whether to fetch the reply or not.
|
|
59
59
|
*/
|
|
60
|
-
editOrReply<FR extends boolean = false>(body: InteractionCreateBodyRequest | InteractionMessageUpdateBodyRequest, fetchReply?: FR): Promise<
|
|
60
|
+
editOrReply<FR extends boolean = false>(body: InteractionCreateBodyRequest | InteractionMessageUpdateBodyRequest, fetchReply?: FR): Promise<When<FR, WebhookMessageStructure, void>>;
|
|
61
61
|
/**
|
|
62
62
|
* @returns A Promise that resolves to the fetched message
|
|
63
63
|
*/
|
|
64
|
-
fetchResponse(): Promise<
|
|
64
|
+
fetchResponse(): Promise<WebhookMessageStructure>;
|
|
65
65
|
/**
|
|
66
66
|
* Deletes the response of the interaction.
|
|
67
67
|
* @returns A promise that resolves when the response is deleted.
|
|
@@ -100,11 +100,11 @@ export declare class ModalContext<M extends keyof RegisteredMiddlewares = never>
|
|
|
100
100
|
/**
|
|
101
101
|
* Gets the author of the interaction.
|
|
102
102
|
*/
|
|
103
|
-
get author():
|
|
103
|
+
get author(): UserStructure;
|
|
104
104
|
/**
|
|
105
105
|
* Gets the member of the interaction.
|
|
106
106
|
*/
|
|
107
|
-
get member():
|
|
107
|
+
get member(): InteractionGuildMemberStructure | undefined;
|
|
108
108
|
isModal(): this is ModalContext<M>;
|
|
109
109
|
inGuild(): this is GuildModalContext<M>;
|
|
110
110
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type AutoModerationRuleStructure } from '../../client/transformers';
|
|
1
2
|
import type { UsingClient } from '../../commands';
|
|
2
3
|
import type { GatewayAutoModerationActionExecutionDispatchData, GatewayAutoModerationRuleCreateDispatchData, GatewayAutoModerationRuleDeleteDispatchData, GatewayAutoModerationRuleUpdateDispatchData } from '../../types';
|
|
3
4
|
export declare const AUTO_MODERATION_ACTION_EXECUTION: (_self: UsingClient, data: GatewayAutoModerationActionExecutionDispatchData) => {
|
|
@@ -20,6 +21,6 @@ export declare const AUTO_MODERATION_ACTION_EXECUTION: (_self: UsingClient, data
|
|
|
20
21
|
matchedKeyword: string | null;
|
|
21
22
|
matchedContent: string | null;
|
|
22
23
|
};
|
|
23
|
-
export declare const AUTO_MODERATION_RULE_CREATE: (self: UsingClient, data: GatewayAutoModerationRuleCreateDispatchData) =>
|
|
24
|
-
export declare const AUTO_MODERATION_RULE_DELETE: (self: UsingClient, data: GatewayAutoModerationRuleDeleteDispatchData) =>
|
|
25
|
-
export declare const AUTO_MODERATION_RULE_UPDATE: (self: UsingClient, data: GatewayAutoModerationRuleUpdateDispatchData) =>
|
|
24
|
+
export declare const AUTO_MODERATION_RULE_CREATE: (self: UsingClient, data: GatewayAutoModerationRuleCreateDispatchData) => AutoModerationRuleStructure;
|
|
25
|
+
export declare const AUTO_MODERATION_RULE_DELETE: (self: UsingClient, data: GatewayAutoModerationRuleDeleteDispatchData) => AutoModerationRuleStructure;
|
|
26
|
+
export declare const AUTO_MODERATION_RULE_UPDATE: (self: UsingClient, data: GatewayAutoModerationRuleUpdateDispatchData) => AutoModerationRuleStructure;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type ClientUserStructure } from '../../client/transformers';
|
|
1
|
+
import { type ClientUserStructure, type GuildStructure } from '../../client/transformers';
|
|
2
2
|
import type { UsingClient } from '../../commands';
|
|
3
|
-
import type { GatewayRawGuildCreateDispatch, GatewayRawGuildDeleteDispatch } from '../../types';
|
|
4
|
-
export declare const BOT_READY: (_self: UsingClient, me: ClientUserStructure) =>
|
|
5
|
-
export declare const WORKER_READY: (_self: UsingClient, me: ClientUserStructure) =>
|
|
6
|
-
export declare const WORKER_SHARDS_CONNECTED: (_self: UsingClient, me: ClientUserStructure) =>
|
|
7
|
-
export declare const RAW_GUILD_CREATE: (self: UsingClient, data: GatewayRawGuildCreateDispatch["d"]) =>
|
|
8
|
-
export declare const RAW_GUILD_DELETE: (self: UsingClient, data: GatewayRawGuildDeleteDispatch["d"]) => Promise<
|
|
3
|
+
import type { APIUnavailableGuild, GatewayRawGuildCreateDispatch, GatewayRawGuildDeleteDispatch } from '../../types';
|
|
4
|
+
export declare const BOT_READY: (_self: UsingClient, me: ClientUserStructure) => ClientUserStructure;
|
|
5
|
+
export declare const WORKER_READY: (_self: UsingClient, me: ClientUserStructure) => ClientUserStructure;
|
|
6
|
+
export declare const WORKER_SHARDS_CONNECTED: (_self: UsingClient, me: ClientUserStructure) => ClientUserStructure;
|
|
7
|
+
export declare const RAW_GUILD_CREATE: (self: UsingClient, data: GatewayRawGuildCreateDispatch["d"]) => GuildStructure<"create">;
|
|
8
|
+
export declare const RAW_GUILD_DELETE: (self: UsingClient, data: GatewayRawGuildDeleteDispatch["d"]) => Promise<GuildStructure<"cached"> | APIUnavailableGuild>;
|
|
9
9
|
export declare const GUILDS_READY: () => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { type ClientUserStructure } from '../../client/transformers';
|
|
1
2
|
import type { UsingClient } from '../../commands';
|
|
2
3
|
import type { GatewayDispatchPayload, GatewayReadyDispatchData, GatewayResumedDispatch } from '../../types';
|
|
3
|
-
export declare const READY: (self: UsingClient, data: GatewayReadyDispatchData) =>
|
|
4
|
+
export declare const READY: (self: UsingClient, data: GatewayReadyDispatchData) => ClientUserStructure;
|
|
4
5
|
export declare const RESUMED: (_self: UsingClient, _data: GatewayResumedDispatch["d"]) => void;
|
|
5
6
|
export declare const RAW: (_self: UsingClient, data: GatewayDispatchPayload) => GatewayDispatchPayload;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { type EntitlementStructure } from '../../client';
|
|
1
2
|
import type { UsingClient } from '../../commands';
|
|
2
3
|
import type { APIEntitlement } from '../../types';
|
|
3
|
-
export declare const ENTITLEMENT_CREATE: (client: UsingClient, data: APIEntitlement) =>
|
|
4
|
-
export declare const ENTITLEMENT_UPDATE: (client: UsingClient, data: APIEntitlement) =>
|
|
5
|
-
export declare const ENTITLEMENT_DELETE: (client: UsingClient, data: APIEntitlement) =>
|
|
4
|
+
export declare const ENTITLEMENT_CREATE: (client: UsingClient, data: APIEntitlement) => EntitlementStructure;
|
|
5
|
+
export declare const ENTITLEMENT_UPDATE: (client: UsingClient, data: APIEntitlement) => EntitlementStructure;
|
|
6
|
+
export declare const ENTITLEMENT_DELETE: (client: UsingClient, data: APIEntitlement) => EntitlementStructure;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { type GuildMemberStructure, type GuildRoleStructure, type GuildStructure } from '../../client/transformers';
|
|
1
|
+
import { type GuildEmojiStructure, type GuildMemberStructure, type GuildRoleStructure, type GuildStructure, type StickerStructure, type UserStructure } from '../../client/transformers';
|
|
2
2
|
import type { UsingClient } from '../../commands';
|
|
3
|
-
import
|
|
3
|
+
import { type ObjectToLower } from '../../common';
|
|
4
|
+
import type { APIUnavailableGuild, GatewayGuildAuditLogEntryCreateDispatchData, GatewayGuildBanAddDispatchData, GatewayGuildBanRemoveDispatchData, GatewayGuildCreateDispatchData, GatewayGuildDeleteDispatchData, GatewayGuildEmojisUpdateDispatchData, GatewayGuildIntegrationsUpdateDispatchData, GatewayGuildMemberAddDispatchData, GatewayGuildMemberRemoveDispatchData, GatewayGuildMemberUpdateDispatchData, GatewayGuildMembersChunkDispatchData, GatewayGuildRoleCreateDispatchData, GatewayGuildRoleDeleteDispatchData, GatewayGuildRoleUpdateDispatchData, GatewayGuildScheduledEventCreateDispatchData, GatewayGuildScheduledEventDeleteDispatchData, GatewayGuildScheduledEventUpdateDispatchData, GatewayGuildScheduledEventUserAddDispatchData, GatewayGuildScheduledEventUserRemoveDispatchData, GatewayGuildStickersUpdateDispatchData, GatewayGuildUpdateDispatchData } from '../../types';
|
|
4
5
|
export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: GatewayGuildAuditLogEntryCreateDispatchData) => {
|
|
5
6
|
guildId: string;
|
|
6
7
|
targetId: string | null;
|
|
@@ -415,109 +416,27 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
415
416
|
} | undefined;
|
|
416
417
|
reason?: string | undefined;
|
|
417
418
|
};
|
|
418
|
-
export declare const GUILD_BAN_ADD: (self: UsingClient, data: GatewayGuildBanAddDispatchData) => {
|
|
419
|
-
user:
|
|
420
|
-
guildId: string;
|
|
419
|
+
export declare const GUILD_BAN_ADD: (self: UsingClient, data: GatewayGuildBanAddDispatchData) => ObjectToLower<Omit<GatewayGuildBanAddDispatchData, "user">> & {
|
|
420
|
+
user: UserStructure;
|
|
421
421
|
};
|
|
422
|
-
export declare const GUILD_BAN_REMOVE: (self: UsingClient, data: GatewayGuildBanRemoveDispatchData) => {
|
|
423
|
-
user:
|
|
424
|
-
guildId: string;
|
|
422
|
+
export declare const GUILD_BAN_REMOVE: (self: UsingClient, data: GatewayGuildBanRemoveDispatchData) => ObjectToLower<Omit<GatewayGuildBanRemoveDispatchData, "user">> & {
|
|
423
|
+
user: UserStructure;
|
|
425
424
|
};
|
|
426
|
-
export declare const GUILD_CREATE: (self: UsingClient, data: GatewayGuildCreateDispatchData) =>
|
|
427
|
-
export declare const GUILD_DELETE: (self: UsingClient, data: GatewayGuildDeleteDispatchData) => Promise<
|
|
428
|
-
export declare const GUILD_EMOJIS_UPDATE: (self: UsingClient, data: GatewayGuildEmojisUpdateDispatchData) => {
|
|
429
|
-
emojis:
|
|
430
|
-
guildId: string;
|
|
425
|
+
export declare const GUILD_CREATE: (self: UsingClient, data: GatewayGuildCreateDispatchData) => GuildStructure<"create">;
|
|
426
|
+
export declare const GUILD_DELETE: (self: UsingClient, data: GatewayGuildDeleteDispatchData) => Promise<GuildStructure<"cached"> | APIUnavailableGuild>;
|
|
427
|
+
export declare const GUILD_EMOJIS_UPDATE: (self: UsingClient, data: GatewayGuildEmojisUpdateDispatchData) => ObjectToLower<Omit<GatewayGuildEmojisUpdateDispatchData, "emojis">> & {
|
|
428
|
+
emojis: GuildEmojiStructure[];
|
|
431
429
|
};
|
|
432
430
|
export declare const GUILD_INTEGRATIONS_UPDATE: (_self: UsingClient, data: GatewayGuildIntegrationsUpdateDispatchData) => {
|
|
433
431
|
guildId: string;
|
|
434
432
|
};
|
|
435
|
-
export declare const GUILD_MEMBER_ADD: (self: UsingClient, data: GatewayGuildMemberAddDispatchData) =>
|
|
436
|
-
export declare const GUILD_MEMBER_REMOVE: (self: UsingClient, data: GatewayGuildMemberRemoveDispatchData) => Promise<
|
|
437
|
-
user:
|
|
433
|
+
export declare const GUILD_MEMBER_ADD: (self: UsingClient, data: GatewayGuildMemberAddDispatchData) => GuildMemberStructure;
|
|
434
|
+
export declare const GUILD_MEMBER_REMOVE: (self: UsingClient, data: GatewayGuildMemberRemoveDispatchData) => Promise<GuildMemberStructure | {
|
|
435
|
+
user: UserStructure;
|
|
438
436
|
guildId: string;
|
|
439
437
|
}>;
|
|
440
|
-
export declare const GUILD_MEMBERS_CHUNK: (self: UsingClient, data: GatewayGuildMembersChunkDispatchData) => {
|
|
441
|
-
members:
|
|
442
|
-
guildId: string;
|
|
443
|
-
chunkIndex: number;
|
|
444
|
-
chunkCount: number;
|
|
445
|
-
notFound?: {}[] | undefined;
|
|
446
|
-
presences?: {
|
|
447
|
-
user: {
|
|
448
|
-
id: string;
|
|
449
|
-
username?: string | undefined;
|
|
450
|
-
discriminator?: string | undefined;
|
|
451
|
-
globalName?: string | null | undefined;
|
|
452
|
-
avatar?: string | null | undefined;
|
|
453
|
-
bot?: boolean | undefined;
|
|
454
|
-
system?: boolean | undefined;
|
|
455
|
-
mfaEnabled?: boolean | undefined;
|
|
456
|
-
banner?: string | null | undefined;
|
|
457
|
-
accentColor?: number | null | undefined;
|
|
458
|
-
locale?: string | undefined;
|
|
459
|
-
verified?: boolean | undefined;
|
|
460
|
-
email?: string | null | undefined;
|
|
461
|
-
flags?: import("../../types").UserFlags | undefined;
|
|
462
|
-
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
463
|
-
publicFlags?: import("../../types").UserFlags | undefined;
|
|
464
|
-
avatarDecoration?: string | null | undefined;
|
|
465
|
-
avatarDecorationData?: {
|
|
466
|
-
asset: string;
|
|
467
|
-
skuId: string;
|
|
468
|
-
} | null | undefined;
|
|
469
|
-
};
|
|
470
|
-
status?: import("../../types").PresenceUpdateReceiveStatus | undefined;
|
|
471
|
-
activities?: {
|
|
472
|
-
id: string;
|
|
473
|
-
name: string;
|
|
474
|
-
type: import("../../types").ActivityType;
|
|
475
|
-
url?: string | null | undefined;
|
|
476
|
-
createdAt: number;
|
|
477
|
-
timestamps?: {
|
|
478
|
-
start?: number | undefined;
|
|
479
|
-
end?: number | undefined;
|
|
480
|
-
} | undefined;
|
|
481
|
-
syncId?: string | undefined;
|
|
482
|
-
platform?: string | undefined;
|
|
483
|
-
applicationId?: string | undefined;
|
|
484
|
-
details?: string | null | undefined;
|
|
485
|
-
state?: string | null | undefined;
|
|
486
|
-
emoji?: {
|
|
487
|
-
id?: string | null | undefined;
|
|
488
|
-
animated?: boolean | undefined;
|
|
489
|
-
name: string | null;
|
|
490
|
-
} | undefined;
|
|
491
|
-
sessionId?: string | undefined;
|
|
492
|
-
party?: {
|
|
493
|
-
id?: string | undefined;
|
|
494
|
-
size?: [current_size: number, max_size: number] | undefined;
|
|
495
|
-
} | undefined;
|
|
496
|
-
assets?: {
|
|
497
|
-
largeImage?: string | undefined;
|
|
498
|
-
largeText?: string | undefined;
|
|
499
|
-
smallImage?: string | undefined;
|
|
500
|
-
smallText?: string | undefined;
|
|
501
|
-
} | undefined;
|
|
502
|
-
secrets?: {
|
|
503
|
-
join?: string | undefined;
|
|
504
|
-
match?: string | undefined;
|
|
505
|
-
spectate?: string | undefined;
|
|
506
|
-
} | undefined;
|
|
507
|
-
instance?: boolean | undefined;
|
|
508
|
-
flags?: import("../../types").ActivityFlags | undefined;
|
|
509
|
-
buttons?: string[] | {
|
|
510
|
-
label: string;
|
|
511
|
-
url: string;
|
|
512
|
-
}[] | undefined;
|
|
513
|
-
}[] | undefined;
|
|
514
|
-
clientStatus?: {
|
|
515
|
-
desktop?: import("../../types").PresenceUpdateReceiveStatus | undefined;
|
|
516
|
-
mobile?: import("../../types").PresenceUpdateReceiveStatus | undefined;
|
|
517
|
-
web?: import("../../types").PresenceUpdateReceiveStatus | undefined;
|
|
518
|
-
} | undefined;
|
|
519
|
-
}[] | undefined;
|
|
520
|
-
nonce?: string | undefined;
|
|
438
|
+
export declare const GUILD_MEMBERS_CHUNK: (self: UsingClient, data: GatewayGuildMembersChunkDispatchData) => ObjectToLower<Omit<GatewayGuildMembersChunkDispatchData, "members">> & {
|
|
439
|
+
members: GuildMemberStructure[];
|
|
521
440
|
};
|
|
522
441
|
export declare const GUILD_MEMBER_UPDATE: (self: UsingClient, data: GatewayGuildMemberUpdateDispatchData) => Promise<[member: GuildMemberStructure, old?: GuildMemberStructure]>;
|
|
523
442
|
export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: GatewayGuildScheduledEventCreateDispatchData) => {
|
|
@@ -863,14 +782,10 @@ export declare const GUILD_SCHEDULED_EVENT_USER_REMOVE: (_self: UsingClient, dat
|
|
|
863
782
|
userId: string;
|
|
864
783
|
guildId: string;
|
|
865
784
|
};
|
|
866
|
-
export declare const GUILD_ROLE_CREATE: (self: UsingClient, data: GatewayGuildRoleCreateDispatchData) =>
|
|
867
|
-
export declare const GUILD_ROLE_DELETE: (self: UsingClient, data: GatewayGuildRoleDeleteDispatchData) => Promise<
|
|
868
|
-
guildId: string;
|
|
869
|
-
roleId: string;
|
|
870
|
-
}>;
|
|
785
|
+
export declare const GUILD_ROLE_CREATE: (self: UsingClient, data: GatewayGuildRoleCreateDispatchData) => GuildRoleStructure;
|
|
786
|
+
export declare const GUILD_ROLE_DELETE: (self: UsingClient, data: GatewayGuildRoleDeleteDispatchData) => Promise<GuildRoleStructure | ObjectToLower<GatewayGuildRoleDeleteDispatchData>>;
|
|
871
787
|
export declare const GUILD_ROLE_UPDATE: (self: UsingClient, data: GatewayGuildRoleUpdateDispatchData) => Promise<[role: GuildRoleStructure, old?: GuildRoleStructure]>;
|
|
872
|
-
export declare const GUILD_STICKERS_UPDATE: (self: UsingClient, data: GatewayGuildStickersUpdateDispatchData) => {
|
|
873
|
-
stickers:
|
|
874
|
-
guildId: string;
|
|
788
|
+
export declare const GUILD_STICKERS_UPDATE: (self: UsingClient, data: GatewayGuildStickersUpdateDispatchData) => ObjectToLower<Omit<GatewayGuildStickersUpdateDispatchData, "stickers">> & {
|
|
789
|
+
stickers: StickerStructure[];
|
|
875
790
|
};
|
|
876
791
|
export declare const GUILD_UPDATE: (self: UsingClient, data: GatewayGuildUpdateDispatchData) => Promise<[guild: GuildStructure, old?: GuildStructure<"cached">]>;
|
|
@@ -1,153 +1,13 @@
|
|
|
1
|
+
import { type UserStructure } from '../../client/transformers';
|
|
1
2
|
import type { UsingClient } from '../../commands';
|
|
3
|
+
import { type ObjectToLower } from '../../common';
|
|
2
4
|
import type { GatewayIntegrationCreateDispatchData, GatewayIntegrationDeleteDispatchData, GatewayIntegrationUpdateDispatchData } from '../../types';
|
|
3
|
-
export declare const INTEGRATION_CREATE: (self: UsingClient, data: GatewayIntegrationCreateDispatchData) => {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
roleId?: string | undefined;
|
|
10
|
-
enableEmoticons?: boolean | undefined;
|
|
11
|
-
expireBehavior?: import("../../types").IntegrationExpireBehavior | undefined;
|
|
12
|
-
expireGracePeriod?: number | undefined;
|
|
13
|
-
user?: {
|
|
14
|
-
id: string;
|
|
15
|
-
username: string;
|
|
16
|
-
discriminator: string;
|
|
17
|
-
globalName: string | null;
|
|
18
|
-
avatar: string | null;
|
|
19
|
-
bot?: boolean | undefined;
|
|
20
|
-
system?: boolean | undefined;
|
|
21
|
-
mfaEnabled?: boolean | undefined;
|
|
22
|
-
banner?: string | null | undefined;
|
|
23
|
-
accentColor?: number | null | undefined;
|
|
24
|
-
locale?: string | undefined;
|
|
25
|
-
verified?: boolean | undefined;
|
|
26
|
-
email?: string | null | undefined;
|
|
27
|
-
flags?: import("../../types").UserFlags | undefined;
|
|
28
|
-
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
29
|
-
publicFlags?: import("../../types").UserFlags | undefined;
|
|
30
|
-
avatarDecoration?: string | null | undefined;
|
|
31
|
-
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
32
|
-
} | undefined;
|
|
33
|
-
account: {
|
|
34
|
-
id: string;
|
|
35
|
-
name: string;
|
|
36
|
-
};
|
|
37
|
-
syncedAt?: string | undefined;
|
|
38
|
-
subscriberCount?: number | undefined;
|
|
39
|
-
revoked?: boolean | undefined;
|
|
40
|
-
application?: {
|
|
41
|
-
id: string;
|
|
42
|
-
name: string;
|
|
43
|
-
icon: string | null;
|
|
44
|
-
description: string;
|
|
45
|
-
bot?: import("../../types").APIUser | undefined;
|
|
46
|
-
} | undefined;
|
|
47
|
-
scopes?: import("../../types").OAuth2Scopes[] | undefined;
|
|
48
|
-
guildId: string;
|
|
49
|
-
} | {
|
|
50
|
-
user: import("../..").User;
|
|
51
|
-
id: string;
|
|
52
|
-
name: string;
|
|
53
|
-
type: import("../../types").APIGuildIntegrationType;
|
|
54
|
-
enabled: boolean;
|
|
55
|
-
syncing?: boolean | undefined;
|
|
56
|
-
roleId?: string | undefined;
|
|
57
|
-
enableEmoticons?: boolean | undefined;
|
|
58
|
-
expireBehavior?: import("../../types").IntegrationExpireBehavior | undefined;
|
|
59
|
-
expireGracePeriod?: number | undefined;
|
|
60
|
-
account: {
|
|
61
|
-
id: string;
|
|
62
|
-
name: string;
|
|
63
|
-
};
|
|
64
|
-
syncedAt?: string | undefined;
|
|
65
|
-
subscriberCount?: number | undefined;
|
|
66
|
-
revoked?: boolean | undefined;
|
|
67
|
-
application?: {
|
|
68
|
-
id: string;
|
|
69
|
-
name: string;
|
|
70
|
-
icon: string | null;
|
|
71
|
-
description: string;
|
|
72
|
-
bot?: import("../../types").APIUser | undefined;
|
|
73
|
-
} | undefined;
|
|
74
|
-
scopes?: import("../../types").OAuth2Scopes[] | undefined;
|
|
75
|
-
guildId: string;
|
|
76
|
-
};
|
|
77
|
-
export declare const INTEGRATION_UPDATE: (self: UsingClient, data: GatewayIntegrationUpdateDispatchData) => {
|
|
78
|
-
id: string;
|
|
79
|
-
name: string;
|
|
80
|
-
type: import("../../types").APIGuildIntegrationType;
|
|
81
|
-
enabled: boolean;
|
|
82
|
-
syncing?: boolean | undefined;
|
|
83
|
-
roleId?: string | undefined;
|
|
84
|
-
enableEmoticons?: boolean | undefined;
|
|
85
|
-
expireBehavior?: import("../../types").IntegrationExpireBehavior | undefined;
|
|
86
|
-
expireGracePeriod?: number | undefined;
|
|
87
|
-
user?: {
|
|
88
|
-
id: string;
|
|
89
|
-
username: string;
|
|
90
|
-
discriminator: string;
|
|
91
|
-
globalName: string | null;
|
|
92
|
-
avatar: string | null;
|
|
93
|
-
bot?: boolean | undefined;
|
|
94
|
-
system?: boolean | undefined;
|
|
95
|
-
mfaEnabled?: boolean | undefined;
|
|
96
|
-
banner?: string | null | undefined;
|
|
97
|
-
accentColor?: number | null | undefined;
|
|
98
|
-
locale?: string | undefined;
|
|
99
|
-
verified?: boolean | undefined;
|
|
100
|
-
email?: string | null | undefined;
|
|
101
|
-
flags?: import("../../types").UserFlags | undefined;
|
|
102
|
-
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
103
|
-
publicFlags?: import("../../types").UserFlags | undefined;
|
|
104
|
-
avatarDecoration?: string | null | undefined;
|
|
105
|
-
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
106
|
-
} | undefined;
|
|
107
|
-
account: {
|
|
108
|
-
id: string;
|
|
109
|
-
name: string;
|
|
110
|
-
};
|
|
111
|
-
syncedAt?: string | undefined;
|
|
112
|
-
subscriberCount?: number | undefined;
|
|
113
|
-
revoked?: boolean | undefined;
|
|
114
|
-
application?: {
|
|
115
|
-
id: string;
|
|
116
|
-
name: string;
|
|
117
|
-
icon: string | null;
|
|
118
|
-
description: string;
|
|
119
|
-
bot?: import("../../types").APIUser | undefined;
|
|
120
|
-
} | undefined;
|
|
121
|
-
scopes?: import("../../types").OAuth2Scopes[] | undefined;
|
|
122
|
-
guildId: string;
|
|
123
|
-
} | {
|
|
124
|
-
user: import("../..").User;
|
|
125
|
-
id: string;
|
|
126
|
-
name: string;
|
|
127
|
-
type: import("../../types").APIGuildIntegrationType;
|
|
128
|
-
enabled: boolean;
|
|
129
|
-
syncing?: boolean | undefined;
|
|
130
|
-
roleId?: string | undefined;
|
|
131
|
-
enableEmoticons?: boolean | undefined;
|
|
132
|
-
expireBehavior?: import("../../types").IntegrationExpireBehavior | undefined;
|
|
133
|
-
expireGracePeriod?: number | undefined;
|
|
134
|
-
account: {
|
|
135
|
-
id: string;
|
|
136
|
-
name: string;
|
|
137
|
-
};
|
|
138
|
-
syncedAt?: string | undefined;
|
|
139
|
-
subscriberCount?: number | undefined;
|
|
140
|
-
revoked?: boolean | undefined;
|
|
141
|
-
application?: {
|
|
142
|
-
id: string;
|
|
143
|
-
name: string;
|
|
144
|
-
icon: string | null;
|
|
145
|
-
description: string;
|
|
146
|
-
bot?: import("../../types").APIUser | undefined;
|
|
147
|
-
} | undefined;
|
|
148
|
-
scopes?: import("../../types").OAuth2Scopes[] | undefined;
|
|
149
|
-
guildId: string;
|
|
150
|
-
};
|
|
5
|
+
export declare const INTEGRATION_CREATE: (self: UsingClient, data: GatewayIntegrationCreateDispatchData) => (ObjectToLower<Omit<GatewayIntegrationCreateDispatchData, "user">> & {
|
|
6
|
+
user: UserStructure;
|
|
7
|
+
}) | ObjectToLower<Omit<GatewayIntegrationCreateDispatchData, "user">>;
|
|
8
|
+
export declare const INTEGRATION_UPDATE: (self: UsingClient, data: GatewayIntegrationUpdateDispatchData) => (ObjectToLower<Omit<GatewayIntegrationUpdateDispatchData, "user">> & {
|
|
9
|
+
user: UserStructure;
|
|
10
|
+
}) | ObjectToLower<Omit<GatewayIntegrationUpdateDispatchData, "user">>;
|
|
151
11
|
export declare const INTEGRATION_DELETE: (_self: UsingClient, data: GatewayIntegrationDeleteDispatchData) => {
|
|
152
12
|
id: string;
|
|
153
13
|
guildId: string;
|