disgroove 1.3.3-dev.2 → 1.3.3-test.1

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 (277) hide show
  1. package/dist/package.json +1 -1
  2. package/package.json +1 -1
  3. package/dist/lib/Client.d.ts +0 -234
  4. package/dist/lib/Client.js +0 -256
  5. package/dist/lib/Client.js.map +0 -1
  6. package/dist/lib/constants.d.ts +0 -1084
  7. package/dist/lib/constants.js +0 -1163
  8. package/dist/lib/constants.js.map +0 -1
  9. package/dist/lib/gateway/Shard.d.ts +0 -25
  10. package/dist/lib/gateway/Shard.js +0 -522
  11. package/dist/lib/gateway/Shard.js.map +0 -1
  12. package/dist/lib/gateway/ShardsManager.d.ts +0 -5
  13. package/dist/lib/gateway/ShardsManager.js +0 -13
  14. package/dist/lib/gateway/ShardsManager.js.map +0 -1
  15. package/dist/lib/gateway/index.d.ts +0 -2
  16. package/dist/lib/gateway/index.js +0 -19
  17. package/dist/lib/gateway/index.js.map +0 -1
  18. package/dist/lib/index.d.ts +0 -7
  19. package/dist/lib/index.js +0 -24
  20. package/dist/lib/index.js.map +0 -1
  21. package/dist/lib/rest/CDN.d.ts +0 -21
  22. package/dist/lib/rest/CDN.js +0 -46
  23. package/dist/lib/rest/CDN.js.map +0 -1
  24. package/dist/lib/rest/Endpoints.d.ts +0 -94
  25. package/dist/lib/rest/Endpoints.js +0 -211
  26. package/dist/lib/rest/Endpoints.js.map +0 -1
  27. package/dist/lib/rest/REST.d.ts +0 -22
  28. package/dist/lib/rest/REST.js +0 -35
  29. package/dist/lib/rest/REST.js.map +0 -1
  30. package/dist/lib/rest/RequestsManager.d.ts +0 -17
  31. package/dist/lib/rest/RequestsManager.js +0 -124
  32. package/dist/lib/rest/RequestsManager.js.map +0 -1
  33. package/dist/lib/rest/index.d.ts +0 -4
  34. package/dist/lib/rest/index.js +0 -34
  35. package/dist/lib/rest/index.js.map +0 -1
  36. package/dist/lib/structures/Application.d.ts +0 -174
  37. package/dist/lib/structures/Application.js +0 -328
  38. package/dist/lib/structures/Application.js.map +0 -1
  39. package/dist/lib/structures/ApplicationCommand.d.ts +0 -45
  40. package/dist/lib/structures/ApplicationCommand.js +0 -127
  41. package/dist/lib/structures/ApplicationCommand.js.map +0 -1
  42. package/dist/lib/structures/AuditLog.d.ts +0 -20
  43. package/dist/lib/structures/AuditLog.js +0 -76
  44. package/dist/lib/structures/AuditLog.js.map +0 -1
  45. package/dist/lib/structures/AutoModerationRule.d.ts +0 -34
  46. package/dist/lib/structures/AutoModerationRule.js +0 -96
  47. package/dist/lib/structures/AutoModerationRule.js.map +0 -1
  48. package/dist/lib/structures/Base.d.ts +0 -17
  49. package/dist/lib/structures/Base.js +0 -31
  50. package/dist/lib/structures/Base.js.map +0 -1
  51. package/dist/lib/structures/Channel.d.ts +0 -253
  52. package/dist/lib/structures/Channel.js +0 -591
  53. package/dist/lib/structures/Channel.js.map +0 -1
  54. package/dist/lib/structures/ClientApplication.d.ts +0 -150
  55. package/dist/lib/structures/ClientApplication.js +0 -241
  56. package/dist/lib/structures/ClientApplication.js.map +0 -1
  57. package/dist/lib/structures/Emoji.d.ts +0 -28
  58. package/dist/lib/structures/Emoji.js +0 -79
  59. package/dist/lib/structures/Emoji.js.map +0 -1
  60. package/dist/lib/structures/Entitlement.d.ts +0 -24
  61. package/dist/lib/structures/Entitlement.js +0 -68
  62. package/dist/lib/structures/Entitlement.js.map +0 -1
  63. package/dist/lib/structures/Guild.d.ts +0 -462
  64. package/dist/lib/structures/Guild.js +0 -1095
  65. package/dist/lib/structures/Guild.js.map +0 -1
  66. package/dist/lib/structures/GuildMember.d.ts +0 -50
  67. package/dist/lib/structures/GuildMember.js +0 -149
  68. package/dist/lib/structures/GuildMember.js.map +0 -1
  69. package/dist/lib/structures/GuildScheduledEvent.d.ts +0 -49
  70. package/dist/lib/structures/GuildScheduledEvent.js +0 -118
  71. package/dist/lib/structures/GuildScheduledEvent.js.map +0 -1
  72. package/dist/lib/structures/GuildTemplate.d.ts +0 -32
  73. package/dist/lib/structures/GuildTemplate.js +0 -76
  74. package/dist/lib/structures/GuildTemplate.js.map +0 -1
  75. package/dist/lib/structures/Integration.d.ts +0 -30
  76. package/dist/lib/structures/Integration.js +0 -102
  77. package/dist/lib/structures/Integration.js.map +0 -1
  78. package/dist/lib/structures/Interaction.d.ts +0 -76
  79. package/dist/lib/structures/Interaction.js +0 -345
  80. package/dist/lib/structures/Interaction.js.map +0 -1
  81. package/dist/lib/structures/Invite.d.ts +0 -28
  82. package/dist/lib/structures/Invite.js +0 -86
  83. package/dist/lib/structures/Invite.js.map +0 -1
  84. package/dist/lib/structures/Message.d.ts +0 -84
  85. package/dist/lib/structures/Message.js +0 -300
  86. package/dist/lib/structures/Message.js.map +0 -1
  87. package/dist/lib/structures/Role.d.ts +0 -37
  88. package/dist/lib/structures/Role.js +0 -90
  89. package/dist/lib/structures/Role.js.map +0 -1
  90. package/dist/lib/structures/SKU.d.ts +0 -23
  91. package/dist/lib/structures/SKU.js +0 -63
  92. package/dist/lib/structures/SKU.js.map +0 -1
  93. package/dist/lib/structures/StageInstance.d.ts +0 -24
  94. package/dist/lib/structures/StageInstance.js +0 -57
  95. package/dist/lib/structures/StageInstance.js.map +0 -1
  96. package/dist/lib/structures/Sticker.d.ts +0 -31
  97. package/dist/lib/structures/Sticker.js +0 -86
  98. package/dist/lib/structures/Sticker.js.map +0 -1
  99. package/dist/lib/structures/Team.d.ts +0 -14
  100. package/dist/lib/structures/Team.js +0 -39
  101. package/dist/lib/structures/Team.js.map +0 -1
  102. package/dist/lib/structures/TestEntitlement.d.ts +0 -23
  103. package/dist/lib/structures/TestEntitlement.js +0 -61
  104. package/dist/lib/structures/TestEntitlement.js.map +0 -1
  105. package/dist/lib/structures/UnavailableGuild.d.ts +0 -11
  106. package/dist/lib/structures/UnavailableGuild.js +0 -25
  107. package/dist/lib/structures/UnavailableGuild.js.map +0 -1
  108. package/dist/lib/structures/User.d.ts +0 -63
  109. package/dist/lib/structures/User.js +0 -177
  110. package/dist/lib/structures/User.js.map +0 -1
  111. package/dist/lib/structures/VoiceState.d.ts +0 -26
  112. package/dist/lib/structures/VoiceState.js +0 -70
  113. package/dist/lib/structures/VoiceState.js.map +0 -1
  114. package/dist/lib/structures/Webhook.d.ts +0 -84
  115. package/dist/lib/structures/Webhook.js +0 -239
  116. package/dist/lib/structures/Webhook.js.map +0 -1
  117. package/dist/lib/structures/index.d.ts +0 -27
  118. package/dist/lib/structures/index.js +0 -44
  119. package/dist/lib/structures/index.js.map +0 -1
  120. package/dist/lib/types/application-command.d.ts +0 -102
  121. package/dist/lib/types/application-command.js +0 -3
  122. package/dist/lib/types/application-command.js.map +0 -1
  123. package/dist/lib/types/application-role-connection-metadata.d.ts +0 -18
  124. package/dist/lib/types/application-role-connection-metadata.js +0 -3
  125. package/dist/lib/types/application-role-connection-metadata.js.map +0 -1
  126. package/dist/lib/types/application.d.ts +0 -66
  127. package/dist/lib/types/application.js +0 -3
  128. package/dist/lib/types/application.js.map +0 -1
  129. package/dist/lib/types/audit-log.d.ts +0 -82
  130. package/dist/lib/types/audit-log.js +0 -3
  131. package/dist/lib/types/audit-log.js.map +0 -1
  132. package/dist/lib/types/auto-moderation.d.ts +0 -65
  133. package/dist/lib/types/auto-moderation.js +0 -3
  134. package/dist/lib/types/auto-moderation.js.map +0 -1
  135. package/dist/lib/types/channel.d.ts +0 -456
  136. package/dist/lib/types/channel.js +0 -3
  137. package/dist/lib/types/channel.js.map +0 -1
  138. package/dist/lib/types/emoji.d.ts +0 -22
  139. package/dist/lib/types/emoji.js +0 -3
  140. package/dist/lib/types/emoji.js.map +0 -1
  141. package/dist/lib/types/entitlements.d.ts +0 -32
  142. package/dist/lib/types/entitlements.js +0 -3
  143. package/dist/lib/types/entitlements.js.map +0 -1
  144. package/dist/lib/types/gateway-events.d.ts +0 -805
  145. package/dist/lib/types/gateway-events.js +0 -3
  146. package/dist/lib/types/gateway-events.js.map +0 -1
  147. package/dist/lib/types/guild-scheduled-event.d.ts +0 -57
  148. package/dist/lib/types/guild-scheduled-event.js +0 -3
  149. package/dist/lib/types/guild-scheduled-event.js.map +0 -1
  150. package/dist/lib/types/guild-template.d.ts +0 -28
  151. package/dist/lib/types/guild-template.js +0 -3
  152. package/dist/lib/types/guild-template.js.map +0 -1
  153. package/dist/lib/types/guild.d.ts +0 -333
  154. package/dist/lib/types/guild.js +0 -3
  155. package/dist/lib/types/guild.js.map +0 -1
  156. package/dist/lib/types/index.d.ts +0 -23
  157. package/dist/lib/types/index.js +0 -40
  158. package/dist/lib/types/index.js.map +0 -1
  159. package/dist/lib/types/interaction.d.ts +0 -170
  160. package/dist/lib/types/interaction.js +0 -3
  161. package/dist/lib/types/interaction.js.map +0 -1
  162. package/dist/lib/types/invite.d.ts +0 -59
  163. package/dist/lib/types/invite.js +0 -3
  164. package/dist/lib/types/invite.js.map +0 -1
  165. package/dist/lib/types/message-components.d.ts +0 -100
  166. package/dist/lib/types/message-components.js +0 -3
  167. package/dist/lib/types/message-components.js.map +0 -1
  168. package/dist/lib/types/role.d.ts +0 -47
  169. package/dist/lib/types/role.js +0 -3
  170. package/dist/lib/types/role.js.map +0 -1
  171. package/dist/lib/types/sku.d.ts +0 -30
  172. package/dist/lib/types/sku.js +0 -3
  173. package/dist/lib/types/sku.js.map +0 -1
  174. package/dist/lib/types/stage-instance.d.ts +0 -20
  175. package/dist/lib/types/stage-instance.js +0 -3
  176. package/dist/lib/types/stage-instance.js.map +0 -1
  177. package/dist/lib/types/sticker.d.ts +0 -61
  178. package/dist/lib/types/sticker.js +0 -3
  179. package/dist/lib/types/sticker.js.map +0 -1
  180. package/dist/lib/types/team.d.ts +0 -30
  181. package/dist/lib/types/team.js +0 -3
  182. package/dist/lib/types/team.js.map +0 -1
  183. package/dist/lib/types/user.d.ts +0 -77
  184. package/dist/lib/types/user.js +0 -3
  185. package/dist/lib/types/user.js.map +0 -1
  186. package/dist/lib/types/voice.d.ts +0 -47
  187. package/dist/lib/types/voice.js +0 -3
  188. package/dist/lib/types/voice.js.map +0 -1
  189. package/dist/lib/types/webhook.d.ts +0 -31
  190. package/dist/lib/types/webhook.js +0 -3
  191. package/dist/lib/types/webhook.js.map +0 -1
  192. package/dist/lib/utils/Util.d.ts +0 -15
  193. package/dist/lib/utils/Util.js +0 -543
  194. package/dist/lib/utils/Util.js.map +0 -1
  195. package/dist/lib/utils/errors.d.ts +0 -12
  196. package/dist/lib/utils/errors.js +0 -25
  197. package/dist/lib/utils/errors.js.map +0 -1
  198. package/dist/lib/utils/index.d.ts +0 -2
  199. package/dist/lib/utils/index.js +0 -19
  200. package/dist/lib/utils/index.js.map +0 -1
  201. package/examples/applicationCommands.js +0 -43
  202. package/examples/buttons.js +0 -70
  203. package/examples/embeds.js +0 -36
  204. package/examples/ephemeralMessages.js +0 -32
  205. package/examples/files.js +0 -36
  206. package/examples/modalSubmit.js +0 -62
  207. package/examples/permissions.js +0 -41
  208. package/examples/selectMenus.js +0 -160
  209. package/examples/text.txt +0 -1
  210. package/lib/Client.ts +0 -616
  211. package/lib/constants.ts +0 -1173
  212. package/lib/gateway/Shard.ts +0 -704
  213. package/lib/gateway/ShardsManager.ts +0 -11
  214. package/lib/gateway/index.ts +0 -2
  215. package/lib/index.ts +0 -7
  216. package/lib/rest/CDN.ts +0 -56
  217. package/lib/rest/Endpoints.ts +0 -241
  218. package/lib/rest/REST.ts +0 -45
  219. package/lib/rest/RequestsManager.ts +0 -134
  220. package/lib/rest/index.ts +0 -4
  221. package/lib/structures/Application.ts +0 -599
  222. package/lib/structures/ApplicationCommand.ts +0 -187
  223. package/lib/structures/AuditLog.ts +0 -112
  224. package/lib/structures/AutoModerationRule.ts +0 -127
  225. package/lib/structures/Base.ts +0 -39
  226. package/lib/structures/Channel.ts +0 -921
  227. package/lib/structures/ClientApplication.ts +0 -515
  228. package/lib/structures/Emoji.ts +0 -95
  229. package/lib/structures/Entitlement.ts +0 -65
  230. package/lib/structures/Guild.ts +0 -1842
  231. package/lib/structures/GuildMember.ts +0 -193
  232. package/lib/structures/GuildScheduledEvent.ts +0 -164
  233. package/lib/structures/GuildTemplate.ts +0 -103
  234. package/lib/structures/Integration.ts +0 -136
  235. package/lib/structures/Interaction.ts +0 -506
  236. package/lib/structures/Invite.ts +0 -108
  237. package/lib/structures/Message.ts +0 -421
  238. package/lib/structures/Role.ts +0 -116
  239. package/lib/structures/SKU.ts +0 -63
  240. package/lib/structures/StageInstance.ts +0 -74
  241. package/lib/structures/Sticker.ts +0 -100
  242. package/lib/structures/Team.ts +0 -41
  243. package/lib/structures/TestEntitlement.ts +0 -78
  244. package/lib/structures/UnavailableGuild.ts +0 -27
  245. package/lib/structures/User.ts +0 -233
  246. package/lib/structures/VoiceState.ts +0 -72
  247. package/lib/structures/Webhook.ts +0 -341
  248. package/lib/structures/index.ts +0 -27
  249. package/lib/types/application-command.ts +0 -118
  250. package/lib/types/application-role-connection-metadata.ts +0 -23
  251. package/lib/types/application.ts +0 -77
  252. package/lib/types/audit-log.ts +0 -105
  253. package/lib/types/auto-moderation.ts +0 -78
  254. package/lib/types/channel.ts +0 -534
  255. package/lib/types/emoji.ts +0 -24
  256. package/lib/types/entitlements.ts +0 -34
  257. package/lib/types/gateway-events.ts +0 -970
  258. package/lib/types/guild-scheduled-event.ts +0 -67
  259. package/lib/types/guild-template.ts +0 -30
  260. package/lib/types/guild.ts +0 -388
  261. package/lib/types/index.ts +0 -23
  262. package/lib/types/interaction.ts +0 -224
  263. package/lib/types/invite.ts +0 -78
  264. package/lib/types/message-components.ts +0 -127
  265. package/lib/types/role.ts +0 -51
  266. package/lib/types/sku.ts +0 -32
  267. package/lib/types/stage-instance.ts +0 -22
  268. package/lib/types/sticker.ts +0 -67
  269. package/lib/types/team.ts +0 -34
  270. package/lib/types/user.ts +0 -93
  271. package/lib/types/voice.ts +0 -51
  272. package/lib/types/webhook.ts +0 -40
  273. package/lib/utils/Util.ts +0 -600
  274. package/lib/utils/errors.ts +0 -23
  275. package/lib/utils/index.ts +0 -2
  276. package/test/basic.js +0 -8
  277. package/tsconfig.json +0 -107
