@duque.edits/sdk 1.0.87 → 1.1.2

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 (322) hide show
  1. package/dist/index-BPxglVSk.d.ts +1431 -0
  2. package/dist/index-DjHimKUy.d.mts +1431 -0
  3. package/dist/index.d.mts +23 -0
  4. package/dist/index.d.ts +23 -0
  5. package/dist/index.js +4243 -19
  6. package/dist/index.mjs +4196 -0
  7. package/dist/managers/automaticmessage/AutomaticMessageManager.d.mts +21 -0
  8. package/dist/managers/automaticmessage/AutomaticMessageManager.d.ts +21 -0
  9. package/dist/managers/automaticmessage/AutomaticMessageManager.js +804 -0
  10. package/dist/managers/automaticmessage/AutomaticMessageManager.mjs +796 -0
  11. package/dist/managers/base.d.mts +21 -0
  12. package/dist/managers/base.d.ts +21 -0
  13. package/dist/managers/base.js +127 -15
  14. package/dist/managers/base.mjs +107 -0
  15. package/dist/managers/bet/GuildBetManager.d.mts +21 -0
  16. package/dist/managers/bet/GuildBetManager.d.ts +21 -0
  17. package/dist/managers/bet/GuildBetManager.js +959 -58
  18. package/dist/managers/bet/GuildBetManager.mjs +958 -0
  19. package/dist/managers/betuser/GuildBetUserManager.d.mts +21 -0
  20. package/dist/managers/betuser/GuildBetUserManager.d.ts +21 -0
  21. package/dist/managers/betuser/GuildBetUserManager.js +519 -78
  22. package/dist/managers/betuser/GuildBetUserManager.mjs +502 -0
  23. package/dist/managers/buffer/BufferManager.d.mts +21 -0
  24. package/dist/managers/buffer/BufferManager.d.ts +21 -0
  25. package/dist/managers/buffer/BufferManager.js +247 -37
  26. package/dist/managers/buffer/BufferManager.mjs +223 -0
  27. package/dist/managers/guild/GuildManager.d.mts +21 -0
  28. package/dist/managers/guild/GuildManager.d.ts +21 -0
  29. package/dist/managers/guild/GuildManager.js +3784 -87
  30. package/dist/managers/guild/GuildManager.mjs +3786 -0
  31. package/dist/managers/index.d.mts +21 -0
  32. package/dist/managers/index.d.ts +21 -0
  33. package/dist/managers/index.js +3955 -29
  34. package/dist/managers/index.mjs +3934 -0
  35. package/dist/managers/logs/LogManager.d.mts +21 -0
  36. package/dist/managers/logs/LogManager.d.ts +21 -0
  37. package/dist/managers/logs/LogManager.js +733 -55
  38. package/dist/managers/logs/LogManager.mjs +738 -0
  39. package/dist/managers/match/GuildMatchManager.d.mts +21 -0
  40. package/dist/managers/match/GuildMatchManager.d.ts +21 -0
  41. package/dist/managers/match/GuildMatchManager.js +1301 -95
  42. package/dist/managers/match/GuildMatchManager.mjs +1305 -0
  43. package/dist/managers/mediator/GuildMediatorManager.d.mts +21 -0
  44. package/dist/managers/mediator/GuildMediatorManager.d.ts +21 -0
  45. package/dist/managers/mediator/GuildMediatorManager.js +447 -86
  46. package/dist/managers/mediator/GuildMediatorManager.mjs +430 -0
  47. package/dist/managers/message/MessagesManager.d.mts +21 -0
  48. package/dist/managers/message/MessagesManager.d.ts +21 -0
  49. package/dist/managers/message/MessagesManager.js +158 -55
  50. package/dist/managers/message/MessagesManager.mjs +134 -0
  51. package/dist/managers/minesgame/MinesGameManager.d.mts +21 -0
  52. package/dist/managers/minesgame/MinesGameManager.d.ts +21 -0
  53. package/dist/managers/minesgame/MinesGameManager.js +723 -61
  54. package/dist/managers/minesgame/MinesGameManager.mjs +721 -0
  55. package/dist/managers/permission/GuildPermissionManager.d.mts +21 -0
  56. package/dist/managers/permission/GuildPermissionManager.d.ts +21 -0
  57. package/dist/managers/permission/GuildPermissionManager.js +280 -55
  58. package/dist/managers/permission/GuildPermissionManager.mjs +256 -0
  59. package/dist/managers/player/PlayerManager.d.mts +21 -0
  60. package/dist/managers/player/PlayerManager.d.ts +21 -0
  61. package/dist/managers/player/PlayerManager.js +174 -71
  62. package/dist/managers/player/PlayerManager.mjs +155 -0
  63. package/dist/managers/ticket/TicketManager.d.mts +21 -0
  64. package/dist/managers/ticket/TicketManager.d.ts +21 -0
  65. package/dist/managers/ticket/TicketManager.js +826 -116
  66. package/dist/managers/ticket/TicketManager.mjs +827 -0
  67. package/dist/managers/tournament/TournamentManager.d.mts +21 -0
  68. package/dist/managers/tournament/TournamentManager.d.ts +21 -0
  69. package/dist/managers/tournament/TournamentManager.js +753 -0
  70. package/dist/managers/tournament/TournamentManager.mjs +745 -0
  71. package/dist/managers/user/GuildUserManager.d.mts +21 -0
  72. package/dist/managers/user/GuildUserManager.d.ts +21 -0
  73. package/dist/managers/user/GuildUserManager.js +586 -89
  74. package/dist/managers/user/GuildUserManager.mjs +567 -0
  75. package/dist/managers/vipmember/VipMemberManager.d.mts +21 -0
  76. package/dist/managers/vipmember/VipMemberManager.d.ts +21 -0
  77. package/dist/managers/vipmember/VipMemberManager.js +528 -114
  78. package/dist/managers/vipmember/VipMemberManager.mjs +513 -0
  79. package/dist/rest/APIEndpoints.d.mts +12 -0
  80. package/{types → dist}/rest/APIEndpoints.d.ts +4 -3
  81. package/dist/rest/APIEndpoints.js +40 -10
  82. package/dist/rest/APIEndpoints.mjs +19 -0
  83. package/dist/rest/REST.d.mts +21 -0
  84. package/dist/rest/REST.d.ts +21 -0
  85. package/dist/rest/REST.js +4017 -112
  86. package/dist/rest/REST.mjs +4021 -0
  87. package/dist/rest/Routes.d.mts +104 -0
  88. package/{types → dist}/rest/Routes.d.ts +7 -3
  89. package/dist/rest/Routes.js +124 -98
  90. package/dist/rest/Routes.mjs +104 -0
  91. package/dist/rest/index.d.mts +23 -0
  92. package/dist/rest/index.d.ts +23 -0
  93. package/dist/rest/index.js +4045 -18
  94. package/dist/rest/index.mjs +4036 -0
  95. package/dist/structures/Collection.d.mts +19 -0
  96. package/{types → dist}/structures/Collection.d.ts +3 -1
  97. package/dist/structures/Collection.js +102 -81
  98. package/dist/structures/Collection.mjs +87 -0
  99. package/dist/structures/automaticmessage/AutomaticMessage.d.mts +21 -0
  100. package/dist/structures/automaticmessage/AutomaticMessage.d.ts +21 -0
  101. package/dist/structures/automaticmessage/AutomaticMessage.js +617 -0
  102. package/dist/structures/automaticmessage/AutomaticMessage.mjs +609 -0
  103. package/dist/structures/bet/GuildBet.d.mts +21 -0
  104. package/dist/structures/bet/GuildBet.d.ts +21 -0
  105. package/dist/structures/bet/GuildBet.js +870 -169
  106. package/dist/structures/bet/GuildBet.mjs +881 -0
  107. package/dist/structures/betuser/GuildBetUser.d.mts +21 -0
  108. package/dist/structures/betuser/GuildBetUser.d.ts +21 -0
  109. package/dist/structures/betuser/GuildBetUser.js +333 -201
  110. package/dist/structures/betuser/GuildBetUser.mjs +326 -0
  111. package/dist/structures/guild/Guild.d.mts +21 -0
  112. package/dist/structures/guild/Guild.d.ts +21 -0
  113. package/dist/structures/guild/Guild.js +3676 -452
  114. package/dist/structures/guild/Guild.mjs +3690 -0
  115. package/dist/structures/index.d.mts +21 -0
  116. package/dist/structures/index.d.ts +21 -0
  117. package/dist/structures/index.js +3790 -26
  118. package/dist/structures/index.mjs +3773 -0
  119. package/dist/structures/logentry/LogEntry.d.mts +21 -0
  120. package/dist/structures/logentry/LogEntry.d.ts +21 -0
  121. package/dist/structures/logentry/LogEntry.js +577 -62
  122. package/dist/structures/logentry/LogEntry.mjs +575 -0
  123. package/dist/structures/match/GuildMatch.d.mts +21 -0
  124. package/dist/structures/match/GuildMatch.d.ts +21 -0
  125. package/dist/structures/match/GuildMatch.js +1178 -250
  126. package/dist/structures/match/GuildMatch.mjs +1191 -0
  127. package/dist/structures/mediator/GuildMediator.d.mts +21 -0
  128. package/dist/structures/mediator/GuildMediator.d.ts +21 -0
  129. package/dist/structures/mediator/GuildMediator.js +262 -124
  130. package/dist/structures/mediator/GuildMediator.mjs +246 -0
  131. package/dist/structures/minesgame/MinesGame.d.mts +21 -0
  132. package/dist/structures/minesgame/MinesGame.d.ts +21 -0
  133. package/dist/structures/minesgame/MinesGame.js +583 -68
  134. package/dist/structures/minesgame/MinesGame.mjs +579 -0
  135. package/dist/structures/ticket/Ticket.d.mts +21 -0
  136. package/dist/structures/ticket/Ticket.d.ts +21 -0
  137. package/dist/structures/ticket/Ticket.js +630 -115
  138. package/dist/structures/ticket/Ticket.mjs +626 -0
  139. package/dist/structures/tournament/Tournament.d.mts +21 -0
  140. package/dist/structures/tournament/Tournament.d.ts +21 -0
  141. package/dist/structures/tournament/Tournament.js +593 -0
  142. package/dist/structures/tournament/Tournament.mjs +585 -0
  143. package/dist/structures/user/GuildUser.d.mts +21 -0
  144. package/dist/structures/user/GuildUser.d.ts +21 -0
  145. package/dist/structures/user/GuildUser.js +383 -256
  146. package/dist/structures/user/GuildUser.mjs +382 -0
  147. package/dist/structures/vipmember/VipMember.d.mts +21 -0
  148. package/dist/structures/vipmember/VipMember.d.ts +21 -0
  149. package/dist/structures/vipmember/VipMember.js +261 -123
  150. package/dist/structures/vipmember/VipMember.mjs +250 -0
  151. package/dist/types/RestTypes.d.mts +21 -0
  152. package/dist/types/RestTypes.d.ts +21 -0
  153. package/dist/types/RestTypes.js +17 -1
  154. package/dist/types/RestTypes.mjs +0 -0
  155. package/dist/types/api/APIAdvert.d.mts +13 -0
  156. package/{types → dist}/types/api/APIAdvert.d.ts +3 -1
  157. package/dist/types/api/APIAdvert.js +17 -1
  158. package/dist/types/api/APIAdvert.mjs +0 -0
  159. package/dist/types/api/APIAutomaticMessage.d.mts +21 -0
  160. package/dist/types/api/APIAutomaticMessage.d.ts +21 -0
  161. package/dist/types/api/APIAutomaticMessage.js +18 -0
  162. package/dist/types/api/APIAutomaticMessage.mjs +0 -0
  163. package/dist/types/api/APIBaseChannel.d.mts +12 -0
  164. package/{types → dist}/types/api/APIBaseChannel.d.ts +3 -1
  165. package/dist/types/api/APIBaseChannel.js +17 -1
  166. package/dist/types/api/APIBaseChannel.mjs +0 -0
  167. package/{types/types/api/APIGuildEmoji.d.ts → dist/types/api/APIBetChannel.d.mts} +6 -6
  168. package/{types → dist}/types/api/APIBetChannel.d.ts +3 -1
  169. package/dist/types/api/APIBetChannel.js +17 -1
  170. package/dist/types/api/APIBetChannel.mjs +0 -0
  171. package/dist/types/api/APICode.d.mts +12 -0
  172. package/{types → dist}/types/api/APICode.d.ts +3 -1
  173. package/dist/types/api/APICode.js +17 -1
  174. package/dist/types/api/APICode.mjs +0 -0
  175. package/dist/types/api/APIGiveaway.d.mts +29 -0
  176. package/{types → dist}/types/api/APIGiveaway.d.ts +5 -3
  177. package/dist/types/api/APIGiveaway.js +17 -1
  178. package/dist/types/api/APIGiveaway.mjs +0 -0
  179. package/dist/types/api/APIGuild.d.mts +21 -0
  180. package/dist/types/api/APIGuild.d.ts +21 -0
  181. package/dist/types/api/APIGuild.js +72 -41
  182. package/dist/types/api/APIGuild.mjs +46 -0
  183. package/dist/types/api/APIGuildAdvert.d.mts +10 -0
  184. package/{types → dist}/types/api/APIGuildAdvert.d.ts +3 -1
  185. package/dist/types/api/APIGuildAdvert.js +17 -1
  186. package/dist/types/api/APIGuildAdvert.mjs +0 -0
  187. package/dist/types/api/APIGuildBet.d.mts +21 -0
  188. package/dist/types/api/APIGuildBet.d.ts +21 -0
  189. package/dist/types/api/APIGuildBet.js +32 -6
  190. package/dist/types/api/APIGuildBet.mjs +8 -0
  191. package/dist/types/api/APIGuildBetUser.d.mts +21 -0
  192. package/dist/types/api/APIGuildBetUser.d.ts +21 -0
  193. package/dist/types/api/APIGuildBetUser.js +17 -1
  194. package/dist/types/api/APIGuildBetUser.mjs +0 -0
  195. package/{types/types/api/APIGuildMessage.d.ts → dist/types/api/APIGuildChannel.d.mts} +5 -3
  196. package/{types → dist}/types/api/APIGuildChannel.d.ts +3 -1
  197. package/dist/types/api/APIGuildChannel.js +17 -1
  198. package/dist/types/api/APIGuildChannel.mjs +0 -0
  199. package/dist/types/api/APIGuildGroupedChannel.d.mts +21 -0
  200. package/dist/types/api/APIGuildGroupedChannel.d.ts +21 -0
  201. package/dist/types/api/APIGuildGroupedChannel.js +17 -1
  202. package/dist/types/api/APIGuildGroupedChannel.mjs +0 -0
  203. package/dist/types/api/APIGuildMatch.d.mts +21 -0
  204. package/dist/types/api/APIGuildMatch.d.ts +21 -0
  205. package/dist/types/api/APIGuildMatch.js +39 -11
  206. package/dist/types/api/APIGuildMatch.mjs +14 -0
  207. package/dist/types/api/APIGuildMediator.d.mts +16 -0
  208. package/{types → dist}/types/api/APIGuildMediator.d.ts +3 -1
  209. package/dist/types/api/APIGuildMediator.js +17 -1
  210. package/dist/types/api/APIGuildMediator.mjs +0 -0
  211. package/dist/types/api/APIGuildPermissions.d.mts +15 -0
  212. package/{types → dist}/types/api/APIGuildPermissions.d.ts +5 -3
  213. package/dist/types/api/APIGuildPermissions.js +37 -11
  214. package/dist/types/api/APIGuildPermissions.mjs +13 -0
  215. package/dist/types/api/APIGuildShop.d.mts +15 -0
  216. package/{types → dist}/types/api/APIGuildShop.d.ts +6 -2
  217. package/dist/types/api/APIGuildShop.js +17 -1
  218. package/dist/types/api/APIGuildShop.mjs +0 -0
  219. package/dist/types/api/APIGuildTicket.d.mts +19 -0
  220. package/{types → dist}/types/api/APIGuildTicket.d.ts +5 -2
  221. package/dist/types/api/APIGuildTicket.js +17 -1
  222. package/dist/types/api/APIGuildTicket.mjs +0 -0
  223. package/dist/types/api/APIGuildUser.d.mts +21 -0
  224. package/dist/types/api/APIGuildUser.d.ts +21 -0
  225. package/dist/types/api/APIGuildUser.js +17 -1
  226. package/dist/types/api/APIGuildUser.mjs +0 -0
  227. package/dist/types/api/APILogEntry.d.mts +32 -0
  228. package/{types → dist}/types/api/APILogEntry.d.ts +4 -2
  229. package/dist/types/api/APILogEntry.js +44 -18
  230. package/dist/types/api/APILogEntry.mjs +20 -0
  231. package/dist/types/api/APIMessage.d.mts +13 -0
  232. package/{types → dist}/types/api/APIMessage.d.ts +3 -1
  233. package/dist/types/api/APIMessage.js +17 -1
  234. package/dist/types/api/APIMessage.mjs +0 -0
  235. package/dist/types/api/APIMinesGame.d.mts +15 -0
  236. package/{types → dist}/types/api/APIMinesGame.d.ts +3 -1
  237. package/dist/types/api/APIMinesGame.js +17 -1
  238. package/dist/types/api/APIMinesGame.mjs +0 -0
  239. package/dist/types/api/APIPlayer.d.mts +10 -0
  240. package/{types → dist}/types/api/APIPlayer.d.ts +3 -1
  241. package/dist/types/api/APIPlayer.js +17 -1
  242. package/dist/types/api/APIPlayer.mjs +0 -0
  243. package/dist/types/api/APIProduct.d.mts +22 -0
  244. package/{types → dist}/types/api/APIProduct.d.ts +5 -2
  245. package/dist/types/api/APIProduct.js +17 -2
  246. package/dist/types/api/APIProduct.mjs +0 -0
  247. package/dist/types/api/APITournament.d.mts +16 -0
  248. package/dist/types/api/APITournament.d.ts +16 -0
  249. package/dist/types/api/APITournament.js +18 -0
  250. package/dist/types/api/APITournament.mjs +0 -0
  251. package/dist/types/api/APIVipMember.d.mts +22 -0
  252. package/{types → dist}/types/api/APIVipMember.d.ts +3 -1
  253. package/dist/types/api/APIVipMember.js +17 -1
  254. package/dist/types/api/APIVipMember.mjs +0 -0
  255. package/dist/types/api/index.d.mts +21 -0
  256. package/dist/types/api/index.d.ts +21 -0
  257. package/dist/types/api/index.js +171 -70
  258. package/dist/types/api/index.mjs +135 -0
  259. package/dist/types/index.d.mts +21 -0
  260. package/dist/types/index.d.ts +21 -0
  261. package/dist/types/index.js +171 -16
  262. package/dist/types/index.mjs +135 -0
  263. package/dist/utils/Assertion.d.mts +34 -0
  264. package/{types → dist}/utils/Assertion.d.ts +3 -1
  265. package/dist/utils/Assertion.js +76 -59
  266. package/dist/utils/Assertion.mjs +52 -0
  267. package/dist/utils/getRandomNumber.d.mts +3 -0
  268. package/dist/utils/getRandomNumber.d.ts +3 -0
  269. package/dist/utils/getRandomNumber.js +29 -3
  270. package/dist/utils/getRandomNumber.mjs +7 -0
  271. package/dist/utils/randomKeyGenerator.d.mts +3 -0
  272. package/dist/utils/randomKeyGenerator.d.ts +3 -0
  273. package/dist/utils/randomKeyGenerator.js +33 -0
  274. package/dist/utils/randomKeyGenerator.mjs +8 -0
  275. package/package.json +12 -6
  276. package/dist/types/api/APIBetMessage.js +0 -2
  277. package/dist/types/api/APIGuildEmoji.js +0 -2
  278. package/dist/types/api/APIGuildRole.js +0 -2
  279. package/dist/types/api/APILogMessage.js +0 -2
  280. package/types/index.d.ts +0 -4
  281. package/types/managers/base.d.ts +0 -14
  282. package/types/managers/bet/GuildBetManager.d.ts +0 -15
  283. package/types/managers/betuser/GuildBetUserManager.d.ts +0 -18
  284. package/types/managers/buffer/BufferManager.d.ts +0 -19
  285. package/types/managers/guild/GuildManager.d.ts +0 -32
  286. package/types/managers/index.d.ts +0 -14
  287. package/types/managers/logs/LogManager.d.ts +0 -10
  288. package/types/managers/match/GuildMatchManager.d.ts +0 -29
  289. package/types/managers/mediator/GuildMediatorManager.d.ts +0 -19
  290. package/types/managers/message/MessagesManager.d.ts +0 -20
  291. package/types/managers/minesgame/MinesGameManager.d.ts +0 -17
  292. package/types/managers/permission/GuildPermissionManager.d.ts +0 -8
  293. package/types/managers/player/PlayerManager.d.ts +0 -28
  294. package/types/managers/ticket/TicketManager.d.ts +0 -24
  295. package/types/managers/user/GuildUserManager.d.ts +0 -18
  296. package/types/managers/vipmember/VipMemberManager.d.ts +0 -32
  297. package/types/rest/REST.d.ts +0 -56
  298. package/types/rest/index.d.ts +0 -3
  299. package/types/structures/bet/GuildBet.d.ts +0 -54
  300. package/types/structures/betuser/GuildBetUser.d.ts +0 -71
  301. package/types/structures/guild/Guild.d.ts +0 -85
  302. package/types/structures/index.d.ts +0 -11
  303. package/types/structures/logentry/LogEntry.d.ts +0 -28
  304. package/types/structures/match/GuildMatch.d.ts +0 -76
  305. package/types/structures/mediator/GuildMediator.d.ts +0 -50
  306. package/types/structures/minesgame/MinesGame.d.ts +0 -23
  307. package/types/structures/ticket/Ticket.d.ts +0 -30
  308. package/types/structures/user/GuildUser.d.ts +0 -75
  309. package/types/structures/vipmember/VipMember.d.ts +0 -54
  310. package/types/types/RestTypes.d.ts +0 -47
  311. package/types/types/api/APIBetMessage.d.ts +0 -10
  312. package/types/types/api/APIGuild.d.ts +0 -132
  313. package/types/types/api/APIGuildBet.d.ts +0 -51
  314. package/types/types/api/APIGuildBetUser.d.ts +0 -27
  315. package/types/types/api/APIGuildGroupedChannel.d.ts +0 -7
  316. package/types/types/api/APIGuildMatch.d.ts +0 -58
  317. package/types/types/api/APIGuildRole.d.ts +0 -10
  318. package/types/types/api/APIGuildUser.d.ts +0 -41
  319. package/types/types/api/APILogMessage.d.ts +0 -7
  320. package/types/types/api/index.d.ts +0 -161
  321. package/types/types/index.d.ts +0 -2
  322. package/types/utils/getRandomNumber.d.ts +0 -1
