seyfert 1.1.1 → 1.2.1
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/api/Routes/applications.d.ts +2 -2
- package/lib/api/Routes/channels.d.ts +2 -2
- package/lib/api/Routes/gateway.d.ts +2 -2
- package/lib/api/Routes/guilds.d.ts +2 -1
- package/lib/api/Routes/interactions.d.ts +2 -2
- package/lib/api/Routes/invites.d.ts +2 -2
- package/lib/api/Routes/stage-instances.d.ts +2 -2
- package/lib/api/Routes/stickers.d.ts +2 -2
- package/lib/api/Routes/users.d.ts +2 -2
- package/lib/api/Routes/voice.d.ts +2 -2
- package/lib/api/Routes/webhooks.d.ts +2 -2
- package/lib/builders/ActionRow.d.ts +2 -1
- package/lib/builders/ActionRow.js +3 -3
- package/lib/builders/Base.d.ts +1 -1
- package/lib/builders/Button.d.ts +2 -1
- package/lib/builders/Button.js +2 -2
- package/lib/builders/Embed.d.ts +2 -1
- package/lib/builders/Modal.d.ts +9 -2
- package/lib/builders/Modal.js +12 -3
- package/lib/builders/SelectMenu.d.ts +18 -1
- package/lib/builders/SelectMenu.js +36 -12
- package/lib/builders/index.d.ts +1 -1
- package/lib/builders/index.js +9 -9
- package/lib/builders/types.d.ts +1 -1
- package/lib/cache/index.d.ts +5 -5
- package/lib/cache/index.js +3 -3
- package/lib/cache/resources/default/base.d.ts +1 -1
- package/lib/cache/resources/default/guild-based.d.ts +1 -1
- package/lib/cache/resources/default/guild-related.d.ts +1 -1
- package/lib/cache/resources/presence.d.ts +1 -1
- package/lib/cache/resources/stage-instances.d.ts +1 -1
- package/lib/cache/resources/voice-states.d.ts +1 -1
- package/lib/client/base.d.ts +4 -3
- package/lib/client/client.d.ts +2 -1
- package/lib/client/client.js +2 -2
- package/lib/client/httpclient.d.ts +2 -1
- package/lib/client/httpclient.js +34 -32
- package/lib/client/oninteractioncreate.js +11 -12
- package/lib/client/onmessagecreate.js +2 -3
- package/lib/client/workerclient.d.ts +3 -2
- package/lib/client/workerclient.js +4 -3
- package/lib/commands/applications/chat.d.ts +3 -3
- package/lib/commands/applications/chat.js +4 -3
- package/lib/commands/applications/chatcontext.d.ts +6 -9
- package/lib/commands/applications/chatcontext.js +6 -17
- package/lib/commands/applications/menu.d.ts +2 -1
- package/lib/commands/applications/menucontext.d.ts +6 -10
- package/lib/commands/applications/menucontext.js +9 -22
- package/lib/commands/basecontex.d.ts +15 -0
- package/lib/commands/basecontex.js +34 -0
- package/lib/commands/decorators.d.ts +2 -1
- package/lib/commands/decorators.js +4 -4
- package/lib/commands/handler.js +4 -3
- package/lib/commands/optionresolver.d.ts +3 -3
- package/lib/commands/optionresolver.js +14 -14
- package/lib/common/index.d.ts +0 -1
- package/lib/common/index.js +0 -1
- package/lib/common/it/constants.d.ts +3 -1
- package/lib/common/it/constants.js +2 -0
- package/lib/common/shorters/channels.d.ts +1 -1
- package/lib/common/shorters/channels.js +4 -4
- package/lib/common/shorters/guilds.d.ts +1 -1
- package/lib/common/shorters/guilds.js +6 -1
- package/lib/common/shorters/members.d.ts +6 -1
- package/lib/common/shorters/members.js +25 -2
- package/lib/common/shorters/webhook.d.ts +2 -2
- package/lib/common/types/resolvables.d.ts +2 -1
- package/lib/common/types/util.d.ts +1 -1
- package/lib/common/types/write.d.ts +1 -1
- package/lib/components/ActionRow.d.ts +4 -3
- package/lib/components/ActionRow.js +6 -3
- package/lib/components/BaseComponent.d.ts +18 -0
- package/lib/components/BaseComponent.js +21 -0
- package/lib/components/BaseSelectMenuComponent.d.ts +10 -0
- package/lib/components/BaseSelectMenuComponent.js +22 -0
- package/lib/components/ButtonComponent.d.ts +14 -14
- package/lib/components/ButtonComponent.js +36 -25
- package/lib/components/ChannelSelectMenuComponent.d.ts +4 -4
- package/lib/components/ChannelSelectMenuComponent.js +6 -5
- package/lib/components/MentionableSelectMenuComponent.d.ts +3 -2
- package/lib/components/MentionableSelectMenuComponent.js +4 -1
- package/lib/components/RoleSelectMenuComponent.d.ts +3 -2
- package/lib/components/RoleSelectMenuComponent.js +4 -1
- package/lib/components/StringSelectMenuComponent.d.ts +3 -4
- package/lib/components/StringSelectMenuComponent.js +3 -5
- package/lib/components/TextInputComponent.d.ts +10 -5
- package/lib/components/TextInputComponent.js +24 -7
- package/lib/components/UserSelectMenuComponent.d.ts +3 -2
- package/lib/components/UserSelectMenuComponent.js +4 -1
- package/lib/components/command.d.ts +6 -5
- package/lib/components/command.js +4 -0
- package/lib/components/componentcontext.d.ts +113 -0
- package/lib/components/componentcontext.js +135 -0
- package/lib/components/handler.d.ts +3 -3
- package/lib/components/handler.js +9 -4
- package/lib/components/index.d.ts +3 -2
- package/lib/components/index.js +10 -9
- package/lib/events/handler.d.ts +2 -1
- package/lib/events/hooks/application_command.d.ts +2 -2
- package/lib/events/hooks/auto_moderation.d.ts +4 -4
- package/lib/events/hooks/channel.d.ts +1 -1
- package/lib/events/hooks/dispatch.d.ts +1 -1
- package/lib/events/hooks/entitlement.d.ts +4 -4
- package/lib/events/hooks/guild.d.ts +42 -42
- package/lib/events/hooks/integration.d.ts +19 -19
- package/lib/events/hooks/interactions.d.ts +2 -2
- package/lib/events/hooks/invite.d.ts +5 -5
- package/lib/events/hooks/message.d.ts +6 -5
- package/lib/events/hooks/presence.d.ts +7 -7
- package/lib/events/hooks/stage.d.ts +4 -4
- package/lib/events/hooks/thread.d.ts +49 -49
- package/lib/events/hooks/typing.d.ts +2 -2
- package/lib/events/hooks/user.d.ts +1 -1
- package/lib/events/hooks/voice.d.ts +2 -2
- package/lib/events/hooks/webhook.d.ts +1 -1
- package/lib/index.d.ts +3 -6
- package/lib/index.js +6 -7
- package/lib/langs/handler.d.ts +2 -1
- package/lib/structures/AutoModerationRule.d.ts +3 -2
- package/lib/structures/ClientUser.d.ts +1 -1
- package/lib/structures/Guild.d.ts +27 -27
- package/lib/structures/GuildEmoji.d.ts +2 -1
- package/lib/structures/GuildMember.d.ts +15 -6
- package/lib/structures/GuildMember.js +32 -6
- package/lib/structures/GuildPreview.d.ts +1 -1
- package/lib/structures/GuildRole.d.ts +2 -1
- package/lib/structures/GuildTemplate.d.ts +3 -2
- package/lib/structures/Interaction.d.ts +3 -3
- package/lib/structures/Interaction.js +33 -33
- package/lib/structures/Message.d.ts +5 -4
- package/lib/structures/Sticker.d.ts +2 -1
- package/lib/structures/User.d.ts +6 -3
- package/lib/structures/User.js +2 -1
- package/lib/structures/Webhook.d.ts +63 -4
- package/lib/structures/Webhook.js +53 -0
- package/lib/structures/channels.d.ts +2 -2
- package/lib/structures/extra/BaseGuild.d.ts +2 -1
- package/lib/structures/extra/BaseGuild.js +3 -3
- package/lib/structures/extra/BitField.d.ts +2 -2
- package/lib/structures/extra/BitField.js +2 -2
- package/lib/structures/extra/Permissions.d.ts +1 -1
- package/lib/structures/extra/functions.d.ts +2 -1
- package/lib/structures/extra/functions.js +2 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +17 -0
- package/lib/websocket/SharedTypes.d.ts +2 -1
- package/lib/websocket/SharedTypes.js +1 -0
- package/lib/websocket/discord/shard.d.ts +2 -1
- package/lib/websocket/discord/shard.js +30 -41
- package/lib/websocket/discord/sharder.d.ts +3 -2
- package/lib/websocket/discord/sharder.js +7 -6
- package/lib/websocket/discord/shared.d.ts +2 -1
- package/lib/websocket/discord/worker.d.ts +1 -1
- package/lib/websocket/discord/workermanager.d.ts +3 -2
- package/lib/websocket/discord/workermanager.js +1 -1
- package/package.json +2 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import type { GatewayGuildAuditLogEntryCreateDispatchData, GatewayGuildBanAddDispatchData, GatewayGuildBanRemoveDispatchData, GatewayGuildCreateDispatchData, GatewayGuildDeleteDispatchData, GatewayGuildEmojisUpdateDispatchData, GatewayGuildIntegrationsUpdateDispatchData, GatewayGuildMemberRemoveDispatchData, GatewayGuildMemberUpdateDispatchData, GatewayGuildMembersChunkDispatchData, GatewayGuildRoleCreateDispatchData, GatewayGuildRoleDeleteDispatchData, GatewayGuildRoleUpdateDispatchData, GatewayGuildScheduledEventCreateDispatchData, GatewayGuildScheduledEventDeleteDispatchData, GatewayGuildScheduledEventUpdateDispatchData, GatewayGuildScheduledEventUserAddDispatchData, GatewayGuildScheduledEventUserRemoveDispatchData, GatewayGuildStickersUpdateDispatchData, GatewayGuildUpdateDispatchData } from 'discord-api-types/v10';
|
|
1
2
|
import type { BaseClient } from '../../client/base';
|
|
2
|
-
import type { GatewayGuildAuditLogEntryCreateDispatchData, GatewayGuildBanAddDispatchData, GatewayGuildBanRemoveDispatchData, GatewayGuildCreateDispatchData, GatewayGuildDeleteDispatchData, GatewayGuildEmojisUpdateDispatchData, GatewayGuildIntegrationsUpdateDispatchData, GatewayGuildMemberRemoveDispatchData, GatewayGuildMemberUpdateDispatchData, GatewayGuildMembersChunkDispatchData, GatewayGuildRoleCreateDispatchData, GatewayGuildRoleDeleteDispatchData, GatewayGuildRoleUpdateDispatchData, GatewayGuildScheduledEventCreateDispatchData, GatewayGuildScheduledEventDeleteDispatchData, GatewayGuildScheduledEventUpdateDispatchData, GatewayGuildScheduledEventUserAddDispatchData, GatewayGuildScheduledEventUserRemoveDispatchData, GatewayGuildStickersUpdateDispatchData, GatewayGuildUpdateDispatchData } from '../../common';
|
|
3
3
|
import { Guild, GuildEmoji, GuildMember, GuildRole, Sticker, UnavailableMember, User, type GatewayGuildMemberAddDispatchDataFixed } from '../../structures';
|
|
4
4
|
export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: BaseClient, data: GatewayGuildAuditLogEntryCreateDispatchData) => {
|
|
5
5
|
guildId: string;
|
|
6
6
|
targetId: string | null;
|
|
7
|
-
changes?: import("discord-api-types/
|
|
7
|
+
changes?: import("discord-api-types/v10").APIAuditLogChange[] | undefined;
|
|
8
8
|
userId: string | null;
|
|
9
9
|
id: string;
|
|
10
|
-
actionType: import("discord-api-types/
|
|
11
|
-
options?: import("discord-api-types/
|
|
10
|
+
actionType: import("discord-api-types/v10").AuditLogEvent;
|
|
11
|
+
options?: import("discord-api-types/v10").APIAuditLogOptions | undefined;
|
|
12
12
|
reason?: string | undefined;
|
|
13
13
|
};
|
|
14
14
|
export declare const GUILD_BAN_ADD: (self: BaseClient, data: GatewayGuildBanAddDispatchData) => {
|
|
@@ -20,7 +20,7 @@ export declare const GUILD_BAN_REMOVE: (self: BaseClient, data: GatewayGuildBanR
|
|
|
20
20
|
guildId: string;
|
|
21
21
|
};
|
|
22
22
|
export declare const GUILD_CREATE: (self: BaseClient, data: GatewayGuildCreateDispatchData) => Guild<"create">;
|
|
23
|
-
export declare const GUILD_DELETE: (_self: BaseClient, data: GatewayGuildDeleteDispatchData) => Promise<import("discord-api-types/
|
|
23
|
+
export declare const GUILD_DELETE: (_self: BaseClient, data: GatewayGuildDeleteDispatchData) => Promise<import("discord-api-types/v10").APIUnavailableGuild>;
|
|
24
24
|
export declare const GUILD_EMOJIS_UPDATE: (self: BaseClient, data: GatewayGuildEmojisUpdateDispatchData) => {
|
|
25
25
|
emojis: GuildEmoji[];
|
|
26
26
|
guildId: string;
|
|
@@ -39,7 +39,7 @@ export declare const GUILD_MEMBERS_CHUNK: (self: BaseClient, data: GatewayGuildM
|
|
|
39
39
|
chunkIndex: number;
|
|
40
40
|
chunkCount: number;
|
|
41
41
|
notFound?: unknown[] | undefined;
|
|
42
|
-
presences?: import("discord-api-types/
|
|
42
|
+
presences?: import("discord-api-types/v10").GatewayGuildMembersChunkPresence[] | undefined;
|
|
43
43
|
nonce?: string | undefined;
|
|
44
44
|
};
|
|
45
45
|
export declare const GUILD_MEMBER_UPDATE: (self: BaseClient, data: GatewayGuildMemberUpdateDispatchData) => Promise<[member: GuildMember, old?: GuildMember]>;
|
|
@@ -53,11 +53,11 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: BaseClient, data: Gat
|
|
|
53
53
|
description?: string | null | undefined;
|
|
54
54
|
scheduledStartTime: string;
|
|
55
55
|
scheduledEndTime: string | null;
|
|
56
|
-
privacyLevel: import("discord-api-types/
|
|
57
|
-
status: import("discord-api-types/
|
|
58
|
-
entityType: import("discord-api-types/
|
|
56
|
+
privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
|
|
57
|
+
status: import("discord-api-types/v10").GuildScheduledEventStatus;
|
|
58
|
+
entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.StageInstance;
|
|
59
59
|
entityId: string | null;
|
|
60
|
-
creator?: import("discord-api-types/
|
|
60
|
+
creator?: import("discord-api-types/v10").APIUser | undefined;
|
|
61
61
|
userCount?: number | undefined;
|
|
62
62
|
image?: string | null | undefined;
|
|
63
63
|
} | {
|
|
@@ -70,11 +70,11 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: BaseClient, data: Gat
|
|
|
70
70
|
description?: string | null | undefined;
|
|
71
71
|
scheduledStartTime: string;
|
|
72
72
|
scheduledEndTime: string | null;
|
|
73
|
-
privacyLevel: import("discord-api-types/
|
|
74
|
-
status: import("discord-api-types/
|
|
75
|
-
entityType: import("discord-api-types/
|
|
73
|
+
privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
|
|
74
|
+
status: import("discord-api-types/v10").GuildScheduledEventStatus;
|
|
75
|
+
entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.Voice;
|
|
76
76
|
entityId: string | null;
|
|
77
|
-
creator?: import("discord-api-types/
|
|
77
|
+
creator?: import("discord-api-types/v10").APIUser | undefined;
|
|
78
78
|
userCount?: number | undefined;
|
|
79
79
|
image?: string | null | undefined;
|
|
80
80
|
} | {
|
|
@@ -89,11 +89,11 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: BaseClient, data: Gat
|
|
|
89
89
|
description?: string | null | undefined;
|
|
90
90
|
scheduledStartTime: string;
|
|
91
91
|
scheduledEndTime: string | null;
|
|
92
|
-
privacyLevel: import("discord-api-types/
|
|
93
|
-
status: import("discord-api-types/
|
|
94
|
-
entityType: import("discord-api-types/
|
|
92
|
+
privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
|
|
93
|
+
status: import("discord-api-types/v10").GuildScheduledEventStatus;
|
|
94
|
+
entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.External;
|
|
95
95
|
entityId: string | null;
|
|
96
|
-
creator?: import("discord-api-types/
|
|
96
|
+
creator?: import("discord-api-types/v10").APIUser | undefined;
|
|
97
97
|
userCount?: number | undefined;
|
|
98
98
|
image?: string | null | undefined;
|
|
99
99
|
};
|
|
@@ -107,11 +107,11 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: BaseClient, data: Gat
|
|
|
107
107
|
description?: string | null | undefined;
|
|
108
108
|
scheduledStartTime: string;
|
|
109
109
|
scheduledEndTime: string | null;
|
|
110
|
-
privacyLevel: import("discord-api-types/
|
|
111
|
-
status: import("discord-api-types/
|
|
112
|
-
entityType: import("discord-api-types/
|
|
110
|
+
privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
|
|
111
|
+
status: import("discord-api-types/v10").GuildScheduledEventStatus;
|
|
112
|
+
entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.StageInstance;
|
|
113
113
|
entityId: string | null;
|
|
114
|
-
creator?: import("discord-api-types/
|
|
114
|
+
creator?: import("discord-api-types/v10").APIUser | undefined;
|
|
115
115
|
userCount?: number | undefined;
|
|
116
116
|
image?: string | null | undefined;
|
|
117
117
|
} | {
|
|
@@ -124,11 +124,11 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: BaseClient, data: Gat
|
|
|
124
124
|
description?: string | null | undefined;
|
|
125
125
|
scheduledStartTime: string;
|
|
126
126
|
scheduledEndTime: string | null;
|
|
127
|
-
privacyLevel: import("discord-api-types/
|
|
128
|
-
status: import("discord-api-types/
|
|
129
|
-
entityType: import("discord-api-types/
|
|
127
|
+
privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
|
|
128
|
+
status: import("discord-api-types/v10").GuildScheduledEventStatus;
|
|
129
|
+
entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.Voice;
|
|
130
130
|
entityId: string | null;
|
|
131
|
-
creator?: import("discord-api-types/
|
|
131
|
+
creator?: import("discord-api-types/v10").APIUser | undefined;
|
|
132
132
|
userCount?: number | undefined;
|
|
133
133
|
image?: string | null | undefined;
|
|
134
134
|
} | {
|
|
@@ -143,11 +143,11 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: BaseClient, data: Gat
|
|
|
143
143
|
description?: string | null | undefined;
|
|
144
144
|
scheduledStartTime: string;
|
|
145
145
|
scheduledEndTime: string | null;
|
|
146
|
-
privacyLevel: import("discord-api-types/
|
|
147
|
-
status: import("discord-api-types/
|
|
148
|
-
entityType: import("discord-api-types/
|
|
146
|
+
privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
|
|
147
|
+
status: import("discord-api-types/v10").GuildScheduledEventStatus;
|
|
148
|
+
entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.External;
|
|
149
149
|
entityId: string | null;
|
|
150
|
-
creator?: import("discord-api-types/
|
|
150
|
+
creator?: import("discord-api-types/v10").APIUser | undefined;
|
|
151
151
|
userCount?: number | undefined;
|
|
152
152
|
image?: string | null | undefined;
|
|
153
153
|
};
|
|
@@ -161,11 +161,11 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: BaseClient, data: Gat
|
|
|
161
161
|
description?: string | null | undefined;
|
|
162
162
|
scheduledStartTime: string;
|
|
163
163
|
scheduledEndTime: string | null;
|
|
164
|
-
privacyLevel: import("discord-api-types/
|
|
165
|
-
status: import("discord-api-types/
|
|
166
|
-
entityType: import("discord-api-types/
|
|
164
|
+
privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
|
|
165
|
+
status: import("discord-api-types/v10").GuildScheduledEventStatus;
|
|
166
|
+
entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.StageInstance;
|
|
167
167
|
entityId: string | null;
|
|
168
|
-
creator?: import("discord-api-types/
|
|
168
|
+
creator?: import("discord-api-types/v10").APIUser | undefined;
|
|
169
169
|
userCount?: number | undefined;
|
|
170
170
|
image?: string | null | undefined;
|
|
171
171
|
} | {
|
|
@@ -178,11 +178,11 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: BaseClient, data: Gat
|
|
|
178
178
|
description?: string | null | undefined;
|
|
179
179
|
scheduledStartTime: string;
|
|
180
180
|
scheduledEndTime: string | null;
|
|
181
|
-
privacyLevel: import("discord-api-types/
|
|
182
|
-
status: import("discord-api-types/
|
|
183
|
-
entityType: import("discord-api-types/
|
|
181
|
+
privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
|
|
182
|
+
status: import("discord-api-types/v10").GuildScheduledEventStatus;
|
|
183
|
+
entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.Voice;
|
|
184
184
|
entityId: string | null;
|
|
185
|
-
creator?: import("discord-api-types/
|
|
185
|
+
creator?: import("discord-api-types/v10").APIUser | undefined;
|
|
186
186
|
userCount?: number | undefined;
|
|
187
187
|
image?: string | null | undefined;
|
|
188
188
|
} | {
|
|
@@ -197,11 +197,11 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: BaseClient, data: Gat
|
|
|
197
197
|
description?: string | null | undefined;
|
|
198
198
|
scheduledStartTime: string;
|
|
199
199
|
scheduledEndTime: string | null;
|
|
200
|
-
privacyLevel: import("discord-api-types/
|
|
201
|
-
status: import("discord-api-types/
|
|
202
|
-
entityType: import("discord-api-types/
|
|
200
|
+
privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
|
|
201
|
+
status: import("discord-api-types/v10").GuildScheduledEventStatus;
|
|
202
|
+
entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.External;
|
|
203
203
|
entityId: string | null;
|
|
204
|
-
creator?: import("discord-api-types/
|
|
204
|
+
creator?: import("discord-api-types/v10").APIUser | undefined;
|
|
205
205
|
userCount?: number | undefined;
|
|
206
206
|
image?: string | null | undefined;
|
|
207
207
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import type { GatewayIntegrationCreateDispatchData, GatewayIntegrationDeleteDispatchData, GatewayIntegrationUpdateDispatchData } from 'discord-api-types/v10';
|
|
1
2
|
import type { BaseClient } from '../../client/base';
|
|
2
|
-
import type { GatewayIntegrationCreateDispatchData, GatewayIntegrationDeleteDispatchData, GatewayIntegrationUpdateDispatchData } from '../../common';
|
|
3
3
|
import { User } from '../../structures';
|
|
4
4
|
export declare const INTEGRATION_CREATE: (self: BaseClient, data: GatewayIntegrationCreateDispatchData) => {
|
|
5
5
|
id: string;
|
|
6
6
|
name: string;
|
|
7
|
-
type: import("discord-api-types/
|
|
7
|
+
type: import("discord-api-types/v10").APIGuildIntegrationType;
|
|
8
8
|
enabled: boolean;
|
|
9
9
|
syncing?: boolean | undefined;
|
|
10
10
|
roleId?: string | undefined;
|
|
11
11
|
enableEmoticons?: boolean | undefined;
|
|
12
|
-
expireBehavior?: import("discord-api-types/
|
|
12
|
+
expireBehavior?: import("discord-api-types/v10").IntegrationExpireBehavior | undefined;
|
|
13
13
|
expireGracePeriod?: number | undefined;
|
|
14
|
-
user?: import("discord-api-types/
|
|
14
|
+
user?: import("discord-api-types/v10").APIUser | undefined;
|
|
15
15
|
account: {
|
|
16
16
|
id: string;
|
|
17
17
|
name: string;
|
|
@@ -19,19 +19,19 @@ export declare const INTEGRATION_CREATE: (self: BaseClient, data: GatewayIntegra
|
|
|
19
19
|
syncedAt?: string | undefined;
|
|
20
20
|
subscriberCount?: number | undefined;
|
|
21
21
|
revoked?: boolean | undefined;
|
|
22
|
-
application?: import("discord-api-types/
|
|
23
|
-
scopes?: import("discord-api-types/
|
|
22
|
+
application?: import("discord-api-types/v10").APIGuildIntegrationApplication | undefined;
|
|
23
|
+
scopes?: import("discord-api-types/v10").OAuth2Scopes[] | undefined;
|
|
24
24
|
guildId: string;
|
|
25
25
|
} | {
|
|
26
26
|
user: User;
|
|
27
27
|
id: string;
|
|
28
28
|
name: string;
|
|
29
|
-
type: import("discord-api-types/
|
|
29
|
+
type: import("discord-api-types/v10").APIGuildIntegrationType;
|
|
30
30
|
enabled: boolean;
|
|
31
31
|
syncing?: boolean | undefined;
|
|
32
32
|
roleId?: string | undefined;
|
|
33
33
|
enableEmoticons?: boolean | undefined;
|
|
34
|
-
expireBehavior?: import("discord-api-types/
|
|
34
|
+
expireBehavior?: import("discord-api-types/v10").IntegrationExpireBehavior | undefined;
|
|
35
35
|
expireGracePeriod?: number | undefined;
|
|
36
36
|
account: {
|
|
37
37
|
id: string;
|
|
@@ -40,21 +40,21 @@ export declare const INTEGRATION_CREATE: (self: BaseClient, data: GatewayIntegra
|
|
|
40
40
|
syncedAt?: string | undefined;
|
|
41
41
|
subscriberCount?: number | undefined;
|
|
42
42
|
revoked?: boolean | undefined;
|
|
43
|
-
application?: import("discord-api-types/
|
|
44
|
-
scopes?: import("discord-api-types/
|
|
43
|
+
application?: import("discord-api-types/v10").APIGuildIntegrationApplication | undefined;
|
|
44
|
+
scopes?: import("discord-api-types/v10").OAuth2Scopes[] | undefined;
|
|
45
45
|
guildId: string;
|
|
46
46
|
};
|
|
47
47
|
export declare const INTEGRATION_UPDATE: (self: BaseClient, data: GatewayIntegrationUpdateDispatchData) => {
|
|
48
48
|
id: string;
|
|
49
49
|
name: string;
|
|
50
|
-
type: import("discord-api-types/
|
|
50
|
+
type: import("discord-api-types/v10").APIGuildIntegrationType;
|
|
51
51
|
enabled: boolean;
|
|
52
52
|
syncing?: boolean | undefined;
|
|
53
53
|
roleId?: string | undefined;
|
|
54
54
|
enableEmoticons?: boolean | undefined;
|
|
55
|
-
expireBehavior?: import("discord-api-types/
|
|
55
|
+
expireBehavior?: import("discord-api-types/v10").IntegrationExpireBehavior | undefined;
|
|
56
56
|
expireGracePeriod?: number | undefined;
|
|
57
|
-
user?: import("discord-api-types/
|
|
57
|
+
user?: import("discord-api-types/v10").APIUser | undefined;
|
|
58
58
|
account: {
|
|
59
59
|
id: string;
|
|
60
60
|
name: string;
|
|
@@ -62,19 +62,19 @@ export declare const INTEGRATION_UPDATE: (self: BaseClient, data: GatewayIntegra
|
|
|
62
62
|
syncedAt?: string | undefined;
|
|
63
63
|
subscriberCount?: number | undefined;
|
|
64
64
|
revoked?: boolean | undefined;
|
|
65
|
-
application?: import("discord-api-types/
|
|
66
|
-
scopes?: import("discord-api-types/
|
|
65
|
+
application?: import("discord-api-types/v10").APIGuildIntegrationApplication | undefined;
|
|
66
|
+
scopes?: import("discord-api-types/v10").OAuth2Scopes[] | undefined;
|
|
67
67
|
guildId: string;
|
|
68
68
|
} | {
|
|
69
69
|
user: User;
|
|
70
70
|
id: string;
|
|
71
71
|
name: string;
|
|
72
|
-
type: import("discord-api-types/
|
|
72
|
+
type: import("discord-api-types/v10").APIGuildIntegrationType;
|
|
73
73
|
enabled: boolean;
|
|
74
74
|
syncing?: boolean | undefined;
|
|
75
75
|
roleId?: string | undefined;
|
|
76
76
|
enableEmoticons?: boolean | undefined;
|
|
77
|
-
expireBehavior?: import("discord-api-types/
|
|
77
|
+
expireBehavior?: import("discord-api-types/v10").IntegrationExpireBehavior | undefined;
|
|
78
78
|
expireGracePeriod?: number | undefined;
|
|
79
79
|
account: {
|
|
80
80
|
id: string;
|
|
@@ -83,8 +83,8 @@ export declare const INTEGRATION_UPDATE: (self: BaseClient, data: GatewayIntegra
|
|
|
83
83
|
syncedAt?: string | undefined;
|
|
84
84
|
subscriberCount?: number | undefined;
|
|
85
85
|
revoked?: boolean | undefined;
|
|
86
|
-
application?: import("discord-api-types/
|
|
87
|
-
scopes?: import("discord-api-types/
|
|
86
|
+
application?: import("discord-api-types/v10").APIGuildIntegrationApplication | undefined;
|
|
87
|
+
scopes?: import("discord-api-types/v10").OAuth2Scopes[] | undefined;
|
|
88
88
|
guildId: string;
|
|
89
89
|
};
|
|
90
90
|
export declare const INTEGRATION_DELETE: (_self: BaseClient, data: GatewayIntegrationDeleteDispatchData) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import type { GatewayInteractionCreateDispatchData } from 'discord-api-types/v10';
|
|
1
2
|
import type { BaseClient } from '../../client/base';
|
|
2
|
-
import type { GatewayInteractionCreateDispatchData } from '../../common';
|
|
3
3
|
import { BaseInteraction } from '../../structures';
|
|
4
|
-
export declare const INTERACTION_CREATE: (self: BaseClient, data: GatewayInteractionCreateDispatchData) => import("../../structures").StringSelectMenuInteraction<string[]> | import("../../structures").AutocompleteInteraction<boolean> | BaseInteraction<boolean, import("discord-api-types/
|
|
4
|
+
export declare const INTERACTION_CREATE: (self: BaseClient, data: GatewayInteractionCreateDispatchData) => import("../../structures").StringSelectMenuInteraction<string[]> | import("../../structures").AutocompleteInteraction<boolean> | BaseInteraction<boolean, import("discord-api-types/v10").APIPingInteraction>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type { GatewayInviteCreateDispatchData, GatewayInviteDeleteDispatchData } from '
|
|
1
|
+
import type { GatewayInviteCreateDispatchData, GatewayInviteDeleteDispatchData } from 'discord-api-types/v10';
|
|
2
2
|
import type { BaseClient } from '../../client/base';
|
|
3
3
|
export declare const INVITE_CREATE: (_self: BaseClient, data: GatewayInviteCreateDispatchData) => {
|
|
4
4
|
channelId: string;
|
|
5
5
|
code: string;
|
|
6
6
|
createdAt: number;
|
|
7
7
|
guildId?: string | undefined;
|
|
8
|
-
inviter?: import("discord-api-types/
|
|
8
|
+
inviter?: import("discord-api-types/v10").APIUser | undefined;
|
|
9
9
|
maxAge: number;
|
|
10
10
|
maxUses: number;
|
|
11
|
-
targetType?: import("discord-api-types/
|
|
12
|
-
targetUser?: import("discord-api-types/
|
|
13
|
-
targetApplication?: Partial<import("discord-api-types/
|
|
11
|
+
targetType?: import("discord-api-types/v10").InviteTargetType | undefined;
|
|
12
|
+
targetUser?: import("discord-api-types/v10").APIUser | undefined;
|
|
13
|
+
targetApplication?: Partial<import("discord-api-types/v10").APIApplication> | undefined;
|
|
14
14
|
temporary: boolean;
|
|
15
15
|
uses: 0;
|
|
16
16
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { GatewayMessageCreateDispatchData, GatewayMessageDeleteBulkDispatchData, GatewayMessageDeleteDispatchData, GatewayMessageReactionAddDispatchData, GatewayMessageReactionRemoveAllDispatchData, GatewayMessageReactionRemoveDispatchData, GatewayMessageReactionRemoveEmojiDispatchData, GatewayMessageUpdateDispatchData } from 'discord-api-types/v10';
|
|
1
2
|
import type { BaseClient } from '../../client/base';
|
|
2
|
-
import
|
|
3
|
+
import { type MakeRequired, type PartialClass } from '../../common';
|
|
3
4
|
import { Message } from '../../structures';
|
|
4
5
|
export declare const MESSAGE_CREATE: (self: BaseClient, data: GatewayMessageCreateDispatchData) => Message;
|
|
5
6
|
export declare const MESSAGE_DELETE: (_self: BaseClient, data: GatewayMessageDeleteDispatchData) => {
|
|
@@ -15,7 +16,7 @@ export declare const MESSAGE_DELETE_BULK: (_self: BaseClient, data: GatewayMessa
|
|
|
15
16
|
export declare const MESSAGE_REACTION_ADD: (_self: BaseClient, data: GatewayMessageReactionAddDispatchData) => {
|
|
16
17
|
emoji: {
|
|
17
18
|
roles?: string[] | undefined;
|
|
18
|
-
user?: import("discord-api-types/
|
|
19
|
+
user?: import("discord-api-types/v10").APIUser | undefined;
|
|
19
20
|
requireColons?: boolean | undefined;
|
|
20
21
|
managed?: boolean | undefined;
|
|
21
22
|
available?: boolean | undefined;
|
|
@@ -26,14 +27,14 @@ export declare const MESSAGE_REACTION_ADD: (_self: BaseClient, data: GatewayMess
|
|
|
26
27
|
guildId?: string | undefined;
|
|
27
28
|
channelId: string;
|
|
28
29
|
messageId: string;
|
|
29
|
-
member?: import("discord-api-types/
|
|
30
|
+
member?: import("discord-api-types/v10").APIGuildMember | undefined;
|
|
30
31
|
userId: string;
|
|
31
32
|
messageAuthorId?: string | undefined;
|
|
32
33
|
};
|
|
33
34
|
export declare const MESSAGE_REACTION_REMOVE: (_self: BaseClient, data: GatewayMessageReactionRemoveDispatchData) => {
|
|
34
35
|
emoji: {
|
|
35
36
|
roles?: string[] | undefined;
|
|
36
|
-
user?: import("discord-api-types/
|
|
37
|
+
user?: import("discord-api-types/v10").APIUser | undefined;
|
|
37
38
|
requireColons?: boolean | undefined;
|
|
38
39
|
managed?: boolean | undefined;
|
|
39
40
|
available?: boolean | undefined;
|
|
@@ -54,7 +55,7 @@ export declare const MESSAGE_REACTION_REMOVE_ALL: (_self: BaseClient, data: Gate
|
|
|
54
55
|
export declare const MESSAGE_REACTION_REMOVE_EMOJI: (_self: BaseClient, data: GatewayMessageReactionRemoveEmojiDispatchData) => {
|
|
55
56
|
emoji: {
|
|
56
57
|
roles?: string[] | undefined;
|
|
57
|
-
user?: import("discord-api-types/
|
|
58
|
+
user?: import("discord-api-types/v10").APIUser | undefined;
|
|
58
59
|
requireColons?: boolean | undefined;
|
|
59
60
|
managed?: boolean | undefined;
|
|
60
61
|
available?: boolean | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GatewayPresenceUpdateDispatchData } from '
|
|
1
|
+
import type { GatewayPresenceUpdateDispatchData } from 'discord-api-types/v10';
|
|
2
2
|
import type { BaseClient } from '../../client/base';
|
|
3
3
|
export declare const PRESENCE_UPDATE: (_self: BaseClient, data: GatewayPresenceUpdateDispatchData) => {
|
|
4
4
|
user: {
|
|
@@ -15,13 +15,13 @@ export declare const PRESENCE_UPDATE: (_self: BaseClient, data: GatewayPresenceU
|
|
|
15
15
|
locale?: string | undefined;
|
|
16
16
|
verified?: boolean | undefined;
|
|
17
17
|
email?: string | null | undefined;
|
|
18
|
-
flags?: import("discord-api-types/
|
|
19
|
-
premiumType?: import("discord-api-types/
|
|
20
|
-
publicFlags?: import("discord-api-types/
|
|
18
|
+
flags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
19
|
+
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
20
|
+
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
21
21
|
avatarDecoration?: string | null | undefined;
|
|
22
22
|
};
|
|
23
23
|
guildId: string;
|
|
24
|
-
status?: import("discord-api-types/
|
|
25
|
-
activities?: import("discord-api-types/
|
|
26
|
-
clientStatus?: import("discord-api-types/
|
|
24
|
+
status?: import("discord-api-types/v10").PresenceUpdateReceiveStatus | undefined;
|
|
25
|
+
activities?: import("discord-api-types/v10").GatewayActivity[] | undefined;
|
|
26
|
+
clientStatus?: import("discord-api-types/v10").GatewayPresenceClientStatus | undefined;
|
|
27
27
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { GatewayStageInstanceCreateDispatchData, GatewayStageInstanceDeleteDispatchData } from '
|
|
1
|
+
import type { GatewayStageInstanceCreateDispatchData, GatewayStageInstanceDeleteDispatchData } from 'discord-api-types/v10';
|
|
2
2
|
import type { BaseClient } from '../../client/base';
|
|
3
3
|
export declare const STAGE_INSTANCE_CREATE: (_self: BaseClient, data: GatewayStageInstanceCreateDispatchData) => {
|
|
4
4
|
id: string;
|
|
5
5
|
guildId: string;
|
|
6
6
|
channelId: string;
|
|
7
7
|
topic: string;
|
|
8
|
-
privacyLevel: import("discord-api-types/
|
|
8
|
+
privacyLevel: import("discord-api-types/v10").StageInstancePrivacyLevel;
|
|
9
9
|
discoverableDisabled: boolean;
|
|
10
10
|
guildScheduledEventId?: string | undefined;
|
|
11
11
|
};
|
|
@@ -14,7 +14,7 @@ export declare const STAGE_INSTANCE_DELETE: (_self: BaseClient, data: GatewaySta
|
|
|
14
14
|
guildId: string;
|
|
15
15
|
channelId: string;
|
|
16
16
|
topic: string;
|
|
17
|
-
privacyLevel: import("discord-api-types/
|
|
17
|
+
privacyLevel: import("discord-api-types/v10").StageInstancePrivacyLevel;
|
|
18
18
|
discoverableDisabled: boolean;
|
|
19
19
|
guildScheduledEventId?: string | undefined;
|
|
20
20
|
};
|
|
@@ -23,7 +23,7 @@ export declare const STAGE_INSTANCE_UPDATE: (_self: BaseClient, data: GatewaySta
|
|
|
23
23
|
guildId: string;
|
|
24
24
|
channelId: string;
|
|
25
25
|
topic: string;
|
|
26
|
-
privacyLevel: import("discord-api-types/
|
|
26
|
+
privacyLevel: import("discord-api-types/v10").StageInstancePrivacyLevel;
|
|
27
27
|
discoverableDisabled: boolean;
|
|
28
28
|
guildScheduledEventId?: string | undefined;
|
|
29
29
|
};
|