seyfert 2.1.0 → 2.1.1-dev-11316886063.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 (241) hide show
  1. package/lib/api/Router.d.ts +2 -2
  2. package/lib/api/Router.js +2 -1
  3. package/lib/api/Routes/applications.d.ts +29 -30
  4. package/lib/api/Routes/cdn.d.ts +6 -1
  5. package/lib/api/Routes/channels.d.ts +44 -45
  6. package/lib/api/Routes/gateway.d.ts +3 -4
  7. package/lib/api/Routes/guilds.d.ts +81 -80
  8. package/lib/api/Routes/index.d.ts +3 -1
  9. package/lib/api/Routes/interactions.d.ts +6 -6
  10. package/lib/api/Routes/invites.d.ts +3 -4
  11. package/lib/api/Routes/skus.d.ts +4 -5
  12. package/lib/api/Routes/soundboard.d.ts +23 -0
  13. package/lib/api/Routes/soundboard.js +2 -0
  14. package/lib/api/Routes/stage-instances.d.ts +5 -6
  15. package/lib/api/Routes/stickers.d.ts +3 -4
  16. package/lib/api/Routes/users.d.ts +11 -12
  17. package/lib/api/Routes/voice.d.ts +2 -3
  18. package/lib/api/Routes/webhooks.d.ts +16 -15
  19. package/lib/api/api.d.ts +17 -11
  20. package/lib/api/api.js +12 -10
  21. package/lib/api/shared.d.ts +1 -1
  22. package/lib/api/utils/constants.d.ts +2 -0
  23. package/lib/api/utils/constants.js +2 -1
  24. package/lib/builders/ActionRow.d.ts +1 -1
  25. package/lib/builders/Attachment.d.ts +2 -2
  26. package/lib/builders/Attachment.js +1 -1
  27. package/lib/builders/Button.d.ts +1 -1
  28. package/lib/builders/Button.js +1 -1
  29. package/lib/builders/Embed.d.ts +1 -1
  30. package/lib/builders/Embed.js +2 -2
  31. package/lib/builders/Modal.d.ts +1 -1
  32. package/lib/builders/Poll.d.ts +1 -1
  33. package/lib/builders/Poll.js +1 -1
  34. package/lib/builders/SelectMenu.d.ts +1 -1
  35. package/lib/builders/SelectMenu.js +1 -1
  36. package/lib/builders/types.d.ts +2 -1
  37. package/lib/cache/adapters/default.js +5 -3
  38. package/lib/cache/adapters/limited.d.ts +1 -2
  39. package/lib/cache/adapters/limited.js +34 -30
  40. package/lib/cache/adapters/workeradapter.js +3 -1
  41. package/lib/cache/index.d.ts +8 -11
  42. package/lib/cache/index.js +38 -37
  43. package/lib/cache/resources/bans.d.ts +2 -2
  44. package/lib/cache/resources/bans.js +1 -1
  45. package/lib/cache/resources/channels.d.ts +1 -1
  46. package/lib/cache/resources/default/guild-related.d.ts +1 -2
  47. package/lib/cache/resources/emojis.d.ts +2 -2
  48. package/lib/cache/resources/emojis.js +1 -1
  49. package/lib/cache/resources/guilds.d.ts +2 -2
  50. package/lib/cache/resources/guilds.js +7 -11
  51. package/lib/cache/resources/members.d.ts +2 -2
  52. package/lib/cache/resources/members.js +1 -1
  53. package/lib/cache/resources/messages.d.ts +2 -2
  54. package/lib/cache/resources/messages.js +3 -3
  55. package/lib/cache/resources/overwrites.d.ts +1 -1
  56. package/lib/cache/resources/roles.d.ts +2 -2
  57. package/lib/cache/resources/roles.js +1 -1
  58. package/lib/cache/resources/stickers.d.ts +2 -2
  59. package/lib/cache/resources/stickers.js +1 -1
  60. package/lib/cache/resources/users.d.ts +2 -2
  61. package/lib/cache/resources/users.js +1 -1
  62. package/lib/cache/resources/voice-states.d.ts +2 -2
  63. package/lib/cache/resources/voice-states.js +1 -1
  64. package/lib/client/base.d.ts +9 -14
  65. package/lib/client/base.js +43 -44
  66. package/lib/client/client.d.ts +3 -7
  67. package/lib/client/client.js +24 -41
  68. package/lib/client/collectors.js +1 -1
  69. package/lib/client/httpclient.d.ts +1 -1
  70. package/lib/client/transformers.d.ts +37 -34
  71. package/lib/client/transformers.js +66 -63
  72. package/lib/client/workerclient.d.ts +10 -11
  73. package/lib/client/workerclient.js +180 -75
  74. package/lib/collection.d.ts +3 -3
  75. package/lib/commands/applications/chat.d.ts +12 -32
  76. package/lib/commands/applications/chat.js +5 -6
  77. package/lib/commands/applications/chatcontext.d.ts +6 -6
  78. package/lib/commands/applications/chatcontext.js +16 -8
  79. package/lib/commands/applications/entryPoint.d.ts +1 -1
  80. package/lib/commands/applications/entrycontext.d.ts +6 -6
  81. package/lib/commands/applications/entrycontext.js +4 -4
  82. package/lib/commands/applications/menu.d.ts +1 -1
  83. package/lib/commands/applications/menucontext.d.ts +5 -5
  84. package/lib/commands/applications/menucontext.js +6 -6
  85. package/lib/commands/applications/options.d.ts +104 -28
  86. package/lib/commands/applications/options.js +4 -4
  87. package/lib/commands/applications/shared.d.ts +5 -2
  88. package/lib/commands/basecontext.d.ts +1 -1
  89. package/lib/commands/decorators.d.ts +10 -10
  90. package/lib/commands/decorators.js +5 -4
  91. package/lib/commands/handle.d.ts +9 -9
  92. package/lib/commands/handle.js +94 -68
  93. package/lib/commands/handler.d.ts +5 -5
  94. package/lib/commands/handler.js +21 -17
  95. package/lib/commands/optionresolver.d.ts +4 -4
  96. package/lib/commands/optionresolver.js +3 -3
  97. package/lib/common/it/formatter.d.ts +21 -21
  98. package/lib/common/it/formatter.js +40 -41
  99. package/lib/common/it/logger.js +1 -1
  100. package/lib/common/it/utils.d.ts +4 -3
  101. package/lib/common/it/utils.js +52 -27
  102. package/lib/common/shorters/application.d.ts +2 -3
  103. package/lib/common/shorters/application.js +3 -3
  104. package/lib/common/shorters/bans.js +1 -1
  105. package/lib/common/shorters/channels.d.ts +3 -3
  106. package/lib/common/shorters/channels.js +3 -3
  107. package/lib/common/shorters/emojis.js +4 -4
  108. package/lib/common/shorters/guilds.d.ts +3 -3
  109. package/lib/common/shorters/guilds.js +5 -9
  110. package/lib/common/shorters/interaction.d.ts +3 -3
  111. package/lib/common/shorters/interaction.js +6 -5
  112. package/lib/common/shorters/members.d.ts +4 -5
  113. package/lib/common/shorters/members.js +6 -7
  114. package/lib/common/shorters/messages.d.ts +1 -1
  115. package/lib/common/shorters/messages.js +4 -4
  116. package/lib/common/shorters/reactions.d.ts +1 -1
  117. package/lib/common/shorters/reactions.js +1 -1
  118. package/lib/common/shorters/roles.js +1 -1
  119. package/lib/common/shorters/templates.js +2 -2
  120. package/lib/common/shorters/threads.d.ts +1 -1
  121. package/lib/common/shorters/threads.js +17 -11
  122. package/lib/common/shorters/webhook.d.ts +1 -1
  123. package/lib/common/shorters/webhook.js +4 -4
  124. package/lib/common/types/options.d.ts +2 -2
  125. package/lib/common/types/resolvables.d.ts +1 -1
  126. package/lib/common/types/util.d.ts +4 -1
  127. package/lib/common/types/write.d.ts +1 -1
  128. package/lib/components/BaseComponent.js +1 -1
  129. package/lib/components/ButtonComponent.d.ts +1 -1
  130. package/lib/components/componentcommand.d.ts +1 -1
  131. package/lib/components/componentcontext.d.ts +4 -4
  132. package/lib/components/componentcontext.js +1 -1
  133. package/lib/components/handler.d.ts +10 -8
  134. package/lib/components/handler.js +16 -13
  135. package/lib/components/index.js +2 -1
  136. package/lib/components/modalcontext.d.ts +2 -2
  137. package/lib/components/modalcontext.js +1 -1
  138. package/lib/deps/mixer.d.ts +1 -1
  139. package/lib/events/handler.d.ts +5 -5
  140. package/lib/events/handler.js +66 -16
  141. package/lib/events/hooks/application_command.d.ts +1 -1
  142. package/lib/events/hooks/auto_moderation.d.ts +1 -1
  143. package/lib/events/hooks/auto_moderation.js +1 -1
  144. package/lib/events/hooks/channel.d.ts +1 -1
  145. package/lib/events/hooks/dispatch.d.ts +1 -1
  146. package/lib/events/hooks/entitlement.d.ts +4 -5
  147. package/lib/events/hooks/entitlement.js +4 -4
  148. package/lib/events/hooks/guild.d.ts +3 -3
  149. package/lib/events/hooks/guild.js +1 -1
  150. package/lib/events/hooks/index.d.ts +1 -0
  151. package/lib/events/hooks/index.js +1 -0
  152. package/lib/events/hooks/integration.d.ts +1 -1
  153. package/lib/events/hooks/integration.js +1 -1
  154. package/lib/events/hooks/interactions.d.ts +3 -3
  155. package/lib/events/hooks/invite.d.ts +1 -1
  156. package/lib/events/hooks/message.d.ts +3 -3
  157. package/lib/events/hooks/message.js +1 -1
  158. package/lib/events/hooks/presence.d.ts +2 -2
  159. package/lib/events/hooks/soundboard.d.ts +155 -0
  160. package/lib/events/hooks/soundboard.js +28 -0
  161. package/lib/events/hooks/stage.d.ts +2 -2
  162. package/lib/events/hooks/thread.d.ts +2 -2
  163. package/lib/events/hooks/thread.js +2 -2
  164. package/lib/events/hooks/typing.d.ts +1 -1
  165. package/lib/events/hooks/typing.js +1 -1
  166. package/lib/events/hooks/user.d.ts +2 -2
  167. package/lib/events/hooks/voice.d.ts +2 -2
  168. package/lib/events/hooks/voice.js +1 -1
  169. package/lib/events/hooks/webhook.d.ts +1 -1
  170. package/lib/index.d.ts +2 -2
  171. package/lib/index.js +3 -5
  172. package/lib/langs/handler.d.ts +2 -2
  173. package/lib/structures/Guild.d.ts +7 -4
  174. package/lib/structures/Guild.js +1 -1
  175. package/lib/structures/GuildBan.d.ts +1 -1
  176. package/lib/structures/GuildMember.d.ts +7 -5
  177. package/lib/structures/GuildMember.js +5 -3
  178. package/lib/structures/GuildRole.d.ts +1 -1
  179. package/lib/structures/GuildTemplate.d.ts +1 -1
  180. package/lib/structures/Interaction.d.ts +17 -14
  181. package/lib/structures/Interaction.js +28 -21
  182. package/lib/structures/Message.d.ts +4 -7
  183. package/lib/structures/Message.js +5 -5
  184. package/lib/structures/Poll.d.ts +3 -3
  185. package/lib/structures/Sticker.d.ts +2 -2
  186. package/lib/structures/Sticker.js +1 -1
  187. package/lib/structures/VoiceState.d.ts +2 -1
  188. package/lib/structures/VoiceState.js +1 -1
  189. package/lib/structures/Webhook.d.ts +3 -3
  190. package/lib/structures/Webhook.js +1 -1
  191. package/lib/structures/channels.d.ts +4 -4
  192. package/lib/structures/channels.js +6 -5
  193. package/lib/structures/extra/BitField.d.ts +3 -3
  194. package/lib/structures/extra/BitField.js +34 -33
  195. package/lib/structures/extra/DiscordBase.js +1 -1
  196. package/lib/structures/extra/Permissions.d.ts +2 -0
  197. package/lib/structures/extra/Permissions.js +21 -0
  198. package/lib/types/gateway.d.ts +53 -5
  199. package/lib/types/payloads/_interactions/base.d.ts +1 -1
  200. package/lib/types/payloads/channel.d.ts +2 -2
  201. package/lib/types/payloads/guild.d.ts +9 -1
  202. package/lib/types/payloads/guild.js +8 -0
  203. package/lib/types/payloads/index.d.ts +1 -0
  204. package/lib/types/payloads/index.js +1 -0
  205. package/lib/types/payloads/soundboard.d.ts +23 -0
  206. package/lib/types/payloads/soundboard.js +5 -0
  207. package/lib/types/payloads/user.js +0 -1
  208. package/lib/types/rest/application.d.ts +3 -3
  209. package/lib/types/rest/auditLog.d.ts +1 -1
  210. package/lib/types/rest/channel.d.ts +2 -2
  211. package/lib/types/rest/guild.d.ts +2 -2
  212. package/lib/types/rest/guildScheduledEvent.d.ts +1 -1
  213. package/lib/types/rest/index.d.ts +1 -0
  214. package/lib/types/rest/index.js +1 -0
  215. package/lib/types/rest/oauth2.d.ts +1 -1
  216. package/lib/types/rest/poll.d.ts +1 -1
  217. package/lib/types/rest/soundboard.d.ts +64 -0
  218. package/lib/types/rest/soundboard.js +2 -0
  219. package/lib/types/rest/stageInstance.d.ts +1 -1
  220. package/lib/types/rest/template.d.ts +1 -1
  221. package/lib/types/rest/user.d.ts +1 -1
  222. package/lib/types/rest/webhook.d.ts +1 -1
  223. package/lib/types/utils/index.d.ts +11 -2
  224. package/lib/types/utils/index.js +10 -2
  225. package/lib/websocket/SharedTypes.d.ts +11 -2
  226. package/lib/websocket/constants/index.js +0 -10
  227. package/lib/websocket/discord/basesocket.d.ts +1 -1
  228. package/lib/websocket/discord/shard.d.ts +1 -1
  229. package/lib/websocket/discord/shard.js +25 -16
  230. package/lib/websocket/discord/sharder.d.ts +9 -6
  231. package/lib/websocket/discord/sharder.js +91 -74
  232. package/lib/websocket/discord/shared.d.ts +3 -14
  233. package/lib/websocket/discord/socket/custom.js +19 -6
  234. package/lib/websocket/discord/worker.d.ts +8 -2
  235. package/lib/websocket/discord/workermanager.d.ts +42 -17
  236. package/lib/websocket/discord/workermanager.js +144 -37
  237. package/lib/websocket/structures/timeout.d.ts +4 -5
  238. package/lib/websocket/structures/timeout.js +23 -24
  239. package/package.json +72 -70
  240. package/lib/cache/resources/threads.d.ts +0 -14
  241. package/lib/cache/resources/threads.js +0 -32