@@ -0,0 +1,135 @@
1
+ // src/types/api/APIGuild.ts
2
+ var GuildStatusEnum = /* @__PURE__ */ ((GuildStatusEnum2) => {
3
+ GuildStatusEnum2["Matches"] = "matches";
4
+ GuildStatusEnum2["Bets"] = "bets";
5
+ GuildStatusEnum2["DailyRank"] = "daily_rank";
6
+ GuildStatusEnum2["CreateVoiceChannels"] = "create_voice_channels";
7
+ GuildStatusEnum2["TwoMvps"] = "two_mvps";
8
+ GuildStatusEnum2["RankingName"] = "ranking_name";
9
+ GuildStatusEnum2["LogsQueues"] = "logs_queues";
10
+ GuildStatusEnum2["LogsUsers"] = "logs_users";
11
+ GuildStatusEnum2["LogsManaging"] = "logs_managing";
12
+ GuildStatusEnum2["NameHidden"] = "name_hidden";
13
+ return GuildStatusEnum2;
14
+ })(GuildStatusEnum || {});
15
+ var AutomaticMessagesTypes = /* @__PURE__ */ ((AutomaticMessagesTypes2) => {
16
+ AutomaticMessagesTypes2["MatchStarted"] = "match_started";
17
+ AutomaticMessagesTypes2["Miscellaneous"] = "miscellaneous";
18
+ return AutomaticMessagesTypes2;
19
+ })(AutomaticMessagesTypes || {});
20
+ var GuildChannelsType = /* @__PURE__ */ ((GuildChannelsType2) => {
21
+ GuildChannelsType2["DailyRank"] = "daily_rank";
22
+ GuildChannelsType2["Commands"] = "command";
23
+ GuildChannelsType2["Blacklist"] = "blacklist";
24
+ GuildChannelsType2["Queues"] = "queue";
25
+ GuildChannelsType2["VipMemebers"] = "vipmembers_category";
26
+ GuildChannelsType2["QueueLogs"] = "queue_logs";
27
+ GuildChannelsType2["UserLogs"] = "user_logs";
28
+ GuildChannelsType2["TicketLogs"] = "ticket_logs";
29
+ GuildChannelsType2["ManagingLogs"] = "managing_logs";
30
+ GuildChannelsType2["NormalQueue"] = "normal_queue";
31
+ GuildChannelsType2["ChallengeQueue"] = "challenge_queue";
32
+ GuildChannelsType2["MatchTextChannelParent"] = "match_text_channel_parent";
33
+ GuildChannelsType2["VoiceChannelMatchCreation"] = "voice_channel_match_creation";
34
+ GuildChannelsType2["WaitingVC"] = "waiting_vc";
35
+ GuildChannelsType2["BetMobileCategory"] = "bet_mobile_category";
36
+ GuildChannelsType2["BetEmulatorCategory"] = "bet_emulator_category";
37
+ GuildChannelsType2["BetMixCategory"] = "bet_mix_category";
38
+ GuildChannelsType2["RouletteLogs"] = "roulette_logs";
39
+ GuildChannelsType2["Rules"] = "rules";
40
+ return GuildChannelsType2;
41
+ })(GuildChannelsType || {});
42
+
43
+ // src/types/api/APIGuildBet.ts
44
+ var BetChannelTypes = /* @__PURE__ */ ((BetChannelTypes2) => {
45
+ BetChannelTypes2["CreationChannel"] = "creation_channel";
46
+ return BetChannelTypes2;
47
+ })(BetChannelTypes || {});
48
+
49
+ // src/types/api/APIGuildMatch.ts
50
+ var GuildMatchChannelsType = /* @__PURE__ */ ((GuildMatchChannelsType2) => {
51
+ GuildMatchChannelsType2["CreationChannel"] = "creation_channel";
52
+ GuildMatchChannelsType2["TextChannel"] = "text_channel";
53
+ return GuildMatchChannelsType2;
54
+ })(GuildMatchChannelsType || {});
55
+ var GuildMatchMessagesType = /* @__PURE__ */ ((GuildMatchMessagesType2) => {
56
+ GuildMatchMessagesType2["CreationMessage"] = "creation_message";
57
+ return GuildMatchMessagesType2;
58
+ })(GuildMatchMessagesType || {});
59
+
60
+ // src/types/api/APIGuildPermissions.ts
61
+ var GuildPermissionsTypes = /* @__PURE__ */ ((GuildPermissionsTypes2) => {
62
+ GuildPermissionsTypes2["ManageBot"] = "manage_bot";
63
+ GuildPermissionsTypes2["ManageQueues"] = "manage_queues";
64
+ GuildPermissionsTypes2["ManageUsers"] = "manage_users";
65
+ GuildPermissionsTypes2["ViewQueueChannels"] = "view_queue_channels";
66
+ GuildPermissionsTypes2["MediatorRole"] = "mediator_role";
67
+ GuildPermissionsTypes2["ManageRouletteRolls"] = "manage_roulette_rolls";
68
+ return GuildPermissionsTypes2;
69
+ })(GuildPermissionsTypes || {});
70
+
71
+ // src/types/api/APILogEntry.ts
72
+ var LogEntryTypes = /* @__PURE__ */ ((LogEntryTypes2) => {
73
+ LogEntryTypes2["QueueCreated"] = "queue_created";
74
+ LogEntryTypes2["QueueShut"] = "queue_shut";
75
+ LogEntryTypes2["MatchStarted"] = "match_started";
76
+ LogEntryTypes2["MatchUpdated"] = "match_updated";
77
+ LogEntryTypes2["MatchClosed"] = "match_closed";
78
+ LogEntryTypes2["UserUpdated"] = "user_updated";
79
+ LogEntryTypes2["UserManaged"] = "user_managed";
80
+ LogEntryTypes2["BetManaged"] = "bet_managed";
81
+ LogEntryTypes2["BetMediador"] = "bet_mediador";
82
+ LogEntryTypes2["BetInitiated"] = "bet_initiated";
83
+ LogEntryTypes2["BetClosed"] = "bet_closed";
84
+ LogEntryTypes2["BetAwaitingConfirmation"] = "bet_awaiting_confirmation";
85
+ LogEntryTypes2["BetCanceled"] = "bet_canceled";
86
+ return LogEntryTypes2;
87
+ })(LogEntryTypes || {});
88
+
89
+ // src/types/api/index.ts
90
+ var MATCHTYPES = /* @__PURE__ */ ((MATCHTYPES2) => {
91
+ MATCHTYPES2["OneVOne"] = "1v1";
92
+ MATCHTYPES2["TwoVTwo"] = "2v2";
93
+ MATCHTYPES2["ThreeVThree"] = "3v3";
94
+ MATCHTYPES2["FourVFour"] = "4v4";
95
+ MATCHTYPES2["FiveVFive"] = "5v5";
96
+ MATCHTYPES2["SixVSix"] = "6v6";
97
+ return MATCHTYPES2;
98
+ })(MATCHTYPES || {});
99
+ var MATCHSTATUS = /* @__PURE__ */ ((MATCHSTATUS2) => {
100
+ MATCHSTATUS2["ON"] = "on";
101
+ MATCHSTATUS2["OFF"] = "off";
102
+ MATCHSTATUS2["CREATED"] = "created";
103
+ MATCHSTATUS2["SHUTTED"] = "shutted";
104
+ return MATCHSTATUS2;
105
+ })(MATCHSTATUS || {});
106
+ var BETSTATUS = /* @__PURE__ */ ((BETSTATUS2) => {
107
+ BETSTATUS2["ON"] = "on";
108
+ BETSTATUS2["OFF"] = "off";
109
+ BETSTATUS2["CREATED"] = "created";
110
+ BETSTATUS2["SHUTTED"] = "shutted";
111
+ BETSTATUS2["WAITING"] = "waiting";
112
+ return BETSTATUS2;
113
+ })(BETSTATUS || {});
114
+ var STATES = /* @__PURE__ */ ((STATES2) => {
115
+ STATES2["ON"] = "on";
116
+ STATES2["OFF"] = "off";
117
+ STATES2["CREATED"] = "created";
118
+ STATES2["SHUTTED"] = "shutted";
119
+ STATES2["WAITING"] = "waiting";
120
+ return STATES2;
121
+ })(STATES || {});
122
+ export {
123
+ AutomaticMessagesTypes,
124
+ BETSTATUS,
125
+ BetChannelTypes,
126
+ GuildChannelsType,
127
+ GuildMatchChannelsType,
128
+ GuildMatchMessagesType,
129
+ GuildPermissionsTypes,
130
+ GuildStatusEnum,
131
+ LogEntryTypes,
132
+ MATCHSTATUS,
133
+ MATCHTYPES,
134
+ STATES
135
+ };
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Class used to assert types in the sdk
3
+ */
4
+ declare class Assertion {
5
+ constructor();
6
+ /**
7
+ * Tests if given key is a string
8
+ * @param key Key to test
9
+ */
10
+ static assertString(key: unknown): key is string;
11
+ /**
12
+ * Tests if given key is a number
13
+ * @param key Key to test
14
+ */
15
+ static assertNumber(key: unknown): key is number;
16
+ /**
17
+ * Tests if given key is a boolean
18
+ * @param key Key to test
19
+ */
20
+ static assertBoolean(key: unknown): key is boolean;
21
+ /**
22
+ * Tests if given key is an array
23
+ * @param key Key to test
24
+ */
25
+ static assertArray(key: unknown): key is object;
26
+ /**
27
+ * Tests if given key is an object
28
+ * @param key Key to test
29
+ */
30
+ static assertObject(key: unknown): key is object;
31
+ toString(): string;
32
+ }
33
+
34
+ export { Assertion };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Class used to assert types in the sdk
3
3
  */
