seyfert 1.1.1 → 1.2.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.
Files changed (155) hide show
  1. package/lib/api/Routes/applications.d.ts +2 -2
  2. package/lib/api/Routes/channels.d.ts +2 -2
  3. package/lib/api/Routes/gateway.d.ts +2 -2
  4. package/lib/api/Routes/guilds.d.ts +2 -1
  5. package/lib/api/Routes/interactions.d.ts +2 -2
  6. package/lib/api/Routes/invites.d.ts +2 -2
  7. package/lib/api/Routes/stage-instances.d.ts +2 -2
  8. package/lib/api/Routes/stickers.d.ts +2 -2
  9. package/lib/api/Routes/users.d.ts +2 -2
  10. package/lib/api/Routes/voice.d.ts +2 -2
  11. package/lib/api/Routes/webhooks.d.ts +2 -2
  12. package/lib/builders/ActionRow.d.ts +2 -1
  13. package/lib/builders/ActionRow.js +3 -3
  14. package/lib/builders/Base.d.ts +1 -1
  15. package/lib/builders/Button.d.ts +2 -1
  16. package/lib/builders/Button.js +2 -2
  17. package/lib/builders/Embed.d.ts +2 -1
  18. package/lib/builders/Modal.d.ts +9 -2
  19. package/lib/builders/Modal.js +12 -3
  20. package/lib/builders/SelectMenu.d.ts +18 -1
  21. package/lib/builders/SelectMenu.js +36 -12
  22. package/lib/builders/index.d.ts +1 -1
  23. package/lib/builders/index.js +9 -9
  24. package/lib/builders/types.d.ts +1 -1
  25. package/lib/cache/index.d.ts +5 -5
  26. package/lib/cache/index.js +3 -3
  27. package/lib/cache/resources/default/base.d.ts +1 -1
  28. package/lib/cache/resources/default/guild-based.d.ts +1 -1
  29. package/lib/cache/resources/default/guild-related.d.ts +1 -1
  30. package/lib/cache/resources/presence.d.ts +1 -1
  31. package/lib/cache/resources/stage-instances.d.ts +1 -1
  32. package/lib/cache/resources/voice-states.d.ts +1 -1
  33. package/lib/client/base.d.ts +4 -3
  34. package/lib/client/client.d.ts +2 -1
  35. package/lib/client/client.js +2 -2
  36. package/lib/client/httpclient.d.ts +2 -1
  37. package/lib/client/httpclient.js +3 -3
  38. package/lib/client/oninteractioncreate.js +11 -12
  39. package/lib/client/onmessagecreate.js +2 -3
  40. package/lib/client/workerclient.d.ts +3 -2
  41. package/lib/client/workerclient.js +4 -3
  42. package/lib/commands/applications/chat.d.ts +3 -3
  43. package/lib/commands/applications/chat.js +4 -3
  44. package/lib/commands/applications/chatcontext.d.ts +6 -9
  45. package/lib/commands/applications/chatcontext.js +6 -17
  46. package/lib/commands/applications/menu.d.ts +2 -1
  47. package/lib/commands/applications/menucontext.d.ts +4 -8
  48. package/lib/commands/applications/menucontext.js +7 -20
  49. package/lib/commands/basecontex.d.ts +15 -0
  50. package/lib/commands/basecontex.js +34 -0
  51. package/lib/commands/decorators.d.ts +2 -1
  52. package/lib/commands/decorators.js +4 -4
  53. package/lib/commands/handler.js +4 -3
  54. package/lib/commands/optionresolver.d.ts +3 -3
  55. package/lib/commands/optionresolver.js +14 -14
  56. package/lib/common/index.d.ts +0 -1
  57. package/lib/common/index.js +0 -1
  58. package/lib/common/it/constants.d.ts +3 -1
  59. package/lib/common/it/constants.js +2 -0
  60. package/lib/common/shorters/channels.d.ts +1 -1
  61. package/lib/common/shorters/channels.js +4 -4
  62. package/lib/common/shorters/guilds.d.ts +1 -1
  63. package/lib/common/shorters/guilds.js +6 -1
  64. package/lib/common/shorters/members.d.ts +6 -1
  65. package/lib/common/shorters/members.js +25 -2
  66. package/lib/common/shorters/webhook.d.ts +2 -2
  67. package/lib/common/types/resolvables.d.ts +2 -1
  68. package/lib/common/types/util.d.ts +1 -1
  69. package/lib/common/types/write.d.ts +1 -1
  70. package/lib/components/ActionRow.d.ts +4 -3
  71. package/lib/components/ActionRow.js +6 -3
  72. package/lib/components/BaseComponent.d.ts +18 -0
  73. package/lib/components/BaseComponent.js +21 -0
  74. package/lib/components/BaseSelectMenuComponent.d.ts +10 -0
  75. package/lib/components/BaseSelectMenuComponent.js +22 -0
  76. package/lib/components/ButtonComponent.d.ts +14 -14
  77. package/lib/components/ButtonComponent.js +36 -25
  78. package/lib/components/ChannelSelectMenuComponent.d.ts +4 -4
  79. package/lib/components/ChannelSelectMenuComponent.js +6 -5
  80. package/lib/components/MentionableSelectMenuComponent.d.ts +3 -2
  81. package/lib/components/MentionableSelectMenuComponent.js +4 -1
  82. package/lib/components/RoleSelectMenuComponent.d.ts +3 -2
  83. package/lib/components/RoleSelectMenuComponent.js +4 -1
  84. package/lib/components/StringSelectMenuComponent.d.ts +3 -4
  85. package/lib/components/StringSelectMenuComponent.js +3 -5
  86. package/lib/components/TextInputComponent.d.ts +10 -5
  87. package/lib/components/TextInputComponent.js +24 -7
  88. package/lib/components/UserSelectMenuComponent.d.ts +3 -2
  89. package/lib/components/UserSelectMenuComponent.js +4 -1
  90. package/lib/components/command.d.ts +6 -5
  91. package/lib/components/command.js +4 -0
  92. package/lib/components/componentcontext.d.ts +42 -0
  93. package/lib/components/componentcontext.js +79 -0
  94. package/lib/components/handler.d.ts +3 -3
  95. package/lib/components/handler.js +9 -4
  96. package/lib/components/index.d.ts +2 -2
  97. package/lib/components/index.js +9 -9
  98. package/lib/events/handler.d.ts +2 -1
  99. package/lib/events/hooks/application_command.d.ts +2 -2
  100. package/lib/events/hooks/auto_moderation.d.ts +4 -4
  101. package/lib/events/hooks/channel.d.ts +1 -1
  102. package/lib/events/hooks/dispatch.d.ts +1 -1
  103. package/lib/events/hooks/entitlement.d.ts +4 -4
  104. package/lib/events/hooks/guild.d.ts +42 -42
  105. package/lib/events/hooks/integration.d.ts +19 -19
  106. package/lib/events/hooks/interactions.d.ts +2 -2
  107. package/lib/events/hooks/invite.d.ts +5 -5
  108. package/lib/events/hooks/message.d.ts +6 -5
  109. package/lib/events/hooks/presence.d.ts +7 -7
  110. package/lib/events/hooks/stage.d.ts +4 -4
  111. package/lib/events/hooks/thread.d.ts +49 -49
  112. package/lib/events/hooks/typing.d.ts +2 -2
  113. package/lib/events/hooks/user.d.ts +1 -1
  114. package/lib/events/hooks/voice.d.ts +2 -2
  115. package/lib/events/hooks/webhook.d.ts +1 -1
  116. package/lib/index.d.ts +3 -6
  117. package/lib/index.js +6 -7
  118. package/lib/langs/handler.d.ts +2 -1
  119. package/lib/structures/AutoModerationRule.d.ts +3 -2
  120. package/lib/structures/ClientUser.d.ts +1 -1
  121. package/lib/structures/Guild.d.ts +27 -27
  122. package/lib/structures/GuildEmoji.d.ts +2 -1
  123. package/lib/structures/GuildMember.d.ts +15 -6
  124. package/lib/structures/GuildMember.js +32 -6
  125. package/lib/structures/GuildPreview.d.ts +1 -1
  126. package/lib/structures/GuildRole.d.ts +2 -1
  127. package/lib/structures/GuildTemplate.d.ts +3 -2
  128. package/lib/structures/Interaction.d.ts +3 -3
  129. package/lib/structures/Interaction.js +33 -33
  130. package/lib/structures/Message.d.ts +5 -4
  131. package/lib/structures/Sticker.d.ts +2 -1
  132. package/lib/structures/User.d.ts +6 -3
  133. package/lib/structures/Webhook.d.ts +63 -4
  134. package/lib/structures/Webhook.js +53 -0
  135. package/lib/structures/channels.d.ts +2 -2
  136. package/lib/structures/extra/BaseGuild.d.ts +2 -1
  137. package/lib/structures/extra/BaseGuild.js +3 -3
  138. package/lib/structures/extra/BitField.d.ts +2 -2
  139. package/lib/structures/extra/BitField.js +2 -2
  140. package/lib/structures/extra/Permissions.d.ts +1 -1
  141. package/lib/structures/extra/functions.d.ts +2 -1
  142. package/lib/structures/extra/functions.js +2 -1
  143. package/lib/types/index.d.ts +1 -0
  144. package/lib/types/index.js +17 -0
  145. package/lib/websocket/SharedTypes.d.ts +2 -1
  146. package/lib/websocket/SharedTypes.js +1 -0
  147. package/lib/websocket/discord/shard.d.ts +2 -1
  148. package/lib/websocket/discord/shard.js +30 -41
  149. package/lib/websocket/discord/sharder.d.ts +3 -2
  150. package/lib/websocket/discord/sharder.js +7 -6
  151. package/lib/websocket/discord/shared.d.ts +2 -1
  152. package/lib/websocket/discord/worker.d.ts +1 -1
  153. package/lib/websocket/discord/workermanager.d.ts +3 -2
  154. package/lib/websocket/discord/workermanager.js +1 -1
  155. package/package.json +2 -2
