seyfert 1.4.0 → 2.0.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 (433) hide show
  1. package/LICENSE +21 -190
  2. package/README.md +22 -14
  3. package/lib/api/Router.js +5 -3
  4. package/lib/api/Routes/applications.d.ts +23 -1
  5. package/lib/api/Routes/channels.d.ts +1 -1
  6. package/lib/api/Routes/gateway.d.ts +1 -1
  7. package/lib/api/Routes/guilds.d.ts +8 -2
  8. package/lib/api/Routes/interactions.d.ts +1 -1
  9. package/lib/api/Routes/invites.d.ts +1 -1
  10. package/lib/api/Routes/stage-instances.d.ts +1 -1
  11. package/lib/api/Routes/stickers.d.ts +2 -2
  12. package/lib/api/Routes/users.d.ts +1 -1
  13. package/lib/api/Routes/voice.d.ts +1 -1
  14. package/lib/api/Routes/webhooks.d.ts +2 -2
  15. package/lib/api/api.d.ts +2 -2
  16. package/lib/api/api.js +2 -14
  17. package/lib/api/bucket.d.ts +0 -1
  18. package/lib/api/shared.d.ts +0 -1
  19. package/lib/api/utils/constants.d.ts +2 -5
  20. package/lib/api/utils/constants.js +3 -7
  21. package/lib/api/utils/utils.d.ts +1 -2
  22. package/lib/api/utils/utils.js +2 -3
  23. package/lib/builders/ActionRow.d.ts +1 -1
  24. package/lib/builders/ActionRow.js +3 -3
  25. package/lib/builders/Attachment.d.ts +2 -3
  26. package/lib/builders/Attachment.js +12 -13
  27. package/lib/builders/Base.d.ts +2 -2
  28. package/lib/builders/Base.js +1 -1
  29. package/lib/builders/Button.d.ts +7 -7
  30. package/lib/builders/Button.js +11 -9
  31. package/lib/builders/Embed.d.ts +1 -1
  32. package/lib/builders/Modal.d.ts +1 -1
  33. package/lib/builders/Modal.js +2 -2
  34. package/lib/builders/Poll.d.ts +2 -2
  35. package/lib/builders/Poll.js +5 -6
  36. package/lib/builders/SelectMenu.d.ts +1 -1
  37. package/lib/builders/SelectMenu.js +17 -18
  38. package/lib/builders/index.d.ts +1 -1
  39. package/lib/builders/index.js +10 -11
  40. package/lib/cache/adapters/default.d.ts +16 -9
  41. package/lib/cache/adapters/default.js +42 -31
  42. package/lib/cache/adapters/index.d.ts +0 -1
  43. package/lib/cache/adapters/index.js +0 -1
  44. package/lib/cache/adapters/limited.d.ts +17 -12
  45. package/lib/cache/adapters/limited.js +80 -36
  46. package/lib/cache/adapters/types.d.ts +6 -7
  47. package/lib/cache/adapters/workeradapter.d.ts +6 -6
  48. package/lib/cache/adapters/workeradapter.js +13 -0
  49. package/lib/cache/index.d.ts +24 -11
  50. package/lib/cache/index.js +335 -19
  51. package/lib/cache/resources/bans.d.ts +15 -0
  52. package/lib/cache/resources/bans.js +44 -0
  53. package/lib/cache/resources/channels.d.ts +6 -4
  54. package/lib/cache/resources/channels.js +13 -7
  55. package/lib/cache/resources/default/base.d.ts +7 -7
  56. package/lib/cache/resources/default/base.js +2 -2
  57. package/lib/cache/resources/default/guild-based.d.ts +6 -6
  58. package/lib/cache/resources/default/guild-based.js +6 -6
  59. package/lib/cache/resources/default/guild-related.d.ts +7 -7
  60. package/lib/cache/resources/default/guild-related.js +10 -8
  61. package/lib/cache/resources/emojis.d.ts +15 -6
  62. package/lib/cache/resources/emojis.js +13 -4
  63. package/lib/cache/resources/guilds.d.ts +9 -6
  64. package/lib/cache/resources/guilds.js +27 -6
  65. package/lib/cache/resources/members.d.ts +9 -6
  66. package/lib/cache/resources/members.js +24 -8
  67. package/lib/cache/resources/messages.d.ts +11 -7
  68. package/lib/cache/resources/messages.js +25 -11
  69. package/lib/cache/resources/overwrites.d.ts +11 -2
  70. package/lib/cache/resources/overwrites.js +9 -0
  71. package/lib/cache/resources/presence.d.ts +3 -2
  72. package/lib/cache/resources/roles.d.ts +9 -6
  73. package/lib/cache/resources/roles.js +13 -4
  74. package/lib/cache/resources/stage-instances.d.ts +2 -2
  75. package/lib/cache/resources/stickers.d.ts +9 -6
  76. package/lib/cache/resources/stickers.js +13 -4
  77. package/lib/cache/resources/threads.d.ts +9 -6
  78. package/lib/cache/resources/threads.js +13 -4
  79. package/lib/cache/resources/users.d.ts +9 -6
  80. package/lib/cache/resources/users.js +13 -4
  81. package/lib/cache/resources/voice-states.d.ts +11 -8
  82. package/lib/cache/resources/voice-states.js +15 -4
  83. package/lib/client/base.d.ts +32 -20
  84. package/lib/client/base.js +51 -30
  85. package/lib/client/client.d.ts +12 -9
  86. package/lib/client/client.js +43 -49
  87. package/lib/client/collectors.d.ts +36 -0
  88. package/lib/client/collectors.js +110 -0
  89. package/lib/client/httpclient.d.ts +8 -13
  90. package/lib/client/httpclient.js +27 -218
  91. package/lib/client/index.d.ts +1 -0
  92. package/lib/client/index.js +1 -0
  93. package/lib/client/transformers.d.ts +68 -0
  94. package/lib/client/transformers.js +99 -0
  95. package/lib/client/types.d.ts +5 -0
  96. package/lib/client/types.js +2 -0
  97. package/lib/client/workerclient.d.ts +18 -15
  98. package/lib/client/workerclient.js +148 -110
  99. package/lib/collection.d.ts +2 -2
  100. package/lib/collection.js +2 -2
  101. package/lib/commands/applications/chat.d.ts +40 -38
  102. package/lib/commands/applications/chat.js +22 -12
  103. package/lib/commands/applications/chatcontext.d.ts +17 -17
  104. package/lib/commands/applications/chatcontext.js +5 -5
  105. package/lib/commands/applications/menu.d.ts +9 -9
  106. package/lib/commands/applications/menu.js +5 -7
  107. package/lib/commands/applications/menucontext.d.ts +14 -13
  108. package/lib/commands/applications/menucontext.js +9 -9
  109. package/lib/commands/applications/options.d.ts +1 -1
  110. package/lib/commands/applications/options.js +20 -21
  111. package/lib/commands/applications/shared.d.ts +14 -0
  112. package/lib/commands/decorators.d.ts +47 -35
  113. package/lib/commands/decorators.js +19 -27
  114. package/lib/commands/handle.d.ts +64 -0
  115. package/lib/commands/handle.js +685 -0
  116. package/lib/commands/handler.d.ts +27 -18
  117. package/lib/commands/handler.js +296 -160
  118. package/lib/commands/optionresolver.d.ts +13 -13
  119. package/lib/commands/optionresolver.js +23 -28
  120. package/lib/common/bot/watcher.d.ts +4 -33
  121. package/lib/common/bot/watcher.js +0 -109
  122. package/lib/common/index.d.ts +2 -0
  123. package/lib/common/index.js +4 -1
  124. package/lib/common/it/colors.js +48 -49
  125. package/lib/common/it/formatter.d.ts +187 -0
  126. package/lib/common/it/formatter.js +226 -0
  127. package/lib/common/it/logger.d.ts +0 -1
  128. package/lib/common/it/logger.js +8 -8
  129. package/lib/common/it/utils.d.ts +15 -2
  130. package/lib/common/it/utils.js +80 -21
  131. package/lib/common/shorters/application.d.ts +56 -0
  132. package/lib/common/shorters/application.js +81 -0
  133. package/lib/common/shorters/bans.d.ts +42 -0
  134. package/lib/common/shorters/bans.js +78 -0
  135. package/lib/common/shorters/channels.d.ts +7 -6
  136. package/lib/common/shorters/channels.js +19 -15
  137. package/lib/common/shorters/emojis.d.ts +5 -6
  138. package/lib/common/shorters/emojis.js +8 -7
  139. package/lib/common/shorters/guilds.d.ts +18 -16
  140. package/lib/common/shorters/guilds.js +31 -26
  141. package/lib/common/shorters/interaction.d.ts +6 -6
  142. package/lib/common/shorters/interaction.js +12 -9
  143. package/lib/common/shorters/members.d.ts +29 -12
  144. package/lib/common/shorters/members.js +55 -16
  145. package/lib/common/shorters/messages.d.ts +7 -8
  146. package/lib/common/shorters/messages.js +10 -9
  147. package/lib/common/shorters/reactions.d.ts +3 -3
  148. package/lib/common/shorters/reactions.js +11 -11
  149. package/lib/common/shorters/roles.d.ts +9 -7
  150. package/lib/common/shorters/roles.js +26 -7
  151. package/lib/common/shorters/templates.d.ts +7 -8
  152. package/lib/common/shorters/templates.js +7 -7
  153. package/lib/common/shorters/threads.d.ts +6 -7
  154. package/lib/common/shorters/threads.js +6 -9
  155. package/lib/common/shorters/users.d.ts +4 -4
  156. package/lib/common/shorters/users.js +8 -4
  157. package/lib/common/shorters/webhook.d.ts +10 -10
  158. package/lib/common/shorters/webhook.js +12 -11
  159. package/lib/common/types/resolvables.d.ts +2 -2
  160. package/lib/common/types/util.d.ts +3 -1
  161. package/lib/common/types/write.d.ts +1 -1
  162. package/lib/components/ActionRow.d.ts +1 -1
  163. package/lib/components/BaseComponent.d.ts +1 -1
  164. package/lib/components/BaseComponent.js +1 -1
  165. package/lib/components/BaseSelectMenuComponent.d.ts +1 -1
  166. package/lib/components/ButtonComponent.d.ts +17 -7
  167. package/lib/components/ButtonComponent.js +19 -2
  168. package/lib/components/ChannelSelectMenuComponent.d.ts +3 -3
  169. package/lib/components/MentionableSelectMenuComponent.d.ts +2 -2
  170. package/lib/components/RoleSelectMenuComponent.d.ts +2 -2
  171. package/lib/components/StringSelectMenuComponent.d.ts +2 -2
  172. package/lib/components/TextInputComponent.d.ts +2 -2
  173. package/lib/components/UserSelectMenuComponent.d.ts +2 -2
  174. package/lib/components/componentcommand.d.ts +3 -2
  175. package/lib/components/componentcommand.js +4 -3
  176. package/lib/components/componentcontext.d.ts +11 -10
  177. package/lib/components/componentcontext.js +8 -8
  178. package/lib/components/handler.d.ts +16 -15
  179. package/lib/components/handler.js +101 -108
  180. package/lib/components/index.d.ts +3 -3
  181. package/lib/components/index.js +12 -10
  182. package/lib/components/modalcommand.d.ts +2 -1
  183. package/lib/components/modalcommand.js +1 -0
  184. package/lib/components/modalcontext.d.ts +13 -12
  185. package/lib/components/modalcontext.js +2 -2
  186. package/lib/deps/mixer.d.ts +8 -0
  187. package/lib/deps/mixer.js +66 -0
  188. package/lib/events/event.d.ts +4 -3
  189. package/lib/events/handler.d.ts +40 -15
  190. package/lib/events/handler.js +99 -21
  191. package/lib/events/hooks/application_command.d.ts +2 -2
  192. package/lib/events/hooks/auto_moderation.d.ts +6 -7
  193. package/lib/events/hooks/auto_moderation.js +4 -4
  194. package/lib/events/hooks/channel.d.ts +2 -2
  195. package/lib/events/hooks/channel.js +4 -7
  196. package/lib/events/hooks/custom.d.ts +3 -3
  197. package/lib/events/hooks/dispatch.d.ts +3 -4
  198. package/lib/events/hooks/dispatch.js +2 -2
  199. package/lib/events/hooks/entitlement.d.ts +5 -37
  200. package/lib/events/hooks/entitlement.js +7 -7
  201. package/lib/events/hooks/guild.d.ts +126 -181
  202. package/lib/events/hooks/guild.js +13 -15
  203. package/lib/events/hooks/integration.d.ts +71 -15
  204. package/lib/events/hooks/integration.js +3 -3
  205. package/lib/events/hooks/interactions.d.ts +2 -2
  206. package/lib/events/hooks/invite.d.ts +18 -14
  207. package/lib/events/hooks/message.d.ts +72 -52
  208. package/lib/events/hooks/message.js +4 -8
  209. package/lib/events/hooks/presence.d.ts +21 -16
  210. package/lib/events/hooks/stage.d.ts +4 -4
  211. package/lib/events/hooks/thread.d.ts +140 -60
  212. package/lib/events/hooks/thread.js +4 -4
  213. package/lib/events/hooks/typing.d.ts +28 -5
  214. package/lib/events/hooks/typing.js +2 -2
  215. package/lib/events/hooks/user.d.ts +3 -3
  216. package/lib/events/hooks/user.js +2 -2
  217. package/lib/events/hooks/voice.d.ts +28 -3
  218. package/lib/events/hooks/voice.js +8 -4
  219. package/lib/events/hooks/webhook.d.ts +1 -1
  220. package/lib/index.d.ts +6 -15
  221. package/lib/index.js +8 -12
  222. package/lib/langs/handler.d.ts +14 -10
  223. package/lib/langs/handler.js +40 -9
  224. package/lib/structures/AutoModerationRule.d.ts +4 -4
  225. package/lib/structures/AutoModerationRule.js +1 -2
  226. package/lib/structures/ClientUser.d.ts +1 -1
  227. package/lib/structures/Entitlement.d.ts +10 -0
  228. package/lib/structures/Entitlement.js +16 -0
  229. package/lib/structures/Guild.d.ts +37 -30
  230. package/lib/structures/Guild.js +7 -2
  231. package/lib/structures/GuildBan.d.ts +25 -0
  232. package/lib/structures/GuildBan.js +37 -0
  233. package/lib/structures/GuildEmoji.d.ts +4 -4
  234. package/lib/structures/GuildEmoji.js +3 -2
  235. package/lib/structures/GuildMember.d.ts +27 -19
  236. package/lib/structures/GuildMember.js +21 -11
  237. package/lib/structures/GuildPreview.d.ts +1 -1
  238. package/lib/structures/GuildRole.d.ts +5 -3
  239. package/lib/structures/GuildRole.js +8 -1
  240. package/lib/structures/GuildTemplate.d.ts +2 -2
  241. package/lib/structures/GuildTemplate.js +1 -1
  242. package/lib/structures/Interaction.d.ts +56 -38
  243. package/lib/structures/Interaction.js +134 -86
  244. package/lib/structures/Message.d.ts +80 -20
  245. package/lib/structures/Message.js +67 -26
  246. package/lib/structures/Poll.d.ts +4 -3
  247. package/lib/structures/Poll.js +6 -2
  248. package/lib/structures/Sticker.d.ts +10 -10
  249. package/lib/structures/Sticker.js +7 -7
  250. package/lib/structures/User.d.ts +6 -4
  251. package/lib/structures/User.js +6 -2
  252. package/lib/structures/VoiceState.d.ts +15 -11
  253. package/lib/structures/VoiceState.js +35 -17
  254. package/lib/structures/Webhook.d.ts +6 -7
  255. package/lib/structures/Webhook.js +6 -7
  256. package/lib/structures/channels.d.ts +14 -10
  257. package/lib/structures/channels.js +97 -62
  258. package/lib/structures/extra/BaseGuild.d.ts +1 -1
  259. package/lib/structures/extra/BaseGuild.js +3 -3
  260. package/lib/structures/extra/BitField.d.ts +1 -1
  261. package/lib/structures/extra/BitField.js +3 -2
  262. package/lib/structures/extra/DiscordBase.js +2 -2
  263. package/lib/structures/extra/Permissions.d.ts +3 -1
  264. package/lib/structures/extra/Permissions.js +8 -3
  265. package/lib/types/gateway.d.ts +1537 -0
  266. package/lib/types/gateway.js +4 -0
  267. package/lib/types/index.d.ts +9 -1
  268. package/lib/types/index.js +28 -1
  269. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/attachment.d.ts +5 -0
  270. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/attachment.js +2 -0
  271. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/base.d.ts +22 -0
  272. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/base.js +2 -0
  273. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/boolean.d.ts +4 -0
  274. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/boolean.js +2 -0
  275. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/channel.d.ts +7 -0
  276. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/channel.js +2 -0
  277. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/integer.d.ts +17 -0
  278. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/integer.js +2 -0
  279. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/mentionable.d.ts +5 -0
  280. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/mentionable.js +2 -0
  281. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/number.d.ts +17 -0
  282. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/number.js +2 -0
  283. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/role.d.ts +5 -0
  284. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/role.js +2 -0
  285. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/shared.d.ts +25 -0
  286. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/shared.js +20 -0
  287. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/string.d.ts +17 -0
  288. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/string.js +2 -0
  289. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/subcommand.d.ts +11 -0
  290. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/subcommand.js +2 -0
  291. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/subcommandGroup.d.ts +11 -0
  292. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/subcommandGroup.js +2 -0
  293. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/user.d.ts +5 -0
  294. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/user.js +2 -0
  295. package/lib/types/payloads/_interactions/_applicationCommands/chatInput.d.ts +60 -0
  296. package/lib/types/payloads/_interactions/_applicationCommands/chatInput.js +29 -0
  297. package/lib/types/payloads/_interactions/_applicationCommands/contextMenu.d.ts +65 -0
  298. package/lib/types/payloads/_interactions/_applicationCommands/contextMenu.js +2 -0
  299. package/lib/types/payloads/_interactions/_applicationCommands/internals.d.ts +8 -0
  300. package/lib/types/payloads/_interactions/_applicationCommands/internals.js +2 -0
  301. package/lib/types/payloads/_interactions/_applicationCommands/permissions.d.ts +54 -0
  302. package/lib/types/payloads/_interactions/_applicationCommands/permissions.js +20 -0
  303. package/lib/types/payloads/_interactions/applicationCommands.d.ts +153 -0
  304. package/lib/types/payloads/_interactions/applicationCommands.js +61 -0
  305. package/lib/types/payloads/_interactions/autocomplete.d.ts +10 -0
  306. package/lib/types/payloads/_interactions/autocomplete.js +2 -0
  307. package/lib/types/payloads/_interactions/base.d.ts +197 -0
  308. package/lib/types/payloads/_interactions/base.js +2 -0
  309. package/lib/types/payloads/_interactions/messageComponents.d.ts +41 -0
  310. package/lib/types/payloads/_interactions/messageComponents.js +2 -0
  311. package/lib/types/payloads/_interactions/modalSubmit.d.ts +35 -0
  312. package/lib/types/payloads/_interactions/modalSubmit.js +2 -0
  313. package/lib/types/payloads/_interactions/ping.d.ts +3 -0
  314. package/lib/types/payloads/_interactions/ping.js +2 -0
  315. package/lib/types/payloads/_interactions/responses.d.ts +112 -0
  316. package/lib/types/payloads/_interactions/responses.js +54 -0
  317. package/lib/types/payloads/application.d.ts +292 -0
  318. package/lib/types/payloads/application.js +117 -0
  319. package/lib/types/payloads/auditLog.d.ts +644 -0
  320. package/lib/types/payloads/auditLog.js +80 -0
  321. package/lib/types/payloads/autoModeration.d.ts +219 -0
  322. package/lib/types/payloads/autoModeration.js +87 -0
  323. package/lib/types/payloads/channel.d.ts +1708 -0
  324. package/lib/types/payloads/channel.js +372 -0
  325. package/lib/types/payloads/emoji.d.ts +48 -0
  326. package/lib/types/payloads/emoji.js +5 -0
  327. package/lib/types/payloads/gateway.d.ts +373 -0
  328. package/lib/types/payloads/gateway.js +82 -0
  329. package/lib/types/payloads/guild.d.ts +1060 -0
  330. package/lib/types/payloads/guild.js +324 -0
  331. package/lib/types/payloads/guildScheduledEvent.d.ts +138 -0
  332. package/lib/types/payloads/guildScheduledEvent.js +32 -0
  333. package/lib/types/payloads/index.d.ts +64 -0
  334. package/lib/types/payloads/index.js +37 -0
  335. package/lib/types/payloads/interactions.d.ts +24 -0
  336. package/lib/types/payloads/interactions.js +23 -0
  337. package/lib/types/payloads/invite.d.ts +121 -0
  338. package/lib/types/payloads/invite.js +23 -0
  339. package/lib/types/payloads/monetization.d.ts +150 -0
  340. package/lib/types/payloads/monetization.js +79 -0
  341. package/lib/types/payloads/oauth2.d.ts +131 -0
  342. package/lib/types/payloads/oauth2.js +135 -0
  343. package/lib/types/payloads/permissions.d.ts +97 -0
  344. package/lib/types/payloads/permissions.js +16 -0
  345. package/lib/types/payloads/poll.d.ts +104 -0
  346. package/lib/types/payloads/poll.js +16 -0
  347. package/lib/types/payloads/stageInstance.d.ts +77 -0
  348. package/lib/types/payloads/stageInstance.js +19 -0
  349. package/lib/types/payloads/sticker.d.ts +123 -0
  350. package/lib/types/payloads/sticker.js +30 -0
  351. package/lib/types/payloads/teams.d.ts +78 -0
  352. package/lib/types/payloads/teams.js +23 -0
  353. package/lib/types/payloads/template.d.ts +62 -0
  354. package/lib/types/payloads/template.js +5 -0
  355. package/lib/types/payloads/user.d.ts +337 -0
  356. package/lib/types/payloads/user.js +167 -0
  357. package/lib/types/payloads/voice.d.ts +89 -0
  358. package/lib/types/payloads/voice.js +5 -0
  359. package/lib/types/payloads/webhook.d.ts +76 -0
  360. package/lib/types/payloads/webhook.js +21 -0
  361. package/lib/types/rest/application.d.ts +57 -0
  362. package/lib/types/rest/application.js +2 -0
  363. package/lib/types/rest/auditLog.d.ts +30 -0
  364. package/lib/types/rest/auditLog.js +2 -0
  365. package/lib/types/rest/autoModeration.d.ts +66 -0
  366. package/lib/types/rest/autoModeration.js +2 -0
  367. package/lib/types/rest/channel.d.ts +712 -0
  368. package/lib/types/rest/channel.js +11 -0
  369. package/lib/types/rest/emoji.d.ts +54 -0
  370. package/lib/types/rest/emoji.js +2 -0
  371. package/lib/types/rest/gateway.d.ts +9 -0
  372. package/lib/types/rest/gateway.js +2 -0
  373. package/lib/types/rest/guild.d.ts +865 -0
  374. package/lib/types/rest/guild.js +2 -0
  375. package/lib/types/rest/guildScheduledEvent.d.ts +126 -0
  376. package/lib/types/rest/guildScheduledEvent.js +2 -0
  377. package/lib/types/rest/index.d.ts +296 -0
  378. package/lib/types/rest/index.js +292 -0
  379. package/lib/types/rest/interactions.d.ts +194 -0
  380. package/lib/types/rest/interactions.js +2 -0
  381. package/lib/types/rest/invite.d.ts +24 -0
  382. package/lib/types/rest/invite.js +2 -0
  383. package/lib/types/rest/monetization.d.ts +82 -0
  384. package/lib/types/rest/monetization.js +11 -0
  385. package/lib/types/rest/oauth2.d.ts +172 -0
  386. package/lib/types/rest/oauth2.js +2 -0
  387. package/lib/types/rest/poll.d.ts +44 -0
  388. package/lib/types/rest/poll.js +2 -0
  389. package/lib/types/rest/stageInstance.d.ts +58 -0
  390. package/lib/types/rest/stageInstance.js +2 -0
  391. package/lib/types/rest/sticker.d.ts +77 -0
  392. package/lib/types/rest/sticker.js +2 -0
  393. package/lib/types/rest/template.d.ts +62 -0
  394. package/lib/types/rest/template.js +2 -0
  395. package/lib/types/rest/user.d.ts +120 -0
  396. package/lib/types/rest/user.js +2 -0
  397. package/lib/types/rest/voice.d.ts +17 -0
  398. package/lib/types/rest/voice.js +2 -0
  399. package/lib/types/rest/webhook.d.ts +250 -0
  400. package/lib/types/rest/webhook.js +2 -0
  401. package/lib/types/utils/index.d.ts +797 -0
  402. package/lib/types/utils/index.js +799 -0
  403. package/lib/websocket/SharedTypes.d.ts +4 -3
  404. package/lib/websocket/SharedTypes.js +1 -1
  405. package/lib/websocket/constants/index.d.ts +0 -1
  406. package/lib/websocket/discord/basesocket.d.ts +7 -6
  407. package/lib/websocket/discord/basesocket.js +35 -6
  408. package/lib/websocket/discord/events/memberUpdate.d.ts +1 -6
  409. package/lib/websocket/discord/events/memberUpdate.js +2 -1
  410. package/lib/websocket/discord/events/presenceUpdate.d.ts +5 -18
  411. package/lib/websocket/discord/events/presenceUpdate.js +5 -6
  412. package/lib/websocket/discord/shard.d.ts +9 -8
  413. package/lib/websocket/discord/shard.js +65 -47
  414. package/lib/websocket/discord/sharder.d.ts +6 -5
  415. package/lib/websocket/discord/sharder.js +11 -10
  416. package/lib/websocket/discord/shared.d.ts +13 -5
  417. package/lib/websocket/discord/socket/custom.d.ts +52 -0
  418. package/lib/websocket/discord/socket/custom.js +283 -0
  419. package/lib/websocket/discord/worker.d.ts +5 -10
  420. package/lib/websocket/discord/workermanager.d.ts +8 -15
  421. package/lib/websocket/discord/workermanager.js +35 -39
  422. package/lib/websocket/structures/index.d.ts +0 -1
  423. package/lib/websocket/structures/index.js +1 -1
  424. package/lib/websocket/structures/timeout.d.ts +0 -1
  425. package/package.json +65 -74
  426. package/lib/cache/adapters/redis.d.ts +0 -37
  427. package/lib/cache/adapters/redis.js +0 -218
  428. package/lib/client/oninteractioncreate.d.ts +0 -4
  429. package/lib/client/oninteractioncreate.js +0 -198
  430. package/lib/client/onmessagecreate.d.ts +0 -3
  431. package/lib/client/onmessagecreate.js +0 -395
  432. package/lib/structures/extra/functions.d.ts +0 -12
  433. package/lib/structures/extra/functions.js +0 -70