4
- export declare class Assertion {
4
+ declare class Assertion {
5
5
  constructor();
6
6
  /**
7
7
  * Tests if given key is a string
@@ -30,3 +30,5 @@ export declare class Assertion {
30
30
  static assertObject(key: unknown): key is object;
31
31
  toString(): string;
32
32
  }
33
+
34
+ export { Assertion };
@@ -1,60 +1,77 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Assertion = void 0;
4
- /**
5
- * Class used to assert types in the sdk
6
- */
7
- class Assertion {
8
- constructor() { }
9
- /**
10
- * Tests if given key is a string
11
- * @param key Key to test
12
- */
13
- static assertString(key) {
14
- if (typeof key !== "string")
15
- throw new Error(`${key} must be a string`);
16
- if (!key || key === "")
17
- throw new Error(`${key} must be a string`);
18
- return true;
19
- }
20
- /**
21
- * Tests if given key is a number
22
- * @param key Key to test
23
- */
24
- static assertNumber(key) {
25
- if (typeof key !== "number")
26
- throw new Error(`${key} must be a number`);
27
- return true;
28
- }
29
- /**
30
- * Tests if given key is a boolean
31
- * @param key Key to test
32
- */
33
- static assertBoolean(key) {
34
- if (typeof key !== "boolean")
35
- throw new Error(`${key} must be a boolean`);
36
- return true;
37
- }
38
- /**
39
- * Tests if given key is an array
40
- * @param key Key to test
41
- */
42
- static assertArray(key) {
43
- if (!Array.isArray(key))
44
- throw new Error(`${key} must be an array`);
45
- return true;
46
- }
47
- /**
48
- * Tests if given key is an object
49
- * @param key Key to test
50
- */
51
- static assertObject(key) {
52
- if (typeof key !== "object")
53
- throw new Error(`${key} must be an object`);
54
- return true;
55
- }
56
- toString() {
57
- return 'string, number, boolean, array, object';
58
- }
59
- }
60
- exports.Assertion = Assertion;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/utils/Assertion.ts
21
+ var Assertion_exports = {};
22
+ __export(Assertion_exports, {
23
+ Assertion: () => Assertion
24
+ });
25
+ module.exports = __toCommonJS(Assertion_exports);
26
+ var Assertion = class {
27
+ constructor() {
28
+ }
29
+ /**
30
+ * Tests if given key is a string
31
+ * @param key Key to test
32
+ */
33
+ static assertString(key) {
34
+ if (typeof key !== "string") throw new Error(`${key} must be a string`);
35
+ if (!key || key === "") throw new Error(`${key} must be a string`);
36
+ return true;
37
+ }
38
+ /**
39
+ * Tests if given key is a number
40
+ * @param key Key to test
41
+ */
42
+ static assertNumber(key) {
43
+ if (typeof key !== "number") throw new Error(`${key} must be a number`);
44
+ return true;
45
+ }
46
+ /**
47
+ * Tests if given key is a boolean
48
+ * @param key Key to test
49
+ */
50
+ static assertBoolean(key) {
51
+ if (typeof key !== "boolean") throw new Error(`${key} must be a boolean`);
52
+ return true;
53
+ }
54
+ /**
55
+ * Tests if given key is an array
56
+ * @param key Key to test
57
+ */
58
+ static assertArray(key) {
59
+ if (!Array.isArray(key)) throw new Error(`${key} must be an array`);
60
+ return true;
61
+ }
62
+ /**
63
+ * Tests if given key is an object
64
+ * @param key Key to test
65
+ */
66
+ static assertObject(key) {
67
+ if (typeof key !== "object") throw new Error(`${key} must be an object`);
68
+ return true;
69
+ }
70
+ toString() {
71
+ return "string, number, boolean, array, object";
72
+ }
73
+ };
74
+ // Annotate the CommonJS export names for ESM import in node:
75
+ 0 && (module.exports = {
76
+ Assertion
77
+ });
@@ -0,0 +1,52 @@
1
+ // src/utils/Assertion.ts
2
+ var Assertion = class {
3
+ constructor() {
4
+ }
5
+ /**
6
+ * Tests if given key is a string
7
+ * @param key Key to test
8
+ */
9
+ static assertString(key) {
10
+ if (typeof key !== "string") throw new Error(`${key} must be a string`);
11
+ if (!key || key === "") throw new Error(`${key} must be a string`);
12
+ return true;
13
+ }
14
+ /**
15
+ * Tests if given key is a number
16
+ * @param key Key to test
17
+ */
18
+ static assertNumber(key) {
19
+ if (typeof key !== "number") throw new Error(`${key} must be a number`);
20
+ return true;
21
+ }
22
+ /**
23
+ * Tests if given key is a boolean
24
+ * @param key Key to test
25
+ */
26
+ static assertBoolean(key) {
27
+ if (typeof key !== "boolean") throw new Error(`${key} must be a boolean`);
28
+ return true;
29
+ }
30
+ /**
31
+ * Tests if given key is an array
32
+ * @param key Key to test
33
+ */
34
+ static assertArray(key) {
35
+ if (!Array.isArray(key)) throw new Error(`${key} must be an array`);
36
+ return true;
37
+ }
38
+ /**
39
+ * Tests if given key is an object
40
+ * @param key Key to test
41
+ */
42
+ static assertObject(key) {
43
+ if (typeof key !== "object") throw new Error(`${key} must be an object`);
44
+ return true;
45
+ }
46
+ toString() {
47
+ return "string, number, boolean, array, object";
48
+ }
49
+ };
50
+ export {
51
+ Assertion
52
+ };
@@ -0,0 +1,3 @@
1
+ declare function getRandomNumber(min: number, max: number): number;
2
+
3
+ export { getRandomNumber };
@@ -0,0 +1,3 @@
1
+ declare function getRandomNumber(min: number, max: number): number;
2
+
3
+ export { getRandomNumber };
@@ -1,6 +1,32 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRandomNumber = getRandomNumber;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/utils/getRandomNumber.ts
21
+ var getRandomNumber_exports = {};
22
+ __export(getRandomNumber_exports, {
23
+ getRandomNumber: () => getRandomNumber
24
+ });
25
+ module.exports = __toCommonJS(getRandomNumber_exports);
4
26
  function getRandomNumber(min, max) {
5
- return Math.floor(Math.random() * (max - min + 1)) + min;
27
+ return Math.floor(Math.random() * (max - min + 1)) + min;
6
28
  }
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ getRandomNumber
32
+ });
@@ -0,0 +1,7 @@
1
+ // src/utils/getRandomNumber.ts
2
+ function getRandomNumber(min, max) {
3
+ return Math.floor(Math.random() * (max - min + 1)) + min;
4
+ }
5
+ export {
6
+ getRandomNumber
7
+ };
@@ -0,0 +1,3 @@
1
+ declare function randomKeyGenerator(max?: number, enconding?: BufferEncoding): string;
2
+
3
+ export { randomKeyGenerator };
@@ -0,0 +1,3 @@
1
+ declare function randomKeyGenerator(max?: number, enconding?: BufferEncoding): string;
2
+
3
+ export { randomKeyGenerator };
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/utils/randomKeyGenerator.ts
21
+ var randomKeyGenerator_exports = {};
22
+ __export(randomKeyGenerator_exports, {
23
+ randomKeyGenerator: () => randomKeyGenerator
24
+ });
25
+ module.exports = __toCommonJS(randomKeyGenerator_exports);
26
+ var import_crypto = require("crypto");
27
+ function randomKeyGenerator(max, enconding) {
28
+ return (0, import_crypto.randomBytes)(24).toString(enconding ?? "base64").slice(0, max || 24).toUpperCase();
29
+ }
30
+ // Annotate the CommonJS export names for ESM import in node:
31
+ 0 && (module.exports = {
32
+ randomKeyGenerator
33
+ });
@@ -0,0 +1,8 @@
1
+ // src/utils/randomKeyGenerator.ts
2
+ import { randomBytes } from "crypto";
3
+ function randomKeyGenerator(max, enconding) {
4
+ return randomBytes(24).toString(enconding ?? "base64").slice(0, max || 24).toUpperCase();
5
+ }
6
+ export {
7
+ randomKeyGenerator
8
+ };
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "@duque.edits/sdk",
3
- "version": "1.0.87",
4
- "main": "dist/index",
5
- "types": "./types/index.d.ts",
6
- "typings": "./types/index.d.ts",
3
+ "version": "1.1.2",
4
+
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "typings": "./dist/index.d.ts",
9
+
10
+
7
11
  "type": "commonjs",