@@ -26,6 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.EventHandler = void 0;
27
27
  const common_1 = require("../common");
28
28
  const RawEvents = __importStar(require("../events/hooks"));
29
+ const types_1 = require("../types");
29
30
  class EventHandler extends common_1.BaseHandler {
30
31
  client;
31
32
  constructor(client) {
@@ -72,33 +73,82 @@ class EventHandler extends common_1.BaseHandler {
72
73
  }
73
74
  async execute(name, ...args) {
74
75
  switch (name) {
75
- case 'MESSAGE_CREATE':
76
- {
77
- const { d: data } = args[0];
78
- if (args[1].components?.values.has(data.interaction_metadata?.id ?? data.id)) {
79
- args[1].components.values.get(data.interaction_metadata.id ?? data.id).messageId = data.id;
80
- }
81
- }
82
- break;
83
76
  case 'MESSAGE_DELETE':
84
77
  {
78
+ if (!args[1].components?.values.size)
79
+ break;
85
80
  const { d: data } = args[0];
86
- const value = [...(args[1].components?.values ?? [])].find(x => x[1].messageId === data.id);
81
+ const value = args[1].components.values.get(data.id);
87
82
  if (value) {
88
- args[1].components.onMessageDelete(value[0]);
83
+ args[1].components.deleteValue(value.messageId, 'messageDelete');
89
84
  }
90
85
  }
91
86
  break;
92
87
  case 'MESSAGE_DELETE_BULK':
93
88
  {
94
- const { d: data } = args[0];
95
- const values = [...(args[1].components?.values ?? [])];
96
- data.ids.forEach(id => {
97
- const value = values.find(x => x[1].messageId === id);
89
+ if (!args[1].components?.values.size)
90
+ break;
91
+ const { d: payload } = args[0];
92
+ for (const id of payload.ids) {
93
+ const value = args[1].components.values.get(id);
98
94
  if (value) {
99
- args[1].components.onMessageDelete(value[0]);
95
+ args[1].components.deleteValue(value.messageId, 'messageDelete');
100
96
  }
101
- });
97
+ }
98
+ }
99
+ break;
100
+ case 'GUILD_DELETE':
101
+ {
102
+ if (!args[1].components?.values.size)
103
+ break;
104
+ const { d: payload } = args[0];
105
+ // ignore unavailable guilds?
106
+ if (payload.unavailable)
107
+ break;
108
+ for (const [messageId, value] of args[1].components.values) {
109
+ if (value.guildId === payload.id)
110
+ args[1].components.deleteValue(messageId, 'guildDelete');
111
+ }
112
+ }
113
+ break;
114
+ case 'CHANNEL_DELETE':
115
+ {
116
+ if (!args[1].components?.values.size)
117
+ break;
118
+ const { d: payload } = args[0];
119
+ if (payload.type === types_1.ChannelType.DM || payload.type === types_1.ChannelType.GroupDM) {
120
+ for (const value of args[1].components.values) {
121
+ if (payload.id === value[1].channelId)
122
+ args[1].components.deleteValue(value[0], 'channelDelete');
123
+ }
124
+ }
125
+ else {
126
+ if (!payload.guild_id)
127
+ break;
128
+ // this is why we dont recommend to use collectors, use ComponentCommand instead
129
+ const channels = await args[1].cache.channels?.valuesRaw(payload.guild_id);
130
+ const threads = channels
131
+ ?.filter(x => [types_1.ChannelType.PublicThread, types_1.ChannelType.PrivateThread, types_1.ChannelType.AnnouncementThread].includes(x.type) && x.parent_id === payload.id)
132
+ .map(x => x.id);
133
+ for (const value of args[1].components.values) {
134
+ const channelId = value[1].channelId;
135
+ if (payload.id === channelId || threads?.includes(channelId)) {
136
+ args[1].components.deleteValue(value[0], 'channelDelete');
137
+ }
138
+ }
139
+ }
140
+ }
141
+ break;
142
+ case 'THREAD_DELETE':
143
+ {
144
+ if (!args[1].components?.values.size)
145
+ break;
146
+ const { d: payload } = args[0];
147
+ for (const value of args[1].components.values) {
148
+ if (value[1].channelId === payload.id) {
149
+ args[1].components.deleteValue(value[0], 'channelDelete');
150
+ }
151
+ }
102
152
  }
103
153
  break;
104
154
  }
@@ -1,5 +1,5 @@
1
- import type { GatewayApplicationCommandPermissionsUpdateDispatchData } from '../../types';
2
1
  import type { UsingClient } from '../../commands';
2
+ import type { GatewayApplicationCommandPermissionsUpdateDispatchData } from '../../types';
3
3
  export declare const APPLICATION_COMMAND_PERMISSIONS_UPDATE: (_self: UsingClient, data: GatewayApplicationCommandPermissionsUpdateDispatchData) => {
4
4
  id: string;
5
5
  applicationId: string;
@@ -1,5 +1,5 @@
1
- import type { GatewayAutoModerationActionExecutionDispatchData, GatewayAutoModerationRuleCreateDispatchData, GatewayAutoModerationRuleDeleteDispatchData, GatewayAutoModerationRuleUpdateDispatchData } from '../../types';
2
1
  import type { UsingClient } from '../../commands';
2
+ import type { GatewayAutoModerationActionExecutionDispatchData, GatewayAutoModerationRuleCreateDispatchData, GatewayAutoModerationRuleDeleteDispatchData, GatewayAutoModerationRuleUpdateDispatchData } from '../../types';
3
3
  export declare const AUTO_MODERATION_ACTION_EXECUTION: (_self: UsingClient, data: GatewayAutoModerationActionExecutionDispatchData) => {
4
4
  guildId: string;
5
5
  action: {
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AUTO_MODERATION_RULE_UPDATE = exports.AUTO_MODERATION_RULE_DELETE = exports.AUTO_MODERATION_RULE_CREATE = exports.AUTO_MODERATION_ACTION_EXECUTION = void 0;
4
- const common_1 = require("../../common");
5
4
  const transformers_1 = require("../../client/transformers");
5
+ const common_1 = require("../../common");
6
6
  const AUTO_MODERATION_ACTION_EXECUTION = (_self, data) => {
7
7
  return (0, common_1.toCamelCase)(data);
8
8
  };
@@ -1,6 +1,6 @@
1
1
  import type { GatewayChannelCreateDispatchData, GatewayChannelDeleteDispatchData, GatewayChannelPinsUpdateDispatchData, GatewayChannelUpdateDispatchData } from '../../types';
2
- import { type AllChannels } from '../../structures';
3
2
  import type { UsingClient } from '../../commands';
3
+ import { type AllChannels } from '../../structures';
4
4
  export declare const CHANNEL_CREATE: (self: UsingClient, data: GatewayChannelCreateDispatchData) => AllChannels;
5
5
  export declare const CHANNEL_DELETE: (self: UsingClient, data: GatewayChannelDeleteDispatchData) => AllChannels;
6
6
  export declare const CHANNEL_PINS_UPDATE: (_self: UsingClient, data: GatewayChannelPinsUpdateDispatchData) => {
@@ -1,5 +1,5 @@
1
- import type { GatewayDispatchPayload, GatewayReadyDispatchData, GatewayResumedDispatch } from '../../types';
2
1
  import type { UsingClient } from '../../commands';
2
+ import type { GatewayDispatchPayload, GatewayReadyDispatchData, GatewayResumedDispatch } from '../../types';
3
3
  export declare const READY: (self: UsingClient, data: GatewayReadyDispatchData) => import("../..").ClientUser;
4
4
  export declare const RESUMED: (_self: UsingClient, _data: GatewayResumedDispatch["d"]) => void;
5
5
  export declare const RAW: (_self: UsingClient, data: GatewayDispatchPayload) => GatewayDispatchPayload;
@@ -1,6 +1,5 @@
1
- import type { APIEntitlement } from '../../types';
2
1
  import type { UsingClient } from '../../commands';
3
- import { Entitlement } from '../../structures/Entitlement';
4
- export declare const ENTITLEMENT_CREATE: (client: UsingClient, data: APIEntitlement) => Entitlement;
5
- export declare const ENTITLEMENT_UPDATE: (client: UsingClient, data: APIEntitlement) => Entitlement;
6
- export declare const ENTITLEMENT_DELETE: (client: UsingClient, data: APIEntitlement) => Entitlement;
2
+ import type { APIEntitlement } from '../../types';
3
+ export declare const ENTITLEMENT_CREATE: (client: UsingClient, data: APIEntitlement) => import("../../structures/Entitlement").Entitlement;
4
+ export declare const ENTITLEMENT_UPDATE: (client: UsingClient, data: APIEntitlement) => import("../../structures/Entitlement").Entitlement;
5
+ export declare const ENTITLEMENT_DELETE: (client: UsingClient, data: APIEntitlement) => import("../../structures/Entitlement").Entitlement;
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ENTITLEMENT_DELETE = exports.ENTITLEMENT_UPDATE = exports.ENTITLEMENT_CREATE = void 0;
4
- const Entitlement_1 = require("../../structures/Entitlement");
4
+ const client_1 = require("../../client");
5
5
  const ENTITLEMENT_CREATE = (client, data) => {
6
- return new Entitlement_1.Entitlement(client, data);
6
+ return client_1.Transformers.Entitlement(client, data);
7
7
  };
8
8
  exports.ENTITLEMENT_CREATE = ENTITLEMENT_CREATE;
9
9
  const ENTITLEMENT_UPDATE = (client, data) => {
10
- return new Entitlement_1.Entitlement(client, data);
10
+ return client_1.Transformers.Entitlement(client, data);
11
11
  };
12
12
  exports.ENTITLEMENT_UPDATE = ENTITLEMENT_UPDATE;
13
13
  const ENTITLEMENT_DELETE = (client, data) => {
14
- return new Entitlement_1.Entitlement(client, data);
14
+ return client_1.Transformers.Entitlement(client, data);
15
15
  };
16
16
  exports.ENTITLEMENT_DELETE = ENTITLEMENT_DELETE;
@@ -1,6 +1,6 @@
1
- import type { GatewayGuildAuditLogEntryCreateDispatchData, GatewayGuildBanAddDispatchData, GatewayGuildBanRemoveDispatchData, GatewayGuildCreateDispatchData, GatewayGuildDeleteDispatchData, GatewayGuildEmojisUpdateDispatchData, GatewayGuildIntegrationsUpdateDispatchData, GatewayGuildMemberAddDispatchData, GatewayGuildMemberRemoveDispatchData, GatewayGuildMemberUpdateDispatchData, GatewayGuildMembersChunkDispatchData, GatewayGuildRoleCreateDispatchData, GatewayGuildRoleDeleteDispatchData, GatewayGuildRoleUpdateDispatchData, GatewayGuildScheduledEventCreateDispatchData, GatewayGuildScheduledEventDeleteDispatchData, GatewayGuildScheduledEventUpdateDispatchData, GatewayGuildScheduledEventUserAddDispatchData, GatewayGuildScheduledEventUserRemoveDispatchData, GatewayGuildStickersUpdateDispatchData, GatewayGuildUpdateDispatchData } from '../../types';
2
- import type { UsingClient } from '../../commands';
3
1
  import { type GuildMemberStructure, type GuildRoleStructure, type GuildStructure } from '../../client/transformers';
2
+ import type { UsingClient } from '../../commands';
3
+ import type { GatewayGuildAuditLogEntryCreateDispatchData, GatewayGuildBanAddDispatchData, GatewayGuildBanRemoveDispatchData, GatewayGuildCreateDispatchData, GatewayGuildDeleteDispatchData, GatewayGuildEmojisUpdateDispatchData, GatewayGuildIntegrationsUpdateDispatchData, GatewayGuildMemberAddDispatchData, GatewayGuildMemberRemoveDispatchData, GatewayGuildMemberUpdateDispatchData, GatewayGuildMembersChunkDispatchData, GatewayGuildRoleCreateDispatchData, GatewayGuildRoleDeleteDispatchData, GatewayGuildRoleUpdateDispatchData, GatewayGuildScheduledEventCreateDispatchData, GatewayGuildScheduledEventDeleteDispatchData, GatewayGuildScheduledEventUpdateDispatchData, GatewayGuildScheduledEventUserAddDispatchData, GatewayGuildScheduledEventUserRemoveDispatchData, GatewayGuildStickersUpdateDispatchData, GatewayGuildUpdateDispatchData } from '../../types';
4
4
  export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: GatewayGuildAuditLogEntryCreateDispatchData) => {
5
5
  guildId: string;
6
6
  targetId: string | null;
@@ -500,8 +500,8 @@ export declare const GUILD_MEMBERS_CHUNK: (self: UsingClient, data: GatewayGuild
500
500
  smallText?: string | undefined;
501
501
  } | undefined;
502
502
  secrets?: {
503
- match?: string | undefined;
504
503
  join?: string | undefined;
504
+ match?: string | undefined;
505
505
  spectate?: string | undefined;
506
506
  } | undefined;
507
507
  instance?: boolean | undefined;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GUILD_UPDATE = exports.GUILD_STICKERS_UPDATE = exports.GUILD_ROLE_UPDATE = exports.GUILD_ROLE_DELETE = exports.GUILD_ROLE_CREATE = exports.GUILD_SCHEDULED_EVENT_USER_REMOVE = exports.GUILD_SCHEDULED_EVENT_USER_ADD = exports.GUILD_SCHEDULED_EVENT_DELETE = exports.GUILD_SCHEDULED_EVENT_UPDATE = exports.GUILD_SCHEDULED_EVENT_CREATE = exports.GUILD_MEMBER_UPDATE = exports.GUILD_MEMBERS_CHUNK = exports.GUILD_MEMBER_REMOVE = exports.GUILD_MEMBER_ADD = exports.GUILD_INTEGRATIONS_UPDATE = exports.GUILD_EMOJIS_UPDATE = exports.GUILD_DELETE = exports.GUILD_CREATE = exports.GUILD_BAN_REMOVE = exports.GUILD_BAN_ADD = exports.GUILD_AUDIT_LOG_ENTRY_CREATE = void 0;
4
- const common_1 = require("../../common");
5
4
  const transformers_1 = require("../../client/transformers");
5
+ const common_1 = require("../../common");
6
6
  const GUILD_AUDIT_LOG_ENTRY_CREATE = (_self, data) => {
7
7
  return (0, common_1.toCamelCase)(data);
8
8
  };
@@ -16,6 +16,7 @@ export * from './typing';
16
16
  export * from './user';
17
17
  export * from './voice';
18
18
  export * from './webhook';
19
+ export * from './soundboard';
19
20
  import type { CamelCase } from '../../common';
20
21
  import type * as RawEvents from './index';
21
22
  export type ClientEvents = {
@@ -32,3 +32,4 @@ __exportStar(require("./typing"), exports);
32
32
  __exportStar(require("./user"), exports);
33
33
  __exportStar(require("./voice"), exports);
34
34
  __exportStar(require("./webhook"), exports);
35
+ __exportStar(require("./soundboard"), exports);
@@ -1,5 +1,5 @@
1
- import type { GatewayIntegrationCreateDispatchData, GatewayIntegrationDeleteDispatchData, GatewayIntegrationUpdateDispatchData } from '../../types';
2
1
  import type { UsingClient } from '../../commands';
2
+ import type { GatewayIntegrationCreateDispatchData, GatewayIntegrationDeleteDispatchData, GatewayIntegrationUpdateDispatchData } from '../../types';
3
3
  export declare const INTEGRATION_CREATE: (self: UsingClient, data: GatewayIntegrationCreateDispatchData) => {
4
4
  id: string;
5
5
  name: string;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.INTEGRATION_DELETE = exports.INTEGRATION_UPDATE = exports.INTEGRATION_CREATE = void 0;
4
- const common_1 = require("../../common");
5
4
  const transformers_1 = require("../../client/transformers");
5
+ const common_1 = require("../../common");
6
6
  const INTEGRATION_CREATE = (self, data) => {
7
7
  return data.user
8
8
  ? {
@@ -1,4 +1,4 @@
1
- import type { GatewayInteractionCreateDispatchData } from '../../types';
2
- import { BaseInteraction } from '../../structures';
3
1
  import type { UsingClient } from '../../commands';
4
- export declare const INTERACTION_CREATE: (self: UsingClient, data: GatewayInteractionCreateDispatchData) => import("../../structures").RoleSelectMenuInteraction | import("../../structures").UserSelectMenuInteraction | import("../../structures").MentionableSelectMenuInteraction | import("../../structures").ChannelSelectMenuInteraction | import("../../structures").StringSelectMenuInteraction<string[]> | import("../../structures").AutocompleteInteraction<boolean> | import("../../structures").ChatInputCommandInteraction<boolean> | import("../../structures").UserCommandInteraction<boolean> | import("../../structures").MessageCommandInteraction<boolean> | import("../../structures").ButtonInteraction | import("../../structures").ModalSubmitInteraction<boolean> | BaseInteraction<boolean, import("../../types").APIPingInteraction>;
2
+ import { BaseInteraction } from '../../structures';
3
+ import type { GatewayInteractionCreateDispatchData } from '../../types';
4
+ export declare const INTERACTION_CREATE: (self: UsingClient, data: GatewayInteractionCreateDispatchData) => import("../../structures").RoleSelectMenuInteraction | import("../../structures").UserSelectMenuInteraction | import("../../structures").MentionableSelectMenuInteraction | import("../../structures").ChannelSelectMenuInteraction | import("../../structures").StringSelectMenuInteraction<string[]> | import("../../structures").ChatInputCommandInteraction<boolean> | import("../../structures").UserCommandInteraction<boolean> | import("../../structures").MessageCommandInteraction<boolean> | import("../../structures").ButtonInteraction | import("../../structures").ModalSubmitInteraction<boolean> | import("../../structures").AutocompleteInteraction<boolean> | BaseInteraction<boolean, import("../../types").APIPingInteraction>;
@@ -1,5 +1,5 @@
1
- import type { GatewayInviteCreateDispatchData, GatewayInviteDeleteDispatchData } from '../../types';
2
1
  import type { UsingClient } from '../../commands';
2
+ import type { GatewayInviteCreateDispatchData, GatewayInviteDeleteDispatchData } from '../../types';
3
3
  export declare const INVITE_CREATE: (_self: UsingClient, data: GatewayInviteCreateDispatchData) => {
4
4
  channelId: string;
5
5
  code: string;
@@ -1,7 +1,7 @@
1
- import type { GatewayMessageCreateDispatchData, GatewayMessageDeleteBulkDispatchData, GatewayMessageDeleteDispatchData, GatewayMessagePollVoteDispatchData, GatewayMessageReactionAddDispatchData, GatewayMessageReactionRemoveAllDispatchData, GatewayMessageReactionRemoveDispatchData, GatewayMessageReactionRemoveEmojiDispatchData, GatewayMessageUpdateDispatchData } from '../../types';
2
- import { type OmitInsert, type ObjectToLower } from '../../common';
3
- import type { UsingClient } from '../../commands';
4
1
  import { type MessageStructure } from '../../client/transformers';
2
+ import type { UsingClient } from '../../commands';
3
+ import { type ObjectToLower, type OmitInsert } from '../../common';
4
+ import type { GatewayMessageCreateDispatchData, GatewayMessageDeleteBulkDispatchData, GatewayMessageDeleteDispatchData, GatewayMessagePollVoteDispatchData, GatewayMessageReactionAddDispatchData, GatewayMessageReactionRemoveAllDispatchData, GatewayMessageReactionRemoveDispatchData, GatewayMessageReactionRemoveEmojiDispatchData, GatewayMessageUpdateDispatchData } from '../../types';
5
5
  export declare const MESSAGE_CREATE: (self: UsingClient, data: GatewayMessageCreateDispatchData) => import("../..").Message;
6
6
  export declare const MESSAGE_DELETE: (self: UsingClient, data: GatewayMessageDeleteDispatchData) => Promise<MessageStructure | ObjectToLower<GatewayMessageDeleteDispatchData>>;
7
7
  export declare const MESSAGE_DELETE_BULK: (self: UsingClient, data: GatewayMessageDeleteBulkDispatchData) => Promise<{
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MESSAGE_POLL_VOTE_REMOVE = exports.MESSAGE_UPDATE = exports.MESSAGE_REACTION_REMOVE_EMOJI = exports.MESSAGE_REACTION_REMOVE_ALL = exports.MESSAGE_REACTION_REMOVE = exports.MESSAGE_REACTION_ADD = exports.MESSAGE_DELETE_BULK = exports.MESSAGE_DELETE = exports.MESSAGE_CREATE = void 0;
4
- const common_1 = require("../../common");
5
4
  const transformers_1 = require("../../client/transformers");
5
+ const common_1 = require("../../common");
6
6
  const MESSAGE_CREATE = (self, data) => {
7
7
  return transformers_1.Transformers.Message(self, data);
8
8
  };
@@ -1,5 +1,5 @@
1
- import type { GatewayPresenceUpdateDispatchData } from '../../types';
2
1
  import type { UsingClient } from '../../commands';
2
+ import type { GatewayPresenceUpdateDispatchData } from '../../types';
3
3
  export declare const PRESENCE_UPDATE: (self: UsingClient, data: GatewayPresenceUpdateDispatchData) => Promise<readonly [{
4
4
  user: {
5
5
  id: string;
@@ -58,8 +58,8 @@ export declare const PRESENCE_UPDATE: (self: UsingClient, data: GatewayPresenceU
58
58
  smallText?: string | undefined;
59
59
  } | undefined;
60
60
  secrets?: {
61
- match?: string | undefined;
62
61
  join?: string | undefined;
62
+ match?: string | undefined;
63
63
  spectate?: string | undefined;
64
64
  } | undefined;
65
65
  instance?: boolean | undefined;
@@ -0,0 +1,155 @@
1
+ import type { UsingClient } from '../../commands';
2
+ import type { GatewayGuildSoundboardSoundCreateDispatchData, GatewayGuildSoundboardSoundDeleteDispatchData, GatewayGuildSoundboardSoundUpdateDispatchData, GatewayGuildSoundboardSoundsUpdateDispatchData, GatewaySoundboardSoundsDispatchData } from '../../types';
3
+ export declare const GUILD_SOUNDBOARD_SOUND_CREATE: (self: UsingClient, data: GatewayGuildSoundboardSoundCreateDispatchData) => {
4
+ name: string;
5
+ soundId: string;
6
+ volume: number;
7
+ emojiId: string | null;
8
+ emojiName: string | null;
9
+ guildId?: string | undefined;
10
+ available: boolean;
11
+ user?: {
12
+ id: string;
13
+ username: string;
14
+ discriminator: string;
15
+ globalName: string | null;
16
+ avatar: string | null;
17
+ bot?: boolean | undefined;
18
+ system?: boolean | undefined;
19
+ mfaEnabled?: boolean | undefined;
20
+ banner?: string | null | undefined;
21
+ accentColor?: number | null | undefined;
22
+ locale?: string | undefined;
23
+ verified?: boolean | undefined;
24
+ email?: string | null | undefined;
25
+ flags?: import("../../types").UserFlags | undefined;
26
+ premiumType?: import("../../types").UserPremiumType | undefined;
27
+ publicFlags?: import("../../types").UserFlags | undefined;
28
+ avatarDecoration?: string | null | undefined;
29
+ avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
30
+ } | undefined;
31
+ } | {
32
+ user: import("../..").User;
33
+ name: string;
34
+ soundId: string;
35
+ volume: number;
36
+ emojiId: string | null;
37
+ emojiName: string | null;
38
+ guildId?: string | undefined;
39
+ available: boolean;
40
+ };
41
+ export declare const GUILD_SOUNDBOARD_SOUND_UPDATE: (self: UsingClient, data: GatewayGuildSoundboardSoundUpdateDispatchData) => {
42
+ name: string;
43
+ soundId: string;
44
+ volume: number;
45
+ emojiId: string | null;
46
+ emojiName: string | null;
47
+ guildId?: string | undefined;
48
+ available: boolean;
49
+ user?: {
50
+ id: string;
51
+ username: string;
52
+ discriminator: string;
53
+ globalName: string | null;
54
+ avatar: string | null;
55
+ bot?: boolean | undefined;
56
+ system?: boolean | undefined;
57
+ mfaEnabled?: boolean | undefined;
58
+ banner?: string | null | undefined;
59
+ accentColor?: number | null | undefined;
60
+ locale?: string | undefined;
61
+ verified?: boolean | undefined;
62
+ email?: string | null | undefined;
63
+ flags?: import("../../types").UserFlags | undefined;
64
+ premiumType?: import("../../types").UserPremiumType | undefined;
65
+ publicFlags?: import("../../types").UserFlags | undefined;
66
+ avatarDecoration?: string | null | undefined;
67
+ avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
68
+ } | undefined;
69
+ } | {
70
+ user: import("../..").User;
71
+ name: string;
72
+ soundId: string;
73
+ volume: number;
74
+ emojiId: string | null;
75
+ emojiName: string | null;
76
+ guildId?: string | undefined;
77
+ available: boolean;
78
+ };
79
+ export declare const GUILD_SOUNDBOARD_SOUNDS_UPDATE: (self: UsingClient, data: GatewayGuildSoundboardSoundsUpdateDispatchData) => {
80
+ guildId: string;
81
+ sounds: ({
82
+ name: string;
83
+ soundId: string;
84
+ volume: number;
85
+ emojiId: string | null;
86
+ emojiName: string | null;
87
+ guildId?: string | undefined;
88
+ available: boolean;
89
+ user?: {
90
+ id: string;
91
+ username: string;
92
+ discriminator: string;
93
+ globalName: string | null;
94
+ avatar: string | null;
95
+ bot?: boolean | undefined;
96
+ system?: boolean | undefined;
97
+ mfaEnabled?: boolean | undefined;
98
+ banner?: string | null | undefined;
99
+ accentColor?: number | null | undefined;
100
+ locale?: string | undefined;
101
+ verified?: boolean | undefined;
102
+ email?: string | null | undefined;
103
+ flags?: import("../../types").UserFlags | undefined;
104
+ premiumType?: import("../../types").UserPremiumType | undefined;
105
+ publicFlags?: import("../../types").UserFlags | undefined;
106
+ avatarDecoration?: string | null | undefined;
107
+ avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
108
+ } | undefined;
109
+ } | {
110
+ user: import("../..").User;
111
+ name: string;
112
+ soundId: string;
113
+ volume: number;
114
+ emojiId: string | null;
115
+ emojiName: string | null;
116
+ guildId?: string | undefined;
117
+ available: boolean;
118
+ })[];
119
+ };
120
+ export declare const GUILD_SOUNDBOARD_SOUND_DELETE: (_: UsingClient, data: GatewayGuildSoundboardSoundDeleteDispatchData) => {
121
+ soundId: string;
122
+ guildId: string;
123
+ };
124
+ export declare const SOUNDBOARD_SOUNDS: (_: UsingClient, data: GatewaySoundboardSoundsDispatchData) => {
125
+ soundboardSounds: {
126
+ name: string;
127
+ soundId: string;
128
+ volume: number;
129
+ emojiId: string | null;
130
+ emojiName: string | null;
131
+ guildId?: string | undefined;
132
+ available: boolean;
133
+ user?: {
134
+ id: string;
135
+ username: string;
136
+ discriminator: string;
137
+ globalName: string | null;
138
+ avatar: string | null;
139
+ bot?: boolean | undefined;
140
+ system?: boolean | undefined;
141
+ mfaEnabled?: boolean | undefined;
142
+ banner?: string | null | undefined;
143
+ accentColor?: number | null | undefined;
144
+ locale?: string | undefined;
145
+ verified?: boolean | undefined;
146
+ email?: string | null | undefined;
147
+ flags?: import("../../types").UserFlags | undefined;
148
+ premiumType?: import("../../types").UserPremiumType | undefined;
149
+ publicFlags?: import("../../types").UserFlags | undefined;
150
+ avatarDecoration?: string | null | undefined;
151
+ avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
152
+ } | undefined;
153
+ }[];
154
+ guildId: string;
155
+ };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SOUNDBOARD_SOUNDS = exports.GUILD_SOUNDBOARD_SOUND_DELETE = exports.GUILD_SOUNDBOARD_SOUNDS_UPDATE = exports.GUILD_SOUNDBOARD_SOUND_UPDATE = exports.GUILD_SOUNDBOARD_SOUND_CREATE = void 0;
4
+ const client_1 = require("../../client");
5
+ const common_1 = require("../../common");
6
+ const GUILD_SOUNDBOARD_SOUND_CREATE = (self, data) => {
7
+ return data.user ? { ...(0, common_1.toCamelCase)(data), user: client_1.Transformers.User(self, data.user) } : (0, common_1.toCamelCase)(data);
8
+ };
9
+ exports.GUILD_SOUNDBOARD_SOUND_CREATE = GUILD_SOUNDBOARD_SOUND_CREATE;
10
+ const GUILD_SOUNDBOARD_SOUND_UPDATE = (self, data) => {
11
+ return data.user ? { ...(0, common_1.toCamelCase)(data), user: client_1.Transformers.User(self, data.user) } : (0, common_1.toCamelCase)(data);
12
+ };
13
+ exports.GUILD_SOUNDBOARD_SOUND_UPDATE = GUILD_SOUNDBOARD_SOUND_UPDATE;
14
+ const GUILD_SOUNDBOARD_SOUNDS_UPDATE = (self, data) => {
15
+ return {
16
+ guildId: data.guild_id,
17
+ sounds: data.soundboard_sounds.map(d => d.user ? { ...(0, common_1.toCamelCase)(d), user: client_1.Transformers.User(self, d.user) } : (0, common_1.toCamelCase)(d)),
18
+ };
19
+ };
20
+ exports.GUILD_SOUNDBOARD_SOUNDS_UPDATE = GUILD_SOUNDBOARD_SOUNDS_UPDATE;
21
+ const GUILD_SOUNDBOARD_SOUND_DELETE = (_, data) => {
22
+ return (0, common_1.toCamelCase)(data);
23
+ };
24
+ exports.GUILD_SOUNDBOARD_SOUND_DELETE = GUILD_SOUNDBOARD_SOUND_DELETE;
25
+ const SOUNDBOARD_SOUNDS = (_, data) => {
26
+ return (0, common_1.toCamelCase)(data);
27
+ };
28
+ exports.SOUNDBOARD_SOUNDS = SOUNDBOARD_SOUNDS;
@@ -1,7 +1,7 @@
1
- import type { GatewayStageInstanceCreateDispatchData, GatewayStageInstanceDeleteDispatchData, GatewayStageInstanceUpdateDispatchData } from '../../types';
1
+ import type { StageInstances } from '../../cache/resources/stage-instances';
2
2
  import type { UsingClient } from '../../commands';
3
3
  import { type ObjectToLower } from '../../common';
4
- import type { StageInstances } from '../../cache/resources/stage-instances';
4
+ import type { GatewayStageInstanceCreateDispatchData, GatewayStageInstanceDeleteDispatchData, GatewayStageInstanceUpdateDispatchData } from '../../types';
5
5
  export declare const STAGE_INSTANCE_CREATE: (_self: UsingClient, data: GatewayStageInstanceCreateDispatchData) => {
6
6
  id: string;
7
7
  guildId: string;
@@ -1,6 +1,6 @@
1
- import type { GatewayThreadCreateDispatchData, GatewayThreadDeleteDispatchData, GatewayThreadListSyncDispatchData, GatewayThreadMemberUpdateDispatchData, GatewayThreadMembersUpdateDispatchData, GatewayThreadUpdateDispatchData } from '../../types';
2
- import type { UsingClient } from '../../commands';
3
1
  import { type ThreadChannelStructure } from '../../client/transformers';
2
+ import type { UsingClient } from '../../commands';
3
+ import type { GatewayThreadCreateDispatchData, GatewayThreadDeleteDispatchData, GatewayThreadListSyncDispatchData, GatewayThreadMemberUpdateDispatchData, GatewayThreadMembersUpdateDispatchData, GatewayThreadUpdateDispatchData } from '../../types';
4
4
  export declare const THREAD_CREATE: (self: UsingClient, data: GatewayThreadCreateDispatchData) => import("../..").ThreadChannel;
5
5
  export declare const THREAD_DELETE: (self: UsingClient, data: GatewayThreadDeleteDispatchData) => import("../..").ThreadChannel;
6
6
  export declare const THREAD_LIST_SYNC: (_self: UsingClient, data: GatewayThreadListSyncDispatchData) => {
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.THREAD_UPDATE = exports.THREAD_MEMBERS_UPDATE = exports.THREAD_MEMBER_UPDATE = exports.THREAD_LIST_SYNC = exports.THREAD_DELETE = exports.THREAD_CREATE = void 0;
4
- const common_1 = require("../../common");
5
4
  const transformers_1 = require("../../client/transformers");
5
+ const common_1 = require("../../common");
6
6
  const THREAD_CREATE = (self, data) => {
7
7
  return transformers_1.Transformers.ThreadChannel(self, data);
8
8
  };
@@ -24,6 +24,6 @@ const THREAD_MEMBERS_UPDATE = (_self, data) => {
24
24
  };
25
25
  exports.THREAD_MEMBERS_UPDATE = THREAD_MEMBERS_UPDATE;
26
26
  const THREAD_UPDATE = async (self, data) => {
27
- return [transformers_1.Transformers.ThreadChannel(self, data), await self.cache.threads?.get(data.id)];
27
+ return [transformers_1.Transformers.ThreadChannel(self, data), (await self.cache.channels?.get(data.id))];
28
28
  };
29
29
  exports.THREAD_UPDATE = THREAD_UPDATE;
@@ -1,5 +1,5 @@
1
- import type { GatewayTypingStartDispatchData } from '../../types';
2
1
  import type { UsingClient } from '../../commands';
2
+ import type { GatewayTypingStartDispatchData } from '../../types';
3
3
  export declare const TYPING_START: (self: UsingClient, data: GatewayTypingStartDispatchData) => {
4
4
  channelId: string;
5
5
  guildId?: string | undefined;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TYPING_START = void 0;
4
- const common_1 = require("../../common");
5
4
  const transformers_1 = require("../../client/transformers");
5
+ const common_1 = require("../../common");
6
6
  const TYPING_START = (self, data) => {
7
7
  return data.member
8
8
  ? {
@@ -1,4 +1,4 @@
1
- import type { GatewayUserUpdateDispatchData } from '../../types';
2
- import type { UsingClient } from '../../commands';
3
1
  import { type UserStructure } from '../../client/transformers';
2
+ import type { UsingClient } from '../../commands';
3
+ import type { GatewayUserUpdateDispatchData } from '../../types';
4
4
  export declare const USER_UPDATE: (self: UsingClient, data: GatewayUserUpdateDispatchData) => Promise<[user: UserStructure, old?: UserStructure]>;
@@ -1,6 +1,6 @@
1
- import type { GatewayVoiceChannelEffectSendDispachData, GatewayVoiceServerUpdateDispatchData, GatewayVoiceStateUpdateDispatchData } from '../../types';
2
- import type { UsingClient } from '../../commands';
3
1
  import { type VoiceStateStructure } from '../../client/transformers';
2
+ import type { UsingClient } from '../../commands';
3
+ import type { GatewayVoiceChannelEffectSendDispachData, GatewayVoiceServerUpdateDispatchData, GatewayVoiceStateUpdateDispatchData } from '../../types';
4
4
  export declare const VOICE_SERVER_UPDATE: (_self: UsingClient, data: GatewayVoiceServerUpdateDispatchData) => {
5
5
  token: string;
6
6
  guildId: string;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VOICE_CHANNEL_EFFECT_SEND = exports.VOICE_STATE_UPDATE = exports.VOICE_SERVER_UPDATE = void 0;
4
- const common_1 = require("../../common");
5
4
  const transformers_1 = require("../../client/transformers");
5
+ const common_1 = require("../../common");
6
6
  const VOICE_SERVER_UPDATE = (_self, data) => {
7
7
  return (0, common_1.toCamelCase)(data);
8
8
  };
@@ -1,5 +1,5 @@
1
- import type { GatewayWebhooksUpdateDispatchData } from '../../types';
2
1
  import type { UsingClient } from '../../commands';
2
+ import type { GatewayWebhooksUpdateDispatchData } from '../../types';
3
3
  export declare const WEBHOOKS_UPDATE: (_self: UsingClient, data: GatewayWebhooksUpdateDispatchData) => {
4
4
  guildId: string;
5
5
  channelId: string;
package/lib/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
+ export * from './client';
1
2
  import { type BaseClientOptions, type InternalRuntimeConfig, type InternalRuntimeConfigHTTP, type RuntimeConfig, type RuntimeConfigHTTP } from './client/base';
2
- import type { CustomEventsKeys, ClientNameEvents, ResolveEventParams } from './events';
3
+ import type { ClientNameEvents, CustomEventsKeys, ResolveEventParams } from './events';
3
4
  export { Logger, PermissionStrings, Formatter } from './common';
4
5
  export { Collection, LimitedCollection } from './collection';
5
6
  export * from './api';
@@ -11,7 +12,6 @@ export * from './events';
11
12
  export * from './langs';
12
13
  export { ShardManager, WorkerManager } from './websocket/discord';
13
14
  export * from './structures';
14
- export * from './client';
15
15
  /**
16
16
  * Creates an event with the specified data and run function.
17
17
  *