@@ -1,6 +1,6 @@
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';
2
- import { Guild, GuildEmoji, GuildMember, GuildRole, Sticker, UnavailableMember, User, type GatewayGuildMemberAddDispatchDataFixed } from '../../structures';
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';
3
2
  import type { UsingClient } from '../../commands';
3
+ import { type GuildMemberStructure, type GuildRoleStructure, type GuildStructure } from '../../client/transformers';
4
4
  export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: GatewayGuildAuditLogEntryCreateDispatchData) => {
5
5
  guildId: string;
6
6
  targetId: string | null;
@@ -9,93 +9,25 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
9
9
  newValue?: {
10
10
  id: string;
11
11
  name: string;
12
- color: number;
13
- hoist: boolean;
14
- icon?: string | null | undefined;
15
- unicodeEmoji?: string | null | undefined;
16
- position: number;
17
- permissions: string;
18
- managed: boolean;
19
- mentionable: boolean;
20
- tags?: {
21
- botId?: string | undefined;
22
- premiumSubscriber?: null | undefined;
23
- integrationId?: string | undefined;
24
- subscriptionListingId?: string | undefined;
25
- availableForPurchase?: null | undefined;
26
- guildConnections?: null | undefined;
27
- } | undefined;
28
- flags: import("discord-api-types/v10").RoleFlags;
29
12
  }[] | undefined;
30
13
  oldValue?: {
31
14
  id: string;
32
15
  name: string;
33
- color: number;
34
- hoist: boolean;
35
- icon?: string | null | undefined;
36
- unicodeEmoji?: string | null | undefined;
37
- position: number;
38
- permissions: string;
39
- managed: boolean;
40
- mentionable: boolean;
41
- tags?: {
42
- botId?: string | undefined;
43
- premiumSubscriber?: null | undefined;
44
- integrationId?: string | undefined;
45
- subscriptionListingId?: string | undefined;
46
- availableForPurchase?: null | undefined;
47
- guildConnections?: null | undefined;
48
- } | undefined;
49
- flags: import("discord-api-types/v10").RoleFlags;
50
16
  }[] | undefined;
51
17
  } | {
52
18
  key: "$remove";
53
19
  newValue?: {
54
20
  id: string;
55
21
  name: string;
56
- color: number;
57
- hoist: boolean;
58
- icon?: string | null | undefined;
59
- unicodeEmoji?: string | null | undefined;
60
- position: number;
61
- permissions: string;
62
- managed: boolean;
63
- mentionable: boolean;
64
- tags?: {
65
- botId?: string | undefined;
66
- premiumSubscriber?: null | undefined;
67
- integrationId?: string | undefined;
68
- subscriptionListingId?: string | undefined;
69
- availableForPurchase?: null | undefined;
70
- guildConnections?: null | undefined;
71
- } | undefined;
72
- flags: import("discord-api-types/v10").RoleFlags;
73
22
  }[] | undefined;
74
23
  oldValue?: {
75
24
  id: string;
76
25
  name: string;
77
- color: number;
78
- hoist: boolean;
79
- icon?: string | null | undefined;
80
- unicodeEmoji?: string | null | undefined;
81
- position: number;
82
- permissions: string;
83
- managed: boolean;
84
- mentionable: boolean;
85
- tags?: {
86
- botId?: string | undefined;
87
- premiumSubscriber?: null | undefined;
88
- integrationId?: string | undefined;
89
- subscriptionListingId?: string | undefined;
90
- availableForPurchase?: null | undefined;
91
- guildConnections?: null | undefined;
92
- } | undefined;
93
- flags: import("discord-api-types/v10").RoleFlags;
94
26
  }[] | undefined;
95
27
  } | {
96
28
  key: "actions";
97
29
  newValue?: {
98
- type: import("discord-api-types/v10").AutoModerationActionType;
30
+ type: import("../../types").AutoModerationActionType;
99
31
  metadata?: {
100
32
  channelId?: string | undefined;
101
33
  durationSeconds?: number | undefined;
@@ -103,7 +35,7 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
103
35
  } | undefined;
104
36
  }[] | undefined;
105
37
  oldValue?: {
106
- type: import("discord-api-types/v10").AutoModerationActionType;
38
+ type: import("../../types").AutoModerationActionType;
107
39
  metadata?: {
108
40
  channelId?: string | undefined;
109
41
  durationSeconds?: number | undefined;
@@ -196,8 +128,8 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
196
128
  oldValue?: number | undefined;
197
129
  } | {
198
130
  key: "default_message_notifications";
199
- newValue?: import("discord-api-types/v10").GuildDefaultMessageNotifications | undefined;
200
- oldValue?: import("discord-api-types/v10").GuildDefaultMessageNotifications | undefined;
131
+ newValue?: import("../../types").GuildDefaultMessageNotifications | undefined;
132
+ oldValue?: import("../../types").GuildDefaultMessageNotifications | undefined;
201
133
  } | {
202
134
  key: "default_reaction_emoji";
203
135
  newValue?: {
@@ -234,12 +166,12 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
234
166
  oldValue?: boolean | undefined;
235
167
  } | {
236
168
  key: "entity_type";
237
- newValue?: import("discord-api-types/v10").GuildScheduledEventEntityType | undefined;
238
- oldValue?: import("discord-api-types/v10").GuildScheduledEventEntityType | undefined;
169
+ newValue?: import("../../types").GuildScheduledEventEntityType | undefined;
170
+ oldValue?: import("../../types").GuildScheduledEventEntityType | undefined;
239
171
  } | {
240
172
  key: "event_type";
241
- newValue?: import("discord-api-types/v10").AutoModerationRuleEventType | undefined;
242
- oldValue?: import("discord-api-types/v10").AutoModerationRuleEventType | undefined;
173
+ newValue?: import("../../types").AutoModerationRuleEventType | undefined;
174
+ oldValue?: import("../../types").AutoModerationRuleEventType | undefined;
243
175
  } | {
244
176
  key: "exempt_channels";
245
177
  newValue?: string[] | undefined;
@@ -250,24 +182,24 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
250
182
  oldValue?: string[] | undefined;
251
183
  } | {
252
184
  key: "expire_behavior";
253
- newValue?: import("discord-api-types/v10").IntegrationExpireBehavior | undefined;
254
- oldValue?: import("discord-api-types/v10").IntegrationExpireBehavior | undefined;
185
+ newValue?: import("../../types").IntegrationExpireBehavior | undefined;
186
+ oldValue?: import("../../types").IntegrationExpireBehavior | undefined;
255
187
  } | {
256
188
  key: "expire_grace_period";
257
189
  newValue?: number | undefined;
258
190
  oldValue?: number | undefined;
259
191
  } | {
260
192
  key: "explicit_content_filter";
261
- newValue?: import("discord-api-types/v10").GuildExplicitContentFilter | undefined;
262
- oldValue?: import("discord-api-types/v10").GuildExplicitContentFilter | undefined;
193
+ newValue?: import("../../types").GuildExplicitContentFilter | undefined;
194
+ oldValue?: import("../../types").GuildExplicitContentFilter | undefined;
263
195
  } | {
264
196
  key: "flags";
265
197
  newValue?: number | undefined;
266
198
  oldValue?: number | undefined;
267
199
  } | {
268
200
  key: "format_type";
269
- newValue?: import("discord-api-types/v10").StickerFormatType | undefined;
270
- oldValue?: import("discord-api-types/v10").StickerFormatType | undefined;
201
+ newValue?: import("../../types").StickerFormatType | undefined;
202
+ oldValue?: import("../../types").StickerFormatType | undefined;
271
203
  } | {
272
204
  key: "guild_id";
273
205
  newValue?: string | undefined;
@@ -314,8 +246,8 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
314
246
  oldValue?: boolean | undefined;
315
247
  } | {
316
248
  key: "mfa_level";
317
- newValue?: import("discord-api-types/v10").GuildMFALevel | undefined;
318
- oldValue?: import("discord-api-types/v10").GuildMFALevel | undefined;
249
+ newValue?: import("../../types").GuildMFALevel | undefined;
250
+ oldValue?: import("../../types").GuildMFALevel | undefined;
319
251
  } | {
320
252
  key: "mute";
321
253
  newValue?: boolean | undefined;
@@ -340,13 +272,13 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
340
272
  key: "permission_overwrites";
341
273
  newValue?: {
342
274
  id: string;
343
- type: import("discord-api-types/v10").OverwriteType;
275
+ type: import("../../types").OverwriteType;
344
276
  allow: string;
345
277
  deny: string;
346
278
  }[] | undefined;
347
279
  oldValue?: {
348
280
  id: string;
349
- type: import("discord-api-types/v10").OverwriteType;
281
+ type: import("../../types").OverwriteType;
350
282
  allow: string;
351
283
  deny: string;
352
284
  }[] | undefined;
@@ -364,8 +296,8 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
364
296
  oldValue?: string | undefined;
365
297
  } | {
366
298
  key: "privacy_level";
367
- newValue?: import("discord-api-types/v10").StageInstancePrivacyLevel | undefined;
368
- oldValue?: import("discord-api-types/v10").StageInstancePrivacyLevel | undefined;
299
+ newValue?: import("../../types").StageInstancePrivacyLevel | undefined;
300
+ oldValue?: import("../../types").StageInstancePrivacyLevel | undefined;
369
301
  } | {
370
302
  key: "prune_delete_days";
371
303
  newValue?: number | undefined;
@@ -392,12 +324,12 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
392
324
  oldValue?: string | undefined;
393
325
  } | {
394
326
  key: "status";
395
- newValue?: import("discord-api-types/v10").GuildScheduledEventStatus | undefined;
396
- oldValue?: import("discord-api-types/v10").GuildScheduledEventStatus | undefined;
327
+ newValue?: import("../../types").GuildScheduledEventStatus | undefined;
328
+ oldValue?: import("../../types").GuildScheduledEventStatus | undefined;
397
329
  } | {
398
330
  key: "system_channel_flags";
399
- newValue?: import("discord-api-types/v10").GuildSystemChannelFlags | undefined;
400
- oldValue?: import("discord-api-types/v10").GuildSystemChannelFlags | undefined;
331
+ newValue?: import("../../types").GuildSystemChannelFlags | undefined;
332
+ oldValue?: import("../../types").GuildSystemChannelFlags | undefined;
401
333
  } | {
402
334
  key: "system_channel_id";
403
335
  newValue?: string | undefined;
@@ -418,7 +350,7 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
418
350
  key: "trigger_metadata";
419
351
  newValue?: {
420
352
  keywordFilter?: string[] | undefined;
421
- presets?: import("discord-api-types/v10").AutoModerationRuleKeywordPresetType[] | undefined;
353
+ presets?: import("../../types").AutoModerationRuleKeywordPresetType[] | undefined;
422
354
  allowList?: string[] | undefined;
423
355
  regexPatterns?: string[] | undefined;
424
356
  mentionTotalLimit?: number | undefined;
@@ -426,7 +358,7 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
426
358
  } | undefined;
427
359
  oldValue?: {
428
360
  keywordFilter?: string[] | undefined;
429
- presets?: import("discord-api-types/v10").AutoModerationRuleKeywordPresetType[] | undefined;
361
+ presets?: import("../../types").AutoModerationRuleKeywordPresetType[] | undefined;
430
362
  allowList?: string[] | undefined;
431
363
  regexPatterns?: string[] | undefined;
432
364
  mentionTotalLimit?: number | undefined;
@@ -434,8 +366,8 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
434
366
  } | undefined;
435
367
  } | {
436
368
  key: "trigger_type";
437
- newValue?: import("discord-api-types/v10").AutoModerationRuleTriggerType | undefined;
438
- oldValue?: import("discord-api-types/v10").AutoModerationRuleTriggerType | undefined;
369
+ newValue?: import("../../types").AutoModerationRuleTriggerType | undefined;
370
+ oldValue?: import("../../types").AutoModerationRuleTriggerType | undefined;
439
371
  } | {
440
372
  key: "type";
441
373
  newValue?: string | number | undefined;
@@ -454,8 +386,8 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
454
386
  oldValue?: string | undefined;
455
387
  } | {
456
388
  key: "verification_level";
457
- newValue?: import("discord-api-types/v10").GuildVerificationLevel | undefined;
458
- oldValue?: import("discord-api-types/v10").GuildVerificationLevel | undefined;
389
+ newValue?: import("../../types").GuildVerificationLevel | undefined;
390
+ oldValue?: import("../../types").GuildVerificationLevel | undefined;
459
391
  } | {
460
392
  key: "widget_channel_id";
461
393
  newValue?: string | undefined;
@@ -467,46 +399,46 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
467
399
  })[] | undefined;
468
400
  userId: string | null;
469
401
  id: string;
470
- actionType: import("discord-api-types/v10").AuditLogEvent;
402
+ actionType: import("../../types").AuditLogEvent;
471
403
  options?: {
472
404
  autoModerationRuleName?: string | undefined;
473
- autoModerationRuleTriggerType?: "1" | "3" | "4" | "5" | undefined;
405
+ autoModerationRuleTriggerType?: "1" | "3" | "4" | "5" | "6" | undefined;
474
406
  deleteMemberDays?: string | undefined;
475
407
  membersRemoved?: string | undefined;
476
408
  channelId?: string | undefined;
477
409
  messageId?: string | undefined;
478
410
  count?: string | undefined;
479
411
  id?: string | undefined;
480
- type?: import("discord-api-types/v10").AuditLogOptionsType | undefined;
412
+ type?: import("../../types").AuditLogOptionsType | undefined;
481
413
  roleName?: string | undefined;
482
- integrationType?: import("discord-api-types/v10").APIGuildIntegrationType | undefined;
414
+ integrationType?: import("../../types").APIGuildIntegrationType | undefined;
483
415
  } | undefined;
484
416
  reason?: string | undefined;
485
417
  };
486
418
  export declare const GUILD_BAN_ADD: (self: UsingClient, data: GatewayGuildBanAddDispatchData) => {
487
- user: User;
419
+ user: import("../..").User;
488
420
  guildId: string;
489
421
  };
490
422
  export declare const GUILD_BAN_REMOVE: (self: UsingClient, data: GatewayGuildBanRemoveDispatchData) => {
491
- user: User;
423
+ user: import("../..").User;
492
424
  guildId: string;
493
425
  };
494
- export declare const GUILD_CREATE: (self: UsingClient, data: GatewayGuildCreateDispatchData) => Guild<"create">;
495
- export declare const GUILD_DELETE: (self: UsingClient, data: GatewayGuildDeleteDispatchData) => Promise<import("discord-api-types/v10").APIUnavailableGuild | Guild<"cached">>;
426
+ export declare const GUILD_CREATE: (self: UsingClient, data: GatewayGuildCreateDispatchData) => import("../..").Guild<"create">;
427
+ export declare const GUILD_DELETE: (self: UsingClient, data: GatewayGuildDeleteDispatchData) => Promise<import("../../types").APIUnavailableGuild | import("../..").Guild<"cached">>;
496
428
  export declare const GUILD_EMOJIS_UPDATE: (self: UsingClient, data: GatewayGuildEmojisUpdateDispatchData) => {
497
- emojis: GuildEmoji[];
429
+ emojis: import("../..").GuildEmoji[];
498
430
  guildId: string;
499
431
  };
500
432
  export declare const GUILD_INTEGRATIONS_UPDATE: (_self: UsingClient, data: GatewayGuildIntegrationsUpdateDispatchData) => {
501
433
  guildId: string;
502
434
  };
503
- export declare const GUILD_MEMBER_ADD: (self: UsingClient, data: GatewayGuildMemberAddDispatchDataFixed<boolean>) => GuildMember | UnavailableMember;
435
+ export declare const GUILD_MEMBER_ADD: (self: UsingClient, data: GatewayGuildMemberAddDispatchData) => import("../..").GuildMember;
504
436
  export declare const GUILD_MEMBER_REMOVE: (self: UsingClient, data: GatewayGuildMemberRemoveDispatchData) => {
505
- user: User;
437
+ user: import("../..").User;
506
438
  guildId: string;
507
439
  };
508
440
  export declare const GUILD_MEMBERS_CHUNK: (self: UsingClient, data: GatewayGuildMembersChunkDispatchData) => {
509
- members: GuildMember[];
441
+ members: import("../..").GuildMember[];
510
442
  guildId: string;
511
443
  chunkIndex: number;
512
444
  chunkCount: number;
@@ -526,16 +458,20 @@ export declare const GUILD_MEMBERS_CHUNK: (self: UsingClient, data: GatewayGuild
526
458
  locale?: string | undefined;
527
459
  verified?: boolean | undefined;
528
460
  email?: string | null | undefined;
529
- flags?: import("discord-api-types/v10").UserFlags | undefined;
530
- premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
531
- publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
461
+ flags?: import("../../types").UserFlags | undefined;
462
+ premiumType?: import("../../types").UserPremiumType | undefined;
463
+ publicFlags?: import("../../types").UserFlags | undefined;
532
464
  avatarDecoration?: string | null | undefined;
465
+ avatarDecorationData?: {
466
+ asset: string;
467
+ skuId: string;
468
+ } | null | undefined;
533
469
  };
534
- status?: import("discord-api-types/v10").PresenceUpdateReceiveStatus | undefined;
470
+ status?: import("../../types").PresenceUpdateReceiveStatus | undefined;
535
471
  activities?: {
536
472
  id: string;
537
473
  name: string;
538
- type: import("discord-api-types/v10").ActivityType;
474
+ type: import("../../types").ActivityType;
539
475
  url?: string | null | undefined;
540
476
  createdAt: number;
541
477
  timestamps?: {
@@ -569,21 +505,21 @@ export declare const GUILD_MEMBERS_CHUNK: (self: UsingClient, data: GatewayGuild
569
505
  spectate?: string | undefined;
570
506
  } | undefined;
571
507
  instance?: boolean | undefined;
572
- flags?: import("discord-api-types/v10").ActivityFlags | undefined;
508
+ flags?: import("../../types").ActivityFlags | undefined;
573
509
  buttons?: string[] | {
574
510
  label: string;
575
511
  url: string;
576
512
  }[] | undefined;
577
513
  }[] | undefined;
578
514
  clientStatus?: {
579
- desktop?: import("discord-api-types/v10").PresenceUpdateReceiveStatus | undefined;
580
- mobile?: import("discord-api-types/v10").PresenceUpdateReceiveStatus | undefined;
581
- web?: import("discord-api-types/v10").PresenceUpdateReceiveStatus | undefined;
515
+ desktop?: import("../../types").PresenceUpdateReceiveStatus | undefined;
516
+ mobile?: import("../../types").PresenceUpdateReceiveStatus | undefined;
517
+ web?: import("../../types").PresenceUpdateReceiveStatus | undefined;
582
518
  } | undefined;
583
519
  }[] | undefined;
584
520
  nonce?: string | undefined;
585
521
  };
586
- export declare const GUILD_MEMBER_UPDATE: (self: UsingClient, data: GatewayGuildMemberUpdateDispatchData) => Promise<[member: GuildMember, old?: GuildMember]>;
522
+ export declare const GUILD_MEMBER_UPDATE: (self: UsingClient, data: GatewayGuildMemberUpdateDispatchData) => Promise<[member: GuildMemberStructure, old?: GuildMemberStructure]>;
587
523
  export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: GatewayGuildScheduledEventCreateDispatchData) => {
588
524
  channelId: string;
589
525
  entityMetadata: undefined;
@@ -594,9 +530,9 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
594
530
  description?: string | null | undefined;
595
531
  scheduledStartTime: string;
596
532
  scheduledEndTime: string | null;
597
- privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
598
- status: import("discord-api-types/v10").GuildScheduledEventStatus;
599
- entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.StageInstance;
533
+ privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
534
+ status: import("../../types").GuildScheduledEventStatus;
535
+ entityType: import("../../types").GuildScheduledEventEntityType.StageInstance;
600
536
  entityId: string | null;
601
537
  creator?: {
602
538
  id: string;
@@ -612,10 +548,11 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
612
548
  locale?: string | undefined;
613
549
  verified?: boolean | undefined;
614
550
  email?: string | null | undefined;
615
- flags?: import("discord-api-types/v10").UserFlags | undefined;
616
- premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
617
- publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
551
+ flags?: import("../../types").UserFlags | undefined;
552
+ premiumType?: import("../../types").UserPremiumType | undefined;
553
+ publicFlags?: import("../../types").UserFlags | undefined;
618
554
  avatarDecoration?: string | null | undefined;
555
+ avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
619
556
  } | undefined;
620
557
  userCount?: number | undefined;
621
558
  image?: string | null | undefined;
@@ -629,9 +566,9 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
629
566
  description?: string | null | undefined;
630
567
  scheduledStartTime: string;
631
568
  scheduledEndTime: string | null;
632
- privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
633
- status: import("discord-api-types/v10").GuildScheduledEventStatus;
634
- entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.Voice;
569
+ privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
570
+ status: import("../../types").GuildScheduledEventStatus;
571
+ entityType: import("../../types").GuildScheduledEventEntityType.Voice;
635
572
  entityId: string | null;
636
573
  creator?: {
637
574
  id: string;
@@ -647,10 +584,11 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
647
584
  locale?: string | undefined;
648
585
  verified?: boolean | undefined;
649
586
  email?: string | null | undefined;
650
- flags?: import("discord-api-types/v10").UserFlags | undefined;
651
- premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
652
- publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
587
+ flags?: import("../../types").UserFlags | undefined;
588
+ premiumType?: import("../../types").UserPremiumType | undefined;
589
+ publicFlags?: import("../../types").UserFlags | undefined;
653
590
  avatarDecoration?: string | null | undefined;
591
+ avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
654
592
  } | undefined;
655
593
  userCount?: number | undefined;
656
594
  image?: string | null | undefined;
@@ -666,9 +604,9 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
666
604
  description?: string | null | undefined;
667
605
  scheduledStartTime: string;
668
606
  scheduledEndTime: string | null;
669
- privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
670
- status: import("discord-api-types/v10").GuildScheduledEventStatus;
671
- entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.External;
607
+ privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
608
+ status: import("../../types").GuildScheduledEventStatus;
609
+ entityType: import("../../types").GuildScheduledEventEntityType.External;
672
610
  entityId: string | null;
673
611
  creator?: {
674
612
  id: string;
@@ -684,10 +622,11 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
684
622
  locale?: string | undefined;
685
623
  verified?: boolean | undefined;
686
624
  email?: string | null | undefined;
687
- flags?: import("discord-api-types/v10").UserFlags | undefined;
688
- premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
689
- publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
625
+ flags?: import("../../types").UserFlags | undefined;
626
+ premiumType?: import("../../types").UserPremiumType | undefined;
627
+ publicFlags?: import("../../types").UserFlags | undefined;
690
628
  avatarDecoration?: string | null | undefined;
629
+ avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
691
630
  } | undefined;
692
631
  userCount?: number | undefined;
693
632
  image?: string | null | undefined;
@@ -702,9 +641,9 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
702
641
  description?: string | null | undefined;
703
642
  scheduledStartTime: string;
704
643
  scheduledEndTime: string | null;
705
- privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
706
- status: import("discord-api-types/v10").GuildScheduledEventStatus;
707
- entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.StageInstance;
644
+ privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
645
+ status: import("../../types").GuildScheduledEventStatus;
646
+ entityType: import("../../types").GuildScheduledEventEntityType.StageInstance;
708
647
  entityId: string | null;
709
648
  creator?: {
710
649
  id: string;
@@ -720,10 +659,11 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
720
659
  locale?: string | undefined;
721
660
  verified?: boolean | undefined;
722
661
  email?: string | null | undefined;
723
- flags?: import("discord-api-types/v10").UserFlags | undefined;
724
- premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
725
- publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
662
+ flags?: import("../../types").UserFlags | undefined;
663
+ premiumType?: import("../../types").UserPremiumType | undefined;
664
+ publicFlags?: import("../../types").UserFlags | undefined;
726
665
  avatarDecoration?: string | null | undefined;
666
+ avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
727
667
  } | undefined;
728
668
  userCount?: number | undefined;
729
669
  image?: string | null | undefined;
@@ -737,9 +677,9 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
737
677
  description?: string | null | undefined;
738
678
  scheduledStartTime: string;
739
679
  scheduledEndTime: string | null;
740
- privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
741
- status: import("discord-api-types/v10").GuildScheduledEventStatus;
742
- entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.Voice;
680
+ privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
681
+ status: import("../../types").GuildScheduledEventStatus;
682
+ entityType: import("../../types").GuildScheduledEventEntityType.Voice;
743
683
  entityId: string | null;
744
684
  creator?: {
745
685
  id: string;
@@ -755,10 +695,11 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
755
695
  locale?: string | undefined;
756
696
  verified?: boolean | undefined;
757
697
  email?: string | null | undefined;
758
- flags?: import("discord-api-types/v10").UserFlags | undefined;
759
- premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
760
- publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
698
+ flags?: import("../../types").UserFlags | undefined;
699
+ premiumType?: import("../../types").UserPremiumType | undefined;
700
+ publicFlags?: import("../../types").UserFlags | undefined;
761
701
  avatarDecoration?: string | null | undefined;
702
+ avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
762
703
  } | undefined;
763
704
  userCount?: number | undefined;
764
705
  image?: string | null | undefined;
@@ -774,9 +715,9 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
774
715
  description?: string | null | undefined;
775
716
  scheduledStartTime: string;
776
717
  scheduledEndTime: string | null;
777
- privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
778
- status: import("discord-api-types/v10").GuildScheduledEventStatus;
779
- entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.External;
718
+ privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
719
+ status: import("../../types").GuildScheduledEventStatus;
720
+ entityType: import("../../types").GuildScheduledEventEntityType.External;
780
721
  entityId: string | null;
781
722
  creator?: {
782
723
  id: string;
@@ -792,10 +733,11 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
792
733
  locale?: string | undefined;
793
734
  verified?: boolean | undefined;
794
735
  email?: string | null | undefined;
795
- flags?: import("discord-api-types/v10").UserFlags | undefined;
796
- premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
797
- publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
736
+ flags?: import("../../types").UserFlags | undefined;
737
+ premiumType?: import("../../types").UserPremiumType | undefined;
738
+ publicFlags?: import("../../types").UserFlags | undefined;
798
739
  avatarDecoration?: string | null | undefined;
740
+ avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
799
741
  } | undefined;
800
742
  userCount?: number | undefined;
801
743
  image?: string | null | undefined;
@@ -810,9 +752,9 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
810
752
  description?: string | null | undefined;
811
753
  scheduledStartTime: string;
812
754
  scheduledEndTime: string | null;
813
- privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
814
- status: import("discord-api-types/v10").GuildScheduledEventStatus;
815
- entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.StageInstance;
755
+ privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
756
+ status: import("../../types").GuildScheduledEventStatus;
757
+ entityType: import("../../types").GuildScheduledEventEntityType.StageInstance;
816
758
  entityId: string | null;
817
759
  creator?: {
818
760
  id: string;
@@ -828,10 +770,11 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
828
770
  locale?: string | undefined;
829
771
  verified?: boolean | undefined;
830
772
  email?: string | null | undefined;
831
- flags?: import("discord-api-types/v10").UserFlags | undefined;
832
- premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
833
- publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
773
+ flags?: import("../../types").UserFlags | undefined;
774
+ premiumType?: import("../../types").UserPremiumType | undefined;
775
+ publicFlags?: import("../../types").UserFlags | undefined;
834
776
  avatarDecoration?: string | null | undefined;
777
+ avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
835
778
  } | undefined;
836
779
  userCount?: number | undefined;
837
780
  image?: string | null | undefined;
@@ -845,9 +788,9 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
845
788
  description?: string | null | undefined;
846
789
  scheduledStartTime: string;
847
790
  scheduledEndTime: string | null;
848
- privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
849
- status: import("discord-api-types/v10").GuildScheduledEventStatus;
850
- entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.Voice;
791
+ privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
792
+ status: import("../../types").GuildScheduledEventStatus;
793
+ entityType: import("../../types").GuildScheduledEventEntityType.Voice;
851
794
  entityId: string | null;
852
795
  creator?: {
853
796
  id: string;
@@ -863,10 +806,11 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
863
806
  locale?: string | undefined;
864
807
  verified?: boolean | undefined;
865
808
  email?: string | null | undefined;
866
- flags?: import("discord-api-types/v10").UserFlags | undefined;
867
- premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
868
- publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
809
+ flags?: import("../../types").UserFlags | undefined;
810
+ premiumType?: import("../../types").UserPremiumType | undefined;
811
+ publicFlags?: import("../../types").UserFlags | undefined;
869
812
  avatarDecoration?: string | null | undefined;
813
+ avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
870
814
  } | undefined;
871
815
  userCount?: number | undefined;
872
816
  image?: string | null | undefined;
@@ -882,9 +826,9 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
882
826
  description?: string | null | undefined;
883
827
  scheduledStartTime: string;
884
828
  scheduledEndTime: string | null;
885
- privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
886
- status: import("discord-api-types/v10").GuildScheduledEventStatus;
887
- entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.External;
829
+ privacyLevel: import("../../types").GuildScheduledEventPrivacyLevel;
830
+ status: import("../../types").GuildScheduledEventStatus;
831
+ entityType: import("../../types").GuildScheduledEventEntityType.External;
888
832
  entityId: string | null;
889
833
  creator?: {
890
834
  id: string;
@@ -900,10 +844,11 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
900
844
  locale?: string | undefined;
901
845
  verified?: boolean | undefined;
902
846
  email?: string | null | undefined;
903
- flags?: import("discord-api-types/v10").UserFlags | undefined;
904
- premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
905
- publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
847
+ flags?: import("../../types").UserFlags | undefined;
848
+ premiumType?: import("../../types").UserPremiumType | undefined;
849
+ publicFlags?: import("../../types").UserFlags | undefined;
906
850
  avatarDecoration?: string | null | undefined;
851
+ avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
907
852
  } | undefined;
908
853
  userCount?: number | undefined;
909
854
  image?: string | null | undefined;
@@ -918,14 +863,14 @@ export declare const GUILD_SCHEDULED_EVENT_USER_REMOVE: (_self: UsingClient, dat
918
863
  userId: string;
919
864
  guildId: string;
920
865
  };
921
- export declare const GUILD_ROLE_CREATE: (self: UsingClient, data: GatewayGuildRoleCreateDispatchData) => GuildRole;
922
- export declare const GUILD_ROLE_DELETE: (self: UsingClient, data: GatewayGuildRoleDeleteDispatchData) => Promise<GuildRole | {
866
+ export declare const GUILD_ROLE_CREATE: (self: UsingClient, data: GatewayGuildRoleCreateDispatchData) => import("../..").GuildRole;
867
+ export declare const GUILD_ROLE_DELETE: (self: UsingClient, data: GatewayGuildRoleDeleteDispatchData) => Promise<import("../..").GuildRole | {
923
868
  guildId: string;
924
869
  roleId: string;
925
870
  }>;
926
- export declare const GUILD_ROLE_UPDATE: (self: UsingClient, data: GatewayGuildRoleUpdateDispatchData) => Promise<[role: GuildRole, old?: GuildRole]>;
871
+ export declare const GUILD_ROLE_UPDATE: (self: UsingClient, data: GatewayGuildRoleUpdateDispatchData) => Promise<[role: GuildRoleStructure, old?: GuildRoleStructure]>;
927
872
  export declare const GUILD_STICKERS_UPDATE: (self: UsingClient, data: GatewayGuildStickersUpdateDispatchData) => {
928
- stickers: Sticker[];
873
+ stickers: import("../..").Sticker[];
929
874
  guildId: string;
930
875
  };
931
- export declare const GUILD_UPDATE: (self: UsingClient, data: GatewayGuildUpdateDispatchData) => Promise<[guild: Guild, old?: Guild<'cached'>]>;
876
+ export declare const GUILD_UPDATE: (self: UsingClient, data: GatewayGuildUpdateDispatchData) => Promise<[guild: GuildStructure, old?: GuildStructure<"cached">]>;