8
12
  "description": "An SDK that facilitates interaction with my API.",
9
- "module": "dist/duque.edits-sdk.esm.js",
10
13
  "keywords": [
11
14
  "REST",
12
15
  "API",
@@ -22,7 +25,8 @@
22
25
  "match": "ts-node --transpile-only tests/match.ts",
23
26
  "guild": "ts-node --transpile-only tests/guild.ts",
24
27
  "user": "ts-node --transpile-only tests/user.ts",
25
- "bet": "ts-node --transpile-only tests/bet.ts"
28
+ "bet": "ts-node --transpile-only tests/bet.ts",
29
+ "build": "tsup"
26
30
  },
27
31
  "author": "Duque Edits jedits077@gmail.com",
28
32
  "license": "ISC",
@@ -35,6 +39,8 @@
35
39
  },
36
40
  "homepage": "https://github.com/duque7x/sdk-ts#readme",
37
41
  "dependencies": {
42
+ "@discordjs/builders": "^1.13.1",
43
+ "tsup": "^8.5.1",
38
44
  "undici": "^7.10.0"
39
45
  },
40
46
  "devDependencies": {
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/types/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from "./managers";
2
- export * from "./structures";
3
- export * from "./rest";
4
- export * from "./types";
@@ -1,14 +0,0 @@
1
- import { REST } from "../rest/REST";
2
- import { Collection } from "../structures/Collection";
3
- import { Guild } from "../structures/guild/Guild";
4
- export declare class BaseManager<S> {
5
- /** This url of the manager */
6
- base_url: string;
7
- /** The rest client */
8
- rest: REST;
9
- /** The guild of the manager */
10
- guild: Guild;
11
- /** Cache */
12
- cache: Collection<string, S>;
13
- constructor(guild: Guild, data?: unknown);
14
- }
@@ -1,15 +0,0 @@
1
- import { Collection, Guild, GuildBet } from "../../structures";
2
- import { APIGuildBet, Optional } from "../../types";
3
- import { BaseManager } from "../base";
4
- export interface FetchOptions {
5
- cache?: boolean;
6
- betId?: string;
7
- }
8
- export declare class GuildBetManager extends BaseManager<GuildBet> {
9
- constructor(guild: Guild);
10
- toString(): number;
11
- fetch(options?: FetchOptions): Promise<GuildBet | Collection<string, GuildBet>>;
12
- create(data: Optional<APIGuildBet>): Promise<GuildBet>;
13
- delete(betId?: string): Promise<GuildBet>;
14
- set(data: Optional<APIGuildBet> | Optional<APIGuildBet>[] | GuildBet): GuildBet;
15
- }
@@ -1,18 +0,0 @@
1
- import { GuildBetUser } from "../../structures/betuser/GuildBetUser";
2
- import { Collection } from "../../structures/Collection";
3
- import { Guild } from "../../structures/guild/Guild";
4
- import { Optional, APIGuildBetUser } from "../../types";
5
- import { BaseManager } from "../base";
6
- type FetchOptions = {
7
- userId?: string;
8
- cache?: boolean;
9
- };
10
- export declare class GuildBetUserManager extends BaseManager<GuildBetUser> {
11
- constructor(guild: Guild);
12
- fetch(options?: FetchOptions): Promise<Collection<string, GuildBetUser> | GuildBetUser>;
13
- updateMany(...betusers: Optional<APIGuildBetUser>[]): Promise<Collection<string, GuildBetUser>>;
14
- deleteAll(): Promise<void>;
15
- resetAll(): Promise<GuildBetUser | Collection<string, GuildBetUser>>;
16
- set(data: APIGuildBetUser | APIGuildBetUser[]): GuildBetUser | Collection<string, GuildBetUser>;
17
- }
18
- export {};
@@ -1,19 +0,0 @@
1
- import { Collection } from "../../structures/Collection";
2
- import { Guild } from "../../structures/guild/Guild";
3
- import { GuildMatch } from "../../structures/match/GuildMatch";
4
- import { APIGuildMatch, APIGuildTicket, Optional } from "../../types";
5
- export type BufferMatch = Optional<APIGuildMatch & {
6
- id: string;
7
- }>;
8
- export type BufferTicket = Optional<APIGuildTicket & {
9
- id: string;
10
- }>;
11
- export declare class BufferManager {
12
- matches: Collection<string, BufferMatch | GuildMatch>;
13
- tickets: Collection<string, BufferTicket>;
14
- guild: Guild;
15
- constructor(guild: Guild);
16
- flush(key: "matches" | "tickets"): Promise<APIGuildMatch[] & APIGuildTicket[]>;
17
- createMatch(id: string, data: BufferMatch): void;
18
- createTicket(id: string, data: BufferTicket): void;
19
- }
@@ -1,32 +0,0 @@
1
- import { REST } from "../../rest/REST";
2
- import { Collection } from "../../structures/Collection";
3
- import { Guild } from "../../structures/guild/Guild";
4
- import { APIGuild } from "../../types/api/APIGuild";
5
- type FetchOptions = {
6
- guildId?: string;
7
- cache?: boolean;
8
- };
9
- type DeleteOptions = {
10
- guildId?: string;
11
- };
12
- export declare class GuildManager {
13
- /** A cache of guilds */
14
- cache: Collection<string, Guild>;
15
- /** The rest client */
16
- rest: REST;
17
- /**
18
- * Manage guilds with the given client
19
- * @param guilds An array of guilds
20
- * @param rest The rest client
21
- */
22
- constructor(rest: REST);
23
- /**
24
- * Fetch a guild
25
- * @param id Id of the guild to fetch
26
- * @returns APIGuild
27
- */
28
- fetch(options?: FetchOptions): Promise<Collection<string, Guild> | Guild>;
29
- delete(options: DeleteOptions): Promise<Collection<string, Guild> | boolean>;
30
- set(data: APIGuild | APIGuild[]): Guild | Collection<string, Guild>;
31
- }
32
- export {};