@@ -1,14 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TextInputComponent = void 0;
4
- const BaseComponent_1 = require("../structures/extra/BaseComponent");
4
+ const BaseComponent_1 = require("./BaseComponent");
5
5
  class TextInputComponent extends BaseComponent_1.BaseComponent {
6
- constructor(data) {
7
- super(data);
8
- this.customId = data.custom_id;
9
- this.value = data.value;
6
+ get customId() {
7
+ return this.data.custom_id;
8
+ }
9
+ get value() {
10
+ return this.data.value;
11
+ }
12
+ get style() {
13
+ return this.data.style;
14
+ }
15
+ get label() {
16
+ return this.data.label;
17
+ }
18
+ get max() {
19
+ return this.data.max_length;
20
+ }
21
+ get min() {
22
+ return this.data.min_length;
23
+ }
24
+ get required() {
25
+ return this.data.required;
26
+ }
27
+ get placeholder() {
28
+ return this.data.placeholder;
10
29
  }
11
- customId;
12
- value;
13
30
  }
14
31
  exports.TextInputComponent = TextInputComponent;
@@ -1,4 +1,5 @@
1
- import type { ComponentType } from '../common';
2
- import { BaseSelectMenuComponent } from '../structures/extra/BaseSelectMenuComponent';
1
+ import type { ComponentType } from 'discord-api-types/v10';
2
+ import { BaseSelectMenuComponent } from './BaseSelectMenuComponent';
3
3
  export declare class UserSelectMenuComponent extends BaseSelectMenuComponent<ComponentType.UserSelect> {
4
+ get defaultValues(): import("discord-api-types/v10").APISelectMenuDefaultValue<import("discord-api-types/v10").SelectMenuDefaultValueType.User>[] | undefined;
4
5
  }
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UserSelectMenuComponent = void 0;
4
- const BaseSelectMenuComponent_1 = require("../structures/extra/BaseSelectMenuComponent");
4
+ const BaseSelectMenuComponent_1 = require("./BaseSelectMenuComponent");
5
5
  class UserSelectMenuComponent extends BaseSelectMenuComponent_1.BaseSelectMenuComponent {
6
+ get defaultValues() {
7
+ return this.data.default_values;
8
+ }
6
9
  }
7
10
  exports.UserSelectMenuComponent = UserSelectMenuComponent;
@@ -1,5 +1,5 @@
1
- import type { ComponentType } from 'discord-api-types/v10';
2
- import type { ComponentInteraction, ModalSubmitInteraction, StringSelectMenuInteraction } from '../structures';
1
+ import type { ModalSubmitInteraction } from '../structures';
2
+ import type { ComponentCommandInteractionMap, ComponentContext } from './componentcontext';
3
3
  export declare const InteractionCommandType: {
4
4
  readonly COMPONENT: 0;
5
5
  readonly MODAL: 1;
@@ -9,9 +9,10 @@ export interface ComponentCommand {
9
9
  }
10
10
  export declare abstract class ComponentCommand {
11
11
  type: 0;
12
- abstract componentType: ComponentType;
13
- abstract filter(interaction: ComponentInteraction | StringSelectMenuInteraction): Promise<boolean> | boolean;
14
- abstract run(interaction: ComponentInteraction | StringSelectMenuInteraction): any;
12
+ abstract componentType: keyof ComponentCommandInteractionMap;
13
+ abstract filter(interaction: ComponentContext<typeof this.componentType>): Promise<boolean> | boolean;
14
+ abstract run(interaction: ComponentContext<typeof this.componentType>): any;
15
+ get cType(): number;
15
16
  }
16
17
  export interface ModalCommand {
17
18
  __filePath?: string;
@@ -1,12 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ModalCommand = exports.ComponentCommand = exports.InteractionCommandType = void 0;
4
+ const v10_1 = require("discord-api-types/v10");
4
5
  exports.InteractionCommandType = {
5
6
  COMPONENT: 0,
6
7
  MODAL: 1,
7
8
  };
8
9
  class ComponentCommand {
9
10
  type = exports.InteractionCommandType.COMPONENT;
11
+ get cType() {
12
+ return v10_1.ComponentType[this.componentType];
13
+ }
10
14
  }
11
15
  exports.ComponentCommand = ComponentCommand;
12
16
  class ModalCommand {
@@ -0,0 +1,42 @@
1
+ import type { AllChannels, ButtonInteraction, ChannelSelectMenuInteraction, ComponentInteraction, Guild, GuildMember, MentionableSelectMenuInteraction, Message, ReturnCache, RoleSelectMenuInteraction, StringSelectMenuInteraction, UserSelectMenuInteraction, WebhookMessage } from '..';
2
+ import type { ExtendContext, UsingClient } from '../commands';
3
+ import { BaseContext } from '../commands/basecontex';
4
+ import type { InteractionCreateBodyRequest, InteractionMessageUpdateBodyRequest, When } from '../common';
5
+ export interface ComponentContext<Type extends keyof ComponentCommandInteractionMap> extends BaseContext, ExtendContext {
6
+ }
7
+ export declare class ComponentContext<Type extends keyof ComponentCommandInteractionMap> extends BaseContext {
8
+ readonly client: UsingClient;
9
+ interaction: ComponentCommandInteractionMap[Type] | ComponentInteraction;
10
+ constructor(client: UsingClient, interaction: ComponentCommandInteractionMap[Type] | ComponentInteraction);
11
+ get proxy(): import("..").APIRoutes;
12
+ get t(): import("..").__InternalParseLocale<import("..").DefaultLocale> & {
13
+ get(locale?: string | undefined): import("..").DefaultLocale;
14
+ };
15
+ get customId(): string;
16
+ get write(): <FR extends boolean = false>(body: Omit<import("discord-api-types/v10").APIInteractionResponseCallbackData, "components" | "embeds"> & import("../common").ResolverProps, fetchReply?: FR | undefined) => Promise<When<FR, WebhookMessage, void>>;
17
+ deferReply(ephemeral?: boolean): Promise<void>;
18
+ get editResponse(): ((body: Omit<import("discord-api-types/v10").RESTPatchAPIWebhookWithTokenMessageJSONBody, "components" | "embeds"> & import("../common").ResolverProps) => Promise<Message>) | ((body: Omit<import("discord-api-types/v10").RESTPatchAPIWebhookWithTokenMessageJSONBody, "components" | "embeds"> & import("../common").ResolverProps) => Promise<Message>) | ((body: Omit<import("discord-api-types/v10").RESTPatchAPIWebhookWithTokenMessageJSONBody, "components" | "embeds"> & import("../common").ResolverProps) => Promise<Message>) | ((body: Omit<import("discord-api-types/v10").RESTPatchAPIWebhookWithTokenMessageJSONBody, "components" | "embeds"> & import("../common").ResolverProps) => Promise<Message>) | ((body: Omit<import("discord-api-types/v10").RESTPatchAPIWebhookWithTokenMessageJSONBody, "components" | "embeds"> & import("../common").ResolverProps) => Promise<Message>) | ((body: Omit<import("discord-api-types/v10").RESTPatchAPIWebhookWithTokenMessageJSONBody, "components" | "embeds"> & import("../common").ResolverProps) => Promise<Message>) | ((body: Omit<import("discord-api-types/v10").RESTPatchAPIWebhookWithTokenMessageJSONBody, "components" | "embeds"> & import("../common").ResolverProps) => Promise<Message>);
19
+ get update(): ((data: Omit<import("discord-api-types/v10").APIInteractionResponseCallbackData, "components" | "embeds"> & import("../common").ResolverProps) => Promise<void>) | ((data: Omit<import("discord-api-types/v10").APIInteractionResponseCallbackData, "components" | "embeds"> & import("../common").ResolverProps) => Promise<void>) | ((data: Omit<import("discord-api-types/v10").APIInteractionResponseCallbackData, "components" | "embeds"> & import("../common").ResolverProps) => Promise<void>) | ((data: Omit<import("discord-api-types/v10").APIInteractionResponseCallbackData, "components" | "embeds"> & import("../common").ResolverProps) => Promise<void>) | ((data: Omit<import("discord-api-types/v10").APIInteractionResponseCallbackData, "components" | "embeds"> & import("../common").ResolverProps) => Promise<void>) | ((data: Omit<import("discord-api-types/v10").APIInteractionResponseCallbackData, "components" | "embeds"> & import("../common").ResolverProps) => Promise<void>) | ((data: Omit<import("discord-api-types/v10").APIInteractionResponseCallbackData, "components" | "embeds"> & import("../common").ResolverProps) => Promise<void>);
20
+ editOrReply<FR extends boolean = false>(body: InteractionCreateBodyRequest | InteractionMessageUpdateBodyRequest, fetchReply?: FR): Promise<When<FR, WebhookMessage | Message, void | WebhookMessage | Message>>;
21
+ deleteResponse(): Promise<void | undefined>;
22
+ channel(mode?: 'rest' | 'flow'): Promise<AllChannels>;
23
+ channel(mode?: 'cache'): ReturnCache<AllChannels>;
24
+ me(mode?: 'rest' | 'flow'): Promise<GuildMember>;
25
+ me(mode?: 'cache'): ReturnCache<GuildMember | undefined>;
26
+ guild(mode?: 'rest' | 'flow'): Promise<Guild<'cached' | 'api'> | undefined>;
27
+ guild(mode?: 'cache'): ReturnCache<Guild<'cached'> | undefined>;
28
+ get guildId(): string | undefined;
29
+ get channelId(): string;
30
+ get author(): import("..").User;
31
+ get member(): import("..").InteractionGuildMember | undefined;
32
+ }
33
+ export interface ComponentCommandInteractionMap {
34
+ ActionRow: never;
35
+ Button: ButtonInteraction;
36
+ StringSelect: StringSelectMenuInteraction;
37
+ TextInput: never;
38
+ UserSelect: UserSelectMenuInteraction;
39
+ RoleSelect: RoleSelectMenuInteraction;
40
+ MentionableSelect: MentionableSelectMenuInteraction;
41
+ ChannelSelect: ChannelSelectMenuInteraction;
42
+ }
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ComponentContext = void 0;
4
+ const v10_1 = require("discord-api-types/v10");
5
+ const basecontex_1 = require("../commands/basecontex");
6
+ class ComponentContext extends basecontex_1.BaseContext {
7
+ client;
8
+ interaction;
9
+ constructor(client, interaction) {
10
+ super(client);
11
+ this.client = client;
12
+ this.interaction = interaction;
13
+ }
14
+ get proxy() {
15
+ return this.client.proxy;
16
+ }
17
+ get t() {
18
+ return this.client.langs.get(this.interaction?.locale ?? this.client.langs?.defaultLang ?? 'en-US');
19
+ }
20
+ get customId() {
21
+ return this.interaction.customId;
22
+ }
23
+ get write() {
24
+ return this.interaction.write;
25
+ }
26
+ deferReply(ephemeral = false) {
27
+ return this.interaction.deferReply(ephemeral ? v10_1.MessageFlags.Ephemeral : undefined);
28
+ }
29
+ get editResponse() {
30
+ return this.interaction.editResponse;
31
+ }
32
+ get update() {
33
+ return this.interaction.update;
34
+ }
35
+ editOrReply(body, fetchReply) {
36
+ return this.interaction.editOrReply(body, fetchReply);
37
+ }
38
+ deleteResponse() {
39
+ return this.interaction.deleteResponse();
40
+ }
41
+ channel(mode = 'cache') {
42
+ if (this.interaction?.channel && mode === 'cache')
43
+ return this.client.cache.adapter.isAsync ? Promise.resolve(this.interaction.channel) : this.interaction.channel;
44
+ return this.client.channels.fetch(this.channelId, mode === 'rest');
45
+ }
46
+ me(mode = 'cache') {
47
+ if (!this.guildId)
48
+ return mode === 'cache' ? (this.client.cache.adapter.isAsync ? Promise.resolve() : undefined) : Promise.resolve();
49
+ switch (mode) {
50
+ case 'cache':
51
+ return this.client.cache.members?.get(this.client.botId, this.guildId);
52
+ default:
53
+ return this.client.members.fetch(this.guildId, this.client.botId, mode === 'rest');
54
+ }
55
+ }
56
+ guild(mode = 'cache') {
57
+ if (!this.guildId)
58
+ return (mode === 'cache' ? (this.client.cache.adapter.isAsync ? Promise.resolve() : undefined) : Promise.resolve());
59
+ switch (mode) {
60
+ case 'cache':
61
+ return this.client.cache.guilds?.get(this.guildId);
62
+ default:
63
+ return this.client.guilds.fetch(this.guildId, mode === 'rest');
64
+ }
65
+ }
66
+ get guildId() {
67
+ return this.interaction.guildId;
68
+ }
69
+ get channelId() {
70
+ return this.interaction.channelId;
71
+ }
72
+ get author() {
73
+ return this.interaction.user;
74
+ }
75
+ get member() {
76
+ return this.interaction.member;
77
+ }
78
+ }
79
+ exports.ComponentContext = ComponentContext;
@@ -3,7 +3,7 @@ import type { ComponentCallback, ListenerOptions, ModalSubmitCallback } from '..
3
3
  import { LimitedCollection } from '../collection';
4
4
  import type { UsingClient } from '../commands';
5
5
  import { BaseHandler, type Logger, type OnFailCallback } from '../common';
6
- import type { ComponentInteraction, ModalSubmitInteraction } from '../structures';
6
+ import type { ComponentInteraction, ModalSubmitInteraction, StringSelectMenuInteraction } from '../structures';
7
7
  import { ComponentCommand, ModalCommand } from './command';
8
8
  type COMPONENTS = {
9
9
  components: {
@@ -42,8 +42,8 @@ export declare class ComponentHandler extends BaseHandler {
42
42
  protected filter: (path: string) => boolean;
43
43
  constructor(logger: Logger, client: UsingClient);
44
44
  createComponentCollector(messageId: string, options?: ListenerOptions): {
45
- run: (customId: string | RegExp | string[], callback: ComponentCallback) => any;
46
- stop: (reason?: string) => void;
45
+ run<T extends ComponentInteraction | StringSelectMenuInteraction = ComponentInteraction | StringSelectMenuInteraction>(customId: string | string[] | RegExp, callback: ComponentCallback<T>): any;
46
+ stop(reason?: string): any;
47
47
  };
48
48
  onComponent(id: string, interaction: ComponentInteraction): Promise<void>;
49
49
  hasComponent(id: string, customId: string): boolean;
@@ -4,6 +4,7 @@ exports.ComponentHandler = void 0;
4
4
  const collection_1 = require("../collection");
5
5
  const common_1 = require("../common");
6
6
  const command_1 = require("./command");
7
+ const componentcontext_1 = require("./componentcontext");
7
8
  class ComponentHandler extends common_1.BaseHandler {
8
9
  client;
9
10
  onFail = err => this.logger.warn('<Client>.components.onFail', err);
@@ -46,6 +47,7 @@ class ComponentHandler extends common_1.BaseHandler {
46
47
  },
47
48
  });
48
49
  return {
50
+ //@ts-expect-error generic
49
51
  run: this.values.get(messageId).__run,
50
52
  stop: (reason) => {
51
53
  this.deleteValue(messageId);
@@ -171,10 +173,13 @@ class ComponentHandler extends common_1.BaseHandler {
171
173
  async executeComponent(interaction) {
172
174
  for (const i of this.commands) {
173
175
  try {
174
- if (i.type === command_1.InteractionCommandType.COMPONENT &&
175
- i.componentType === interaction.componentType &&
176
- (await i.filter(interaction))) {
177
- await i.run(interaction);
176
+ if (i.type === command_1.InteractionCommandType.COMPONENT && i.cType === interaction.componentType) {
177
+ const context = new componentcontext_1.ComponentContext(this.client, interaction);
178
+ const extended = this.client.options?.context?.(interaction) ?? {};
179
+ Object.assign(context, extended);
180
+ if (!(await i.filter(context)))
181
+ continue;
182
+ await i.run(context);
178
183
  break;
179
184
  }
180
185
  }
@@ -1,5 +1,5 @@
1
- import type { APIMessageActionRowComponent } from '../common';
2
- import { BaseComponent } from '../structures/extra/BaseComponent';
1
+ import { type APIMessageActionRowComponent } from 'discord-api-types/v10';
2
+ import { BaseComponent } from './BaseComponent';
3
3
  import { ButtonComponent, LinkButtonComponent } from './ButtonComponent';
4
4
  import { ChannelSelectMenuComponent } from './ChannelSelectMenuComponent';
5
5
  import { MentionableSelectMenuComponent } from './MentionableSelectMenuComponent';
@@ -15,8 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.componentFactory = void 0;
18
- const common_1 = require("../common");
19
- const BaseComponent_1 = require("../structures/extra/BaseComponent");
18
+ const v10_1 = require("discord-api-types/v10");
19
+ const BaseComponent_1 = require("./BaseComponent");
20
20
  const ButtonComponent_1 = require("./ButtonComponent");
21
21
  const ChannelSelectMenuComponent_1 = require("./ChannelSelectMenuComponent");
22
22
  const MentionableSelectMenuComponent_1 = require("./MentionableSelectMenuComponent");
@@ -32,20 +32,20 @@ __exportStar(require("./command"), exports);
32
32
  */
33
33
  function componentFactory(component) {
34
34
  switch (component.type) {
35
- case common_1.ComponentType.Button:
36
- if (component.style === common_1.ButtonStyle.Link) {
35
+ case v10_1.ComponentType.Button:
36
+ if (component.style === v10_1.ButtonStyle.Link) {
37
37
  return new ButtonComponent_1.LinkButtonComponent(component);
38
38
  }
39
39
  return new ButtonComponent_1.ButtonComponent(component);
40
- case common_1.ComponentType.ChannelSelect:
40
+ case v10_1.ComponentType.ChannelSelect:
41
41
  return new ChannelSelectMenuComponent_1.ChannelSelectMenuComponent(component);
42
- case common_1.ComponentType.RoleSelect:
42
+ case v10_1.ComponentType.RoleSelect:
43
43
  return new RoleSelectMenuComponent_1.RoleSelectMenuComponent(component);
44
- case common_1.ComponentType.StringSelect:
44
+ case v10_1.ComponentType.StringSelect:
45
45
  return new StringSelectMenuComponent_1.StringSelectMenuComponent(component);
46
- case common_1.ComponentType.UserSelect:
46
+ case v10_1.ComponentType.UserSelect:
47
47
  return new UserSelectMenuComponent_1.UserSelectMenuComponent(component);
48
- case common_1.ComponentType.MentionableSelect:
48
+ case v10_1.ComponentType.MentionableSelect:
49
49
  return new MentionableSelectMenuComponent_1.MentionableSelectMenuComponent(component);
50
50
  default:
51
51
  return new BaseComponent_1.BaseComponent(component);
@@ -1,5 +1,6 @@
1
+ import type { GatewayDispatchPayload } from 'discord-api-types/v10';
1
2
  import type { Client, WorkerClient } from '../client';
2
- import { BaseHandler, type GatewayDispatchPayload, type MakeRequired, type OnFailCallback, type SnakeCase } from '../common';
3
+ import { BaseHandler, type MakeRequired, type OnFailCallback, type SnakeCase } from '../common';
3
4
  import type { ClientEvents } from '../events/hooks';
4
5
  import type { ClientEvent, ClientNameEvents } from './event';
5
6
  type EventValue = MakeRequired<ClientEvent, '__filePath'> & {
@@ -1,12 +1,12 @@
1
+ import type { GatewayApplicationCommandPermissionsUpdateDispatchData } from 'discord-api-types/v10';
1
2
  import type { BaseClient } from '../../client/base';
2
- import type { GatewayApplicationCommandPermissionsUpdateDispatchData } from '../../common';
3
3
  export declare const APPLICATION_COMMAND_PERMISSIONS_UPDATE: (_self: BaseClient, data: GatewayApplicationCommandPermissionsUpdateDispatchData) => {
4
4
  id: string;
5
5
  applicationId: string;
6
6
  guildId: string;
7
7
  permissions: {
8
8
  id: string;
9
- type: import("discord-api-types/payloads/v10/_interactions/_applicationCommands/permissions").ApplicationCommandPermissionType;
9
+ type: import("discord-api-types/v10").ApplicationCommandPermissionType;
10
10
  permission: boolean;
11
11
  }[];
12
12
  };
@@ -1,14 +1,14 @@
1
+ import type { GatewayAutoModerationActionExecutionDispatchData, GatewayAutoModerationRuleCreateDispatchData, GatewayAutoModerationRuleDeleteDispatchData, GatewayAutoModerationRuleUpdateDispatchData } from 'discord-api-types/v10';
1
2
  import type { BaseClient } from '../../client/base';
2
- import { type GatewayAutoModerationActionExecutionDispatchData, type GatewayAutoModerationRuleCreateDispatchData, type GatewayAutoModerationRuleDeleteDispatchData, type GatewayAutoModerationRuleUpdateDispatchData } from '../../common';
3
3
  import { AutoModerationRule } from '../../structures';
4
4
  export declare const AUTO_MODERATION_ACTION_EXECUTION: (_self: BaseClient, data: GatewayAutoModerationActionExecutionDispatchData) => {
5
5
  guildId: string;
6
6
  action: {
7
- type: import("discord-api-types/payloads/v10/autoModeration").AutoModerationActionType;
8
- metadata?: import("discord-api-types/payloads/v10/autoModeration").APIAutoModerationActionMetadata | undefined;
7
+ type: import("discord-api-types/v10").AutoModerationActionType;
8
+ metadata?: import("discord-api-types/v10").APIAutoModerationActionMetadata | undefined;
9
9
  };
10
10
  ruleId: string;
11
- ruleTriggerType: import("discord-api-types/payloads/v10/autoModeration").AutoModerationRuleTriggerType;
11
+ ruleTriggerType: import("discord-api-types/v10").AutoModerationRuleTriggerType;
12
12
  userId: string;
13
13
  channelId?: string | undefined;
14
14
  messageId?: string | undefined;
@@ -1,4 +1,4 @@
1
- import { type GatewayChannelCreateDispatchData, type GatewayChannelDeleteDispatchData, type GatewayChannelPinsUpdateDispatchData, type GatewayChannelUpdateDispatchData } from '../../common';
1
+ import type { GatewayChannelCreateDispatchData, GatewayChannelDeleteDispatchData, GatewayChannelPinsUpdateDispatchData, GatewayChannelUpdateDispatchData } from 'discord-api-types/v10';
2
2
  import type { BaseClient } from '../../client/base';
3
3
  import type { AllChannels } from '../../structures';
4
4
  export declare const CHANNEL_CREATE: (self: BaseClient, data: GatewayChannelCreateDispatchData) => AllChannels;
@@ -1,5 +1,5 @@
1
+ import type { GatewayDispatchPayload, GatewayReadyDispatchData, GatewayResumedDispatch } from 'discord-api-types/v10';
1
2
  import type { BaseClient } from '../../client/base';
2
- import type { GatewayDispatchPayload, GatewayReadyDispatchData, GatewayResumedDispatch } from '../../common';
3
3
  import { ClientUser } from '../../structures';
4
4
  export declare const READY: (self: BaseClient, data: GatewayReadyDispatchData) => ClientUser;
5
5
  export declare const RESUMED: (_self: BaseClient, _data: GatewayResumedDispatch['d']) => void;
@@ -1,12 +1,12 @@
1
+ import type { APIEntitlement } from 'discord-api-types/v10';
1
2
  import type { BaseClient } from '../../client/base';
2
- import { type APIEntitlement } from '../../common';
3
3
  export declare const ENTITLEMENT_CREATE: (_: BaseClient, data: APIEntitlement) => {
4
4
  id: string;
5
5
  skuId: string;
6
6
  userId?: string | undefined;
7
7
  guildId?: string | undefined;
8
8
  applicationId: string;
9
- type: import("discord-api-types/payloads/v10/monetization").EntitlementType;
9
+ type: import("discord-api-types/v10").EntitlementType;
10
10
  deleted: boolean;
11
11
  startsAt?: string | undefined;
12
12
  endsAt?: string | undefined;
@@ -17,7 +17,7 @@ export declare const ENTITLEMENT_UPDATE: (_: BaseClient, data: APIEntitlement) =
17
17
  userId?: string | undefined;
18
18
  guildId?: string | undefined;
19
19
  applicationId: string;
20
- type: import("discord-api-types/payloads/v10/monetization").EntitlementType;
20
+ type: import("discord-api-types/v10").EntitlementType;
21
21
  deleted: boolean;
22
22
  startsAt?: string | undefined;
23
23
  endsAt?: string | undefined;
@@ -28,7 +28,7 @@ export declare const ENTITLEMENT_DELETE: (_: BaseClient, data: APIEntitlement) =
28
28
  userId?: string | undefined;
29
29
  guildId?: string | undefined;
30
30
  applicationId: string;
31
- type: import("discord-api-types/payloads/v10/monetization").EntitlementType;
31
+ type: import("discord-api-types/v10").EntitlementType;
32
32
  deleted: boolean;
33
33
  startsAt?: string | undefined;
34
34
  endsAt?: string | undefined;
@@ -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/payloads/v10/auditLog").APIAuditLogChange[] | undefined;
7
+ changes?: import("discord-api-types/v10").APIAuditLogChange[] | undefined;
8
8
  userId: string | null;
9
9
  id: string;
10
- actionType: import("discord-api-types/payloads/v10/auditLog").AuditLogEvent;
11
- options?: import("discord-api-types/payloads/v10/auditLog").APIAuditLogOptions | undefined;
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/payloads/v10/guild").APIUnavailableGuild>;
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/gateway/v10").GatewayGuildMembersChunkPresence[] | undefined;
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/payloads/v10/guildScheduledEvent").GuildScheduledEventPrivacyLevel;
57
- status: import("discord-api-types/payloads/v10/guildScheduledEvent").GuildScheduledEventStatus;
58
- entityType: import("discord-api-types/payloads/v10/guildScheduledEvent").GuildScheduledEventEntityType.StageInstance;
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/payloads/v10/user").APIUser | undefined;
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/payloads/v10/guildScheduledEvent").GuildScheduledEventPrivacyLevel;
74
- status: import("discord-api-types/payloads/v10/guildScheduledEvent").GuildScheduledEventStatus;
75
- entityType: import("discord-api-types/payloads/v10/guildScheduledEvent").GuildScheduledEventEntityType.Voice;
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/payloads/v10/user").APIUser | undefined;
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/payloads/v10/guildScheduledEvent").GuildScheduledEventPrivacyLevel;
93
- status: import("discord-api-types/payloads/v10/guildScheduledEvent").GuildScheduledEventStatus;
94
- entityType: import("discord-api-types/payloads/v10/guildScheduledEvent").GuildScheduledEventEntityType.External;
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/payloads/v10/user").APIUser | undefined;
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/payloads/v10/guildScheduledEvent").GuildScheduledEventPrivacyLevel;
111
- status: import("discord-api-types/payloads/v10/guildScheduledEvent").GuildScheduledEventStatus;
112
- entityType: import("discord-api-types/payloads/v10/guildScheduledEvent").GuildScheduledEventEntityType.StageInstance;
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/payloads/v10/user").APIUser | undefined;
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/payloads/v10/guildScheduledEvent").GuildScheduledEventPrivacyLevel;
128
- status: import("discord-api-types/payloads/v10/guildScheduledEvent").GuildScheduledEventStatus;
129
- entityType: import("discord-api-types/payloads/v10/guildScheduledEvent").GuildScheduledEventEntityType.Voice;
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/payloads/v10/user").APIUser | undefined;
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/payloads/v10/guildScheduledEvent").GuildScheduledEventPrivacyLevel;
147
- status: import("discord-api-types/payloads/v10/guildScheduledEvent").GuildScheduledEventStatus;
148
- entityType: import("discord-api-types/payloads/v10/guildScheduledEvent").GuildScheduledEventEntityType.External;
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/payloads/v10/user").APIUser | undefined;
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/payloads/v10/guildScheduledEvent").GuildScheduledEventPrivacyLevel;
165
- status: import("discord-api-types/payloads/v10/guildScheduledEvent").GuildScheduledEventStatus;
166
- entityType: import("discord-api-types/payloads/v10/guildScheduledEvent").GuildScheduledEventEntityType.StageInstance;
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/payloads/v10/user").APIUser | undefined;
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/payloads/v10/guildScheduledEvent").GuildScheduledEventPrivacyLevel;
182
- status: import("discord-api-types/payloads/v10/guildScheduledEvent").GuildScheduledEventStatus;
183
- entityType: import("discord-api-types/payloads/v10/guildScheduledEvent").GuildScheduledEventEntityType.Voice;
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/payloads/v10/user").APIUser | undefined;
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/payloads/v10/guildScheduledEvent").GuildScheduledEventPrivacyLevel;
201
- status: import("discord-api-types/payloads/v10/guildScheduledEvent").GuildScheduledEventStatus;
202
- entityType: import("discord-api-types/payloads/v10/guildScheduledEvent").GuildScheduledEventEntityType.External;
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/payloads/v10/user").APIUser | undefined;
204
+ creator?: import("discord-api-types/v10").APIUser | undefined;
205
205
  userCount?: number | undefined;
206
206
  image?: string | null | undefined;
207
207
  };