@@ -1,170 +0,0 @@
1
- import type { RawAttachment, RawChannel, RawGuildMember, RawMessage, RawUser, RawRole, JSONAttachment, JSONUser, JSONGuildMember, JSONMessage, JSONRole, JSONChannel, JSONEntitlement, RawEntitlement, RawEmbed, RawAllowedMentions, RawActionRow, RawApplicationCommandOptionChoice, JSONEmbed, JSONAllowedMentions, JSONActionRow, JSONApplicationCommandOptionChoice, RawTextInput, JSONTextInput } from ".";
2
- import type { ApplicationCommandOptionType, ApplicationCommandTypes, ComponentTypes, InteractionCallbackType, InteractionType, MessageFlags } from "../constants";
3
- import type { File } from "../rest";
4
- /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-structure */
5
- export interface RawInteraction {
6
- id: string;
7
- application_id: string;
8
- type: InteractionType;
9
- data?: RawApplicationCommandData & RawMessageComponentData & RawModalSubmitData;
10
- guild_id?: string;
11
- channel?: RawChannel;
12
- channel_id?: string;
13
- member?: RawGuildMember;
14
- user?: RawUser;
15
- token: string;
16
- version: number;
17
- message?: RawMessage;
18
- app_permissions?: string;
19
- locale?: string;
20
- guild_locale?: string;
21
- entitlements: Array<RawEntitlement>;
22
- }
23
- /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-application-command-data-structure */
24
- export interface RawApplicationCommandData {
25
- id: string;
26
- name: string;
27
- type: ApplicationCommandTypes;
28
- resolved?: RawResolvedData;
29
- options?: Array<RawApplicationCommandInteractionDataOption>;
30
- guild_id?: string;
31
- target_id?: string;
32
- }
33
- /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-message-component-data-structure */
34
- export interface RawMessageComponentData {
35
- custom_id: string;
36
- component_type: ComponentTypes;
37
- values?: Array<string>;
38
- resolved?: RawResolvedData;
39
- }
40
- /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-modal-submit-data-structure */
41
- export interface RawModalSubmitData {
42
- custom_id: string;
43
- components: Array<{
44
- type: ComponentTypes.ActionRow;
45
- components: Array<RawTextInput>;
46
- }>;
47
- }
48
- /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-resolved-data-structure */
49
- export interface RawResolvedData {
50
- users?: Record<string, RawUser>;
51
- members?: Record<string, RawGuildMember>;
52
- roles?: Record<string, RawRole>;
53
- channels?: Record<string, RawChannel>;
54
- messages?: Record<string, RawMessage>;
55
- attachments?: Record<string, RawAttachment>;
56
- }
57
- /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-application-command-interaction-data-option-structure */
58
- export interface RawApplicationCommandInteractionDataOption {
59
- name: string;
60
- type: ApplicationCommandOptionType;
61
- value?: string | number | boolean;
62
- options?: Array<RawApplicationCommandInteractionDataOption>;
63
- focused?: boolean;
64
- }
65
- /** https://discord.com/developers/docs/interactions/receiving-and-responding#message-interaction-object-message-interaction-structure */
66
- export interface RawMessageInteraction {
67
- id: string;
68
- type: InteractionType;
69
- name: string;
70
- user: RawUser;
71
- member?: RawGuildMember;
72
- }
73
- /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-response-structure */
74
- export interface RawInteractionResponse {
75
- type: InteractionCallbackType;
76
- data?: RawInteractionCallbackData;
77
- }
78
- /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-data-structure */
79
- export interface RawInteractionCallbackData {
80
- tts?: boolean;
81
- content?: string;
82
- embeds?: Array<RawEmbed>;
83
- allowed_mentions?: RawAllowedMentions;
84
- flags?: MessageFlags;
85
- components?: Array<RawActionRow>;
86
- attachments?: Array<RawAttachment>;
87
- files?: Array<File>;
88
- choices?: Array<RawApplicationCommandOptionChoice>;
89
- custom_id?: string;
90
- title?: string;
91
- }
92
- export interface JSONInteraction {
93
- id: string;
94
- applicationId: string;
95
- type: InteractionType;
96
- data?: JSONApplicationCommandData & JSONMessageComponentData & JSONModalSubmitData;
97
- guildId?: string;
98
- channel?: JSONChannel;
99
- channelId?: string;
100
- member?: JSONGuildMember;
101
- user?: JSONUser;
102
- token: string;
103
- version: number;
104
- message?: JSONMessage;
105
- appPermissions?: string;
106
- locale?: string;
107
- guildLocale?: string;
108
- entitlements: Array<JSONEntitlement>;
109
- }
110
- export interface JSONApplicationCommandData {
111
- id: string;
112
- name: string;
113
- type: ApplicationCommandTypes;
114
- resolved?: JSONResolvedData;
115
- options?: Array<JSONApplicationCommandInteractionDataOption>;
116
- guildId?: string;
117
- targetId?: string;
118
- }
119
- export interface JSONMessageComponentData {
120
- customId: string;
121
- componentType: ComponentTypes;
122
- values?: Array<string>;
123
- resolved?: JSONResolvedData;
124
- }
125
- export interface JSONModalSubmitData {
126
- customId: string;
127
- components: Array<{
128
- type: ComponentTypes.ActionRow;
129
- components: Array<JSONTextInput>;
130
- }>;
131
- }
132
- export interface JSONResolvedData {
133
- users?: Map<string, JSONUser>;
134
- members?: Map<string, JSONGuildMember>;
135
- roles?: Map<string, JSONRole>;
136
- channels?: Map<string, JSONChannel>;
137
- messages?: Map<string, JSONMessage>;
138
- attachments?: Map<string, JSONAttachment>;
139
- }
140
- export interface JSONApplicationCommandInteractionDataOption {
141
- name: string;
142
- type: ApplicationCommandOptionType;
143
- value?: string | number | boolean;
144
- options?: Array<JSONApplicationCommandInteractionDataOption>;
145
- focused?: boolean;
146
- }
147
- export interface JSONMessageInteraction {
148
- id: string;
149
- type: InteractionType;
150
- name: string;
151
- user: JSONUser;
152
- member?: JSONGuildMember;
153
- }
154
- export interface JSONInteractionResponse {
155
- type: InteractionCallbackType;
156
- data?: JSONInteractionCallbackData;
157
- }
158
- export interface JSONInteractionCallbackData {
159
- tts?: boolean;
160
- content?: string;
161
- embeds?: Array<JSONEmbed>;
162
- allowedMentions?: JSONAllowedMentions;
163
- flags?: MessageFlags;
164
- components?: Array<JSONActionRow>;
165
- attachments?: Array<JSONAttachment>;
166
- files?: Array<File>;
167
- choices?: Array<JSONApplicationCommandOptionChoice>;
168
- customId?: string;
169
- title?: string;
170
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=interaction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interaction.js","sourceRoot":"","sources":["../../../lib/types/interaction.ts"],"names":[],"mappings":""}
@@ -1,59 +0,0 @@
1
- import type { JSONApplication, JSONChannel, JSONGuild, JSONGuildMember, JSONGuildScheduledEvent, JSONUser, RawApplication, RawChannel, RawGuild, RawGuildMember, RawGuildScheduledEvent, RawUser } from ".";
2
- import type { InviteTargetTypes } from "../constants";
3
- /** https://discord.com/developers/docs/resources/invite#invite-object-invite-structure */
4
- export interface RawInvite {
5
- code: string;
6
- guild?: RawGuild;
7
- channel: RawChannel;
8
- inviter?: RawUser;
9
- target_type?: InviteTargetTypes;
10
- target_user?: RawUser;
11
- target_application?: RawApplication;
12
- approximate_presence_count?: number;
13
- approximate_member_count?: number;
14
- expires_at?: string | null;
15
- stage_instance?: RawInviteStageInstance;
16
- guild_scheduled_event?: RawGuildScheduledEvent;
17
- }
18
- /** https://discord.com/developers/docs/resources/invite#invite-metadata-object-invite-metadata-structure */
19
- export interface RawInviteMetadata {
20
- uses: number;
21
- max_uses: number;
22
- max_age: number;
23
- temporary: boolean;
24
- created_at: string;
25
- }
26
- /** https://discord.com/developers/docs/resources/invite#invite-stage-instance-object-invite-stage-instance-structure */
27
- export interface RawInviteStageInstance {
28
- members: Array<RawGuildMember>;
29
- participant_count: number;
30
- speaker_count: number;
31
- topic: string;
32
- }
33
- export interface JSONInvite {
34
- code: string;
35
- guild?: JSONGuild;
36
- channel: JSONChannel;
37
- inviter?: JSONUser;
38
- targetType?: InviteTargetTypes;
39
- targetUser?: JSONUser;
40
- targetApplication?: JSONApplication;
41
- approximatePresenceCount?: number;
42
- approximateMemberCount?: number;
43
- expiresAt?: string | null;
44
- stageInstance?: JSONInviteStageInstance;
45
- guildScheduledEvent?: JSONGuildScheduledEvent;
46
- }
47
- export interface JSONInviteMetadata {
48
- uses: number;
49
- maxUses: number;
50
- maxAge: number;
51
- temporary: boolean;
52
- createdAt: string;
53
- }
54
- export interface JSONInviteStageInstance {
55
- members: Array<JSONGuildMember>;
56
- participantCount: number;
57
- speakerCount: number;
58
- topic: string;
59
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=invite.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invite.js","sourceRoot":"","sources":["../../../lib/types/invite.ts"],"names":[],"mappings":""}
@@ -1,100 +0,0 @@
1
- import type { JSONEmoji, RawEmoji } from ".";
2
- import type { ButtonStyles, ChannelTypes, ComponentTypes, TextInputStyles } from "../constants";
3
- /** https://discord.com/developers/docs/interactions/message-components#button-object-button-structure */
4
- export interface RawButton {
5
- type: ComponentTypes.Button;
6
- style: ButtonStyles;
7
- label?: string;
8
- emoji?: Pick<RawEmoji, "name" | "id" | "animated">;
9
- custom_id?: string;
10
- url?: string;
11
- disabled?: boolean;
12
- }
13
- /** https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-menu-structure */
14
- export interface RawSelectMenu {
15
- type: ComponentTypes.ChannelSelect | ComponentTypes.MentionableSelect | ComponentTypes.RoleSelect | ComponentTypes.StringSelect | ComponentTypes.UserSelect;
16
- custom_id: string;
17
- options?: Array<RawSelectOption>;
18
- channel_types?: Array<ChannelTypes>;
19
- placeholder?: string;
20
- default_values?: Array<RawDefaultValue>;
21
- min_values?: number;
22
- max_values?: number;
23
- disabled?: boolean;
24
- }
25
- /** https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-option-structure */
26
- export interface RawSelectOption {
27
- label: string;
28
- value: string;
29
- description?: string;
30
- emoji?: Pick<RawEmoji, "name" | "id" | "animated">;
31
- default?: boolean;
32
- }
33
- /** https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-default-value-structure */
34
- export interface RawDefaultValue {
35
- id: string;
36
- type: string;
37
- }
38
- /** https://discord.com/developers/docs/interactions/message-components#text-inputs-text-input-structure */
39
- export interface RawTextInput {
40
- type: ComponentTypes.TextInput;
41
- custom_id: string;
42
- style: TextInputStyles;
43
- label: string;
44
- min_length?: number;
45
- max_length?: number;
46
- required?: boolean;
47
- value?: string;
48
- placeholder?: string;
49
- }
50
- /** https://discord.com/developers/docs/interactions/message-components#action-rows */
51
- export interface RawActionRow {
52
- type: ComponentTypes.ActionRow;
53
- components: Array<RawButton | RawSelectMenu | RawTextInput>;
54
- }
55
- export interface JSONButton {
56
- type: ComponentTypes.Button;
57
- style: ButtonStyles;
58
- label?: string;
59
- emoji?: Pick<JSONEmoji, "name" | "id" | "animated">;
60
- customId?: string;
61
- url?: string;
62
- disabled?: boolean;
63
- }
64
- export interface JSONSelectMenu {
65
- type: ComponentTypes.ChannelSelect | ComponentTypes.MentionableSelect | ComponentTypes.RoleSelect | ComponentTypes.StringSelect | ComponentTypes.UserSelect;
66
- customId: string;
67
- options?: Array<JSONSelectOption>;
68
- channelTypes?: Array<ChannelTypes>;
69
- placeholder?: string;
70
- defaultValues?: Array<JSONDefaultValue>;
71
- minValues?: number;
72
- maxValues?: number;
73
- disabled?: boolean;
74
- }
75
- export interface JSONSelectOption {
76
- label: string;
77
- value: string;
78
- description?: string;
79
- emoji?: Pick<JSONEmoji, "name" | "id" | "animated">;
80
- default?: boolean;
81
- }
82
- export interface JSONDefaultValue {
83
- id: string;
84
- type: string;
85
- }
86
- export interface JSONTextInput {
87
- type: ComponentTypes.TextInput;
88
- customId: string;
89
- style: TextInputStyles;
90
- label: string;
91
- minLength?: number;
92
- maxLength?: number;
93
- required?: boolean;
94
- value?: string;
95
- placeholder?: string;
96
- }
97
- export interface JSONActionRow {
98
- type: ComponentTypes.ActionRow;
99
- components: Array<JSONButton | JSONSelectMenu | JSONTextInput>;
100
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=message-components.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-components.js","sourceRoot":"","sources":["../../../lib/types/message-components.ts"],"names":[],"mappings":""}
@@ -1,47 +0,0 @@
1
- import type { RoleFlags } from "../constants";
2
- /** https://discord.com/developers/docs/topics/permissions#role-object-role-structure */
3
- export interface RawRole {
4
- id: string;
5
- name: string;
6
- color: number;
7
- hoist: boolean;
8
- icon?: string | null;
9
- unicode_emoji?: string | null;
10
- position: number;
11
- permissions: string;
12
- managed: boolean;
13
- mentionable: boolean;
14
- tags?: RawRoleTags;
15
- flags: RoleFlags;
16
- }
17
- /** https://discord.com/developers/docs/topics/permissions#role-object-role-tags-structure */
18
- export interface RawRoleTags {
19
- bot_id?: string;
20
- integration_id?: string;
21
- premium_subscriber?: null;
22
- subscription_listing_id?: string;
23
- available_for_purchase?: null;
24
- guild_connections?: null;
25
- }
26
- export interface JSONRole {
27
- id: string;
28
- name: string;
29
- color: number;
30
- hoist: boolean;
31
- icon?: string | null;
32
- unicodeEmoji?: string | null;
33
- position: number;
34
- permissions: string;
35
- managed: boolean;
36
- mentionable: boolean;
37
- tags?: JSONRoleTags;
38
- flags: RoleFlags;
39
- }
40
- export interface JSONRoleTags {
41
- botId?: string;
42
- integrationId?: string;
43
- premiumSubscriber?: null;
44
- subscriptionListingId?: string;
45
- availableForPurchase?: null;
46
- guildConnections?: null;
47
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=role.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"role.js","sourceRoot":"","sources":["../../../lib/types/role.ts"],"names":[],"mappings":""}
@@ -1,30 +0,0 @@
1
- import type { SKUFlags, SKUTypes } from "../constants";
2
- /** https://discord.com/developers/docs/monetization/skus#sku-object-sku-structure */
3
- export interface RawSKU {
4
- id: string;
5
- type: SKUTypes;
6
- dependent_sku_id?: string | null;
7
- application_id: string;
8
- manifest_labels?: null;
9
- access_type?: number;
10
- name: string;
11
- features?: [];
12
- release_date?: null;
13
- slug: string;
14
- flags: SKUFlags;
15
- show_age_gate?: boolean;
16
- }
17
- export interface JSONSKU {
18
- id: string;
19
- type: SKUTypes;
20
- dependentSKUId?: string | null;
21
- applicationId: string;
22
- manifestLabels?: null;
23
- accessType?: number;
24
- name: string;
25
- features?: [];
26
- releaseDate?: null;
27
- slug: string;
28
- flags: SKUFlags;
29
- showAgeGate?: boolean;
30
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=sku.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sku.js","sourceRoot":"","sources":["../../../lib/types/sku.ts"],"names":[],"mappings":""}
@@ -1,20 +0,0 @@
1
- import type { PrivacyLevel } from "../constants";
2
- /** https://discord.com/developers/docs/resources/stage-instance#stage-instance-object-stage-instance-structure */
3
- export interface RawStageInstance {
4
- id: string;
5
- guild_id: string;
6
- channel_id: string;
7
- topic: string;
8
- privacy_level: PrivacyLevel;
9
- discoverable_disabled: boolean;
10
- guild_scheduled_event_id: string | null;
11
- }
12
- export interface JSONStageInstance {
13
- id: string;
14
- guildId: string;
15
- channelId: string;
16
- topic: string;
17
- privacyLevel: PrivacyLevel;
18
- discoverableDisabled: boolean;
19
- guildScheduledEventId: string | null;
20
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=stage-instance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stage-instance.js","sourceRoot":"","sources":["../../../lib/types/stage-instance.ts"],"names":[],"mappings":""}
@@ -1,61 +0,0 @@
1
- import type { StickerTypes, StickerFormatTypes } from "../constants";
2
- import type { JSONUser, RawUser } from ".";
3
- /** https://discord.com/developers/docs/resources/sticker#sticker-object-sticker-structure */
4
- export interface RawSticker {
5
- id: string;
6
- pack_id?: string;
7
- name: string;
8
- description: string | null;
9
- tags: string;
10
- asset?: string;
11
- type: StickerTypes;
12
- format_type: StickerFormatTypes;
13
- available?: boolean;
14
- guild_id?: string;
15
- user?: RawUser;
16
- sort_value?: number;
17
- }
18
- /** https://discord.com/developers/docs/resources/sticker#sticker-item-object-sticker-item-structure */
19
- export interface RawStickerItem {
20
- id: string;
21
- name: string;
22
- format_type: StickerFormatTypes;
23
- }
24
- /** https://discord.com/developers/docs/resources/sticker#sticker-pack-object-sticker-pack-structure */
25
- export interface RawStickerPack {
26
- id: string;
27
- stickers: Array<RawSticker>;
28
- name: string;
29
- sku_id: string;
30
- cover_sticker_id?: string;
31
- description: string;
32
- banner_asset_id?: string;
33
- }
34
- export interface JSONSticker {
35
- id: string;
36
- packId?: string;
37
- name: string;
38
- description: string | null;
39
- tags: string;
40
- asset?: string;
41
- type: StickerTypes;
42
- formatType: StickerFormatTypes;
43
- available?: boolean;
44
- guildId?: string;
45
- user?: JSONUser;
46
- sortValue?: number;
47
- }
48
- export interface JSONStickerItem {
49
- id: string;
50
- name: string;
51
- formatType: StickerFormatTypes;
52
- }
53
- export interface JSONStickerPack {
54
- id: string;
55
- stickers: Array<JSONSticker>;
56
- name: string;
57
- skuId: string;
58
- coverStickerId?: string;
59
- description: string;
60
- bannerAssetId?: string;
61
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=sticker.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sticker.js","sourceRoot":"","sources":["../../../lib/types/sticker.ts"],"names":[],"mappings":""}
@@ -1,30 +0,0 @@
1
- import type { JSONUser, RawUser } from ".";
2
- import type { TeamMemberRoleTypes } from "../constants";
3
- /** https://discord.com/developers/docs/topics/teams#data-models-team-object */
4
- export interface RawTeam {
5
- icon: string | null;
6
- id: string;
7
- members: Array<RawTeamMember>;
8
- name: string;
9
- owner_user_id: string;
10
- }
11
- /** https://discord.com/developers/docs/topics/teams#data-models-team-member-object */
12
- export interface RawTeamMember {
13
- membership_state: number;
14
- team_id: string;
15
- user: RawUser;
16
- role: TeamMemberRoleTypes;
17
- }
18
- export interface JSONTeam {
19
- icon: string | null;
20
- id: string;
21
- members: Array<JSONTeamMember>;
22
- name: string;
23
- ownerUserId: string;
24
- }
25
- export interface JSONTeamMember {
26
- membershipState: number;
27
- teamId: string;
28
- user: JSONUser;
29
- role: TeamMemberRoleTypes;
30
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=team.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"team.js","sourceRoot":"","sources":["../../../lib/types/team.ts"],"names":[],"mappings":""}
@@ -1,77 +0,0 @@
1
- import type { UserFlags, Services, VisibilityTypes, PremiumTypes } from "../constants";
2
- import type { JSONApplicationRoleConnectionMetadata, JSONIntegration, RawApplicationRoleConnectionMetadata, RawIntegration } from ".";
3
- /** https://discord.com/developers/docs/resources/user#user-object-user-structure */
4
- export interface RawUser {
5
- id: string;
6
- username: string;
7
- discriminator: string;
8
- global_name: string | null;
9
- avatar: string;
10
- bot?: boolean;
11
- system?: boolean;
12
- mfa_enabled?: boolean;
13
- banner?: string;
14
- accent_color?: number;
15
- locale?: string;
16
- verified?: boolean;
17
- email?: string;
18
- flags?: UserFlags;
19
- premium_type?: PremiumTypes;
20
- public_flags?: UserFlags;
21
- avatar_decoration?: string | null;
22
- }
23
- /** https://discord.com/developers/docs/resources/user#connection-object-connection-structure */
24
- export interface RawConnection {
25
- id: string;
26
- name: string;
27
- type: Services;
28
- revoked?: boolean;
29
- integrations?: Array<RawIntegration>;
30
- verified: boolean;
31
- friend_sync: boolean;
32
- show_activity: boolean;
33
- two_way_link: boolean;
34
- visibility: VisibilityTypes;
35
- }
36
- /** https://discord.com/developers/docs/resources/user#application-role-connection-object-application-role-connection-structure */
37
- export interface RawApplicationRoleConnection {
38
- platform_name: string | null;
39
- platform_username: string | null;
40
- metadata: RawApplicationRoleConnectionMetadata;
41
- }
42
- export interface JSONUser {
43
- id: string;
44
- username: string;
45
- discriminator: string;
46
- globalName: string | null;
47
- avatar: string;
48
- bot?: boolean;
49
- system?: boolean;
50
- mfaEnabled?: boolean;
51
- banner?: string;
52
- accentColor?: number;
53
- locale?: string;
54
- verified?: boolean;
55
- email?: string;
56
- flags?: UserFlags;
57
- premiumType?: PremiumTypes;
58
- publicFlags?: UserFlags;
59
- avatarDecoration?: string | null;
60
- }
61
- export interface JSONConnection {
62
- id: string;
63
- name: string;
64
- type: Services;
65
- revoked?: boolean;
66
- integrations?: Array<JSONIntegration>;
67
- verified: boolean;
68
- friendSync: boolean;
69
- showActivity: boolean;
70
- twoWayLink: boolean;
71
- visibility: VisibilityTypes;
72
- }
73
- export interface JSONApplicationRoleConnection {
74
- platformName: string | null;
75
- platformUsername: string | null;
76
- metadata: JSONApplicationRoleConnectionMetadata;
77
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=user.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.js","sourceRoot":"","sources":["../../../lib/types/user.ts"],"names":[],"mappings":""}