disgroove 1.3.3-dev.2 → 1.3.3-dev.3

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,224 +0,0 @@
1
- import type {
2
- RawAttachment,
3
- RawChannel,
4
- RawGuildMember,
5
- RawMessage,
6
- RawUser,
7
- RawRole,
8
- JSONAttachment,
9
- JSONUser,
10
- JSONGuildMember,
11
- JSONMessage,
12
- JSONRole,
13
- JSONChannel,
14
- JSONEntitlement,
15
- RawEntitlement,
16
- RawEmbed,
17
- RawAllowedMentions,
18
- RawActionRow,
19
- RawApplicationCommandOptionChoice,
20
- JSONEmbed,
21
- JSONAllowedMentions,
22
- JSONActionRow,
23
- JSONApplicationCommandOptionChoice,
24
- RawTextInput,
25
- JSONTextInput,
26
- } from ".";
27
- import type {
28
- ApplicationCommandOptionType,
29
- ApplicationCommandTypes,
30
- ComponentTypes,
31
- InteractionCallbackType,
32
- InteractionType,
33
- MessageFlags,
34
- } from "../constants";
35
- import type { File } from "../rest";
36
-
37
- /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-structure */
38
- export interface RawInteraction {
39
- id: string;
40
- application_id: string;
41
- type: InteractionType;
42
- data?: RawApplicationCommandData &
43
- RawMessageComponentData &
44
- RawModalSubmitData;
45
- guild_id?: string;
46
- channel?: RawChannel;
47
- channel_id?: string;
48
- member?: RawGuildMember;
49
- user?: RawUser;
50
- token: string;
51
- version: number;
52
- message?: RawMessage;
53
- app_permissions?: string;
54
- locale?: string;
55
- guild_locale?: string;
56
- entitlements: Array<RawEntitlement>;
57
- }
58
-
59
- /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-application-command-data-structure */
60
- export interface RawApplicationCommandData {
61
- id: string;
62
- name: string;
63
- type: ApplicationCommandTypes;
64
- resolved?: RawResolvedData;
65
- options?: Array<RawApplicationCommandInteractionDataOption>;
66
- guild_id?: string;
67
- target_id?: string;
68
- }
69
-
70
- /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-message-component-data-structure */
71
- export interface RawMessageComponentData {
72
- custom_id: string;
73
- component_type: ComponentTypes;
74
- values?: Array<string>;
75
- resolved?: RawResolvedData;
76
- }
77
-
78
- /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-modal-submit-data-structure */
79
- export interface RawModalSubmitData {
80
- custom_id: string;
81
- components: Array<{
82
- type: ComponentTypes.ActionRow;
83
- components: Array<RawTextInput>;
84
- }>;
85
- }
86
-
87
- /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-resolved-data-structure */
88
- export interface RawResolvedData {
89
- users?: Record<string, RawUser>;
90
- members?: Record<string, RawGuildMember>;
91
- roles?: Record<string, RawRole>;
92
- channels?: Record<string, RawChannel>;
93
- messages?: Record<string, RawMessage>;
94
- attachments?: Record<string, RawAttachment>;
95
- }
96
-
97
- /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-application-command-interaction-data-option-structure */
98
- export interface RawApplicationCommandInteractionDataOption {
99
- name: string;
100
- type: ApplicationCommandOptionType;
101
- value?: string | number | boolean;
102
- options?: Array<RawApplicationCommandInteractionDataOption>;
103
- focused?: boolean;
104
- }
105
-
106
- /** https://discord.com/developers/docs/interactions/receiving-and-responding#message-interaction-object-message-interaction-structure */
107
- export interface RawMessageInteraction {
108
- id: string;
109
- type: InteractionType;
110
- name: string;
111
- user: RawUser;
112
- member?: RawGuildMember;
113
- }
114
-
115
- /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-response-structure */
116
- export interface RawInteractionResponse {
117
- type: InteractionCallbackType;
118
- data?: RawInteractionCallbackData;
119
- }
120
-
121
- /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-data-structure */
122
- export interface RawInteractionCallbackData {
123
- tts?: boolean;
124
- content?: string;
125
- embeds?: Array<RawEmbed>;
126
- allowed_mentions?: RawAllowedMentions;
127
- flags?: MessageFlags;
128
- components?: Array<RawActionRow>;
129
- attachments?: Array<RawAttachment>;
130
- files?: Array<File>;
131
- choices?: Array<RawApplicationCommandOptionChoice>;
132
- custom_id?: string;
133
- title?: string;
134
- }
135
-
136
- export interface JSONInteraction {
137
- id: string;
138
- applicationId: string;
139
- type: InteractionType;
140
- data?: JSONApplicationCommandData &
141
- JSONMessageComponentData &
142
- JSONModalSubmitData;
143
- guildId?: string;
144
- channel?: JSONChannel;
145
- channelId?: string;
146
- member?: JSONGuildMember;
147
- user?: JSONUser;
148
- token: string;
149
- version: number;
150
- message?: JSONMessage;
151
- appPermissions?: string;
152
- locale?: string;
153
- guildLocale?: string;
154
- entitlements: Array<JSONEntitlement>;
155
- }
156
-
157
- export interface JSONApplicationCommandData {
158
- id: string;
159
- name: string;
160
- type: ApplicationCommandTypes;
161
- resolved?: JSONResolvedData;
162
- options?: Array<JSONApplicationCommandInteractionDataOption>;
163
- guildId?: string;
164
- targetId?: string;
165
- }
166
-
167
- export interface JSONMessageComponentData {
168
- customId: string;
169
- componentType: ComponentTypes;
170
- values?: Array<string>;
171
- resolved?: JSONResolvedData;
172
- }
173
-
174
- export interface JSONModalSubmitData {
175
- customId: string;
176
- components: Array<{
177
- type: ComponentTypes.ActionRow;
178
- components: Array<JSONTextInput>;
179
- }>;
180
- }
181
-
182
- export interface JSONResolvedData {
183
- users?: Map<string, JSONUser>;
184
- members?: Map<string, JSONGuildMember>;
185
- roles?: Map<string, JSONRole>;
186
- channels?: Map<string, JSONChannel>;
187
- messages?: Map<string, JSONMessage>;
188
- attachments?: Map<string, JSONAttachment>;
189
- }
190
-
191
- export interface JSONApplicationCommandInteractionDataOption {
192
- name: string;
193
- type: ApplicationCommandOptionType;
194
- value?: string | number | boolean;
195
- options?: Array<JSONApplicationCommandInteractionDataOption>;
196
- focused?: boolean;
197
- }
198
-
199
- export interface JSONMessageInteraction {
200
- id: string;
201
- type: InteractionType;
202
- name: string;
203
- user: JSONUser;
204
- member?: JSONGuildMember;
205
- }
206
-
207
- export interface JSONInteractionResponse {
208
- type: InteractionCallbackType;
209
- data?: JSONInteractionCallbackData;
210
- }
211
-
212
- export interface JSONInteractionCallbackData {
213
- tts?: boolean;
214
- content?: string;
215
- embeds?: Array<JSONEmbed>;
216
- allowedMentions?: JSONAllowedMentions;
217
- flags?: MessageFlags;
218
- components?: Array<JSONActionRow>;
219
- attachments?: Array<JSONAttachment>;
220
- files?: Array<File>;
221
- choices?: Array<JSONApplicationCommandOptionChoice>;
222
- customId?: string;
223
- title?: string;
224
- }
@@ -1,78 +0,0 @@
1
- import type {
2
- JSONApplication,
3
- JSONChannel,
4
- JSONGuild,
5
- JSONGuildMember,
6
- JSONGuildScheduledEvent,
7
- JSONUser,
8
- RawApplication,
9
- RawChannel,
10
- RawGuild,
11
- RawGuildMember,
12
- RawGuildScheduledEvent,
13
- RawUser,
14
- } from ".";
15
- import type { InviteTargetTypes } from "../constants";
16
-
17
- /** https://discord.com/developers/docs/resources/invite#invite-object-invite-structure */
18
- export interface RawInvite {
19
- code: string;
20
- guild?: RawGuild;
21
- channel: RawChannel;
22
- inviter?: RawUser;
23
- target_type?: InviteTargetTypes;
24
- target_user?: RawUser;
25
- target_application?: RawApplication;
26
- approximate_presence_count?: number;
27
- approximate_member_count?: number;
28
- expires_at?: string | null;
29
- stage_instance?: RawInviteStageInstance;
30
- guild_scheduled_event?: RawGuildScheduledEvent;
31
- }
32
-
33
- /** https://discord.com/developers/docs/resources/invite#invite-metadata-object-invite-metadata-structure */
34
- export interface RawInviteMetadata {
35
- uses: number;
36
- max_uses: number;
37
- max_age: number;
38
- temporary: boolean;
39
- created_at: string;
40
- }
41
-
42
- /** https://discord.com/developers/docs/resources/invite#invite-stage-instance-object-invite-stage-instance-structure */
43
- export interface RawInviteStageInstance {
44
- members: Array<RawGuildMember>;
45
- participant_count: number;
46
- speaker_count: number;
47
- topic: string;
48
- }
49
-
50
- export interface JSONInvite {
51
- code: string;
52
- guild?: JSONGuild;
53
- channel: JSONChannel;
54
- inviter?: JSONUser;
55
- targetType?: InviteTargetTypes;
56
- targetUser?: JSONUser;
57
- targetApplication?: JSONApplication;
58
- approximatePresenceCount?: number;
59
- approximateMemberCount?: number;
60
- expiresAt?: string | null;
61
- stageInstance?: JSONInviteStageInstance;
62
- guildScheduledEvent?: JSONGuildScheduledEvent;
63
- }
64
-
65
- export interface JSONInviteMetadata {
66
- uses: number;
67
- maxUses: number;
68
- maxAge: number;
69
- temporary: boolean;
70
- createdAt: string;
71
- }
72
-
73
- export interface JSONInviteStageInstance {
74
- members: Array<JSONGuildMember>;
75
- participantCount: number;
76
- speakerCount: number;
77
- topic: string;
78
- }
@@ -1,127 +0,0 @@
1
- import type { JSONEmoji, RawEmoji } from ".";
2
- import type {
3
- ButtonStyles,
4
- ChannelTypes,
5
- ComponentTypes,
6
- TextInputStyles,
7
- } from "../constants";
8
-
9
- /** https://discord.com/developers/docs/interactions/message-components#button-object-button-structure */
10
- export interface RawButton {
11
- type: ComponentTypes.Button;
12
- style: ButtonStyles;
13
- label?: string;
14
- emoji?: Pick<RawEmoji, "name" | "id" | "animated">;
15
- custom_id?: string;
16
- url?: string;
17
- disabled?: boolean;
18
- }
19
-
20
- /** https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-menu-structure */
21
- export interface RawSelectMenu {
22
- type:
23
- | ComponentTypes.ChannelSelect
24
- | ComponentTypes.MentionableSelect
25
- | ComponentTypes.RoleSelect
26
- | ComponentTypes.StringSelect
27
- | ComponentTypes.UserSelect;
28
- custom_id: string;
29
- options?: Array<RawSelectOption>;
30
- channel_types?: Array<ChannelTypes>;
31
- placeholder?: string;
32
- default_values?: Array<RawDefaultValue>;
33
- min_values?: number;
34
- max_values?: number;
35
- disabled?: boolean;
36
- }
37
-
38
- /** https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-option-structure */
39
- export interface RawSelectOption {
40
- label: string;
41
- value: string;
42
- description?: string;
43
- emoji?: Pick<RawEmoji, "name" | "id" | "animated">;
44
- default?: boolean;
45
- }
46
-
47
- /** https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-default-value-structure */
48
- export interface RawDefaultValue {
49
- id: string;
50
- type: string;
51
- }
52
-
53
- /** https://discord.com/developers/docs/interactions/message-components#text-inputs-text-input-structure */
54
- export interface RawTextInput {
55
- type: ComponentTypes.TextInput;
56
- custom_id: string;
57
- style: TextInputStyles;
58
- label: string;
59
- min_length?: number;
60
- max_length?: number;
61
- required?: boolean;
62
- value?: string;
63
- placeholder?: string;
64
- }
65
-
66
- /** https://discord.com/developers/docs/interactions/message-components#action-rows */
67
- export interface RawActionRow {
68
- type: ComponentTypes.ActionRow;
69
- components: Array<RawButton | RawSelectMenu | RawTextInput>;
70
- }
71
-
72
- export interface JSONButton {
73
- type: ComponentTypes.Button;
74
- style: ButtonStyles;
75
- label?: string;
76
- emoji?: Pick<JSONEmoji, "name" | "id" | "animated">;
77
- customId?: string;
78
- url?: string;
79
- disabled?: boolean;
80
- }
81
-
82
- export interface JSONSelectMenu {
83
- type:
84
- | ComponentTypes.ChannelSelect
85
- | ComponentTypes.MentionableSelect
86
- | ComponentTypes.RoleSelect
87
- | ComponentTypes.StringSelect
88
- | ComponentTypes.UserSelect;
89
- customId: string;
90
- options?: Array<JSONSelectOption>;
91
- channelTypes?: Array<ChannelTypes>;
92
- placeholder?: string;
93
- defaultValues?: Array<JSONDefaultValue>;
94
- minValues?: number;
95
- maxValues?: number;
96
- disabled?: boolean;
97
- }
98
-
99
- export interface JSONSelectOption {
100
- label: string;
101
- value: string;
102
- description?: string;
103
- emoji?: Pick<JSONEmoji, "name" | "id" | "animated">;
104
- default?: boolean;
105
- }
106
-
107
- export interface JSONDefaultValue {
108
- id: string;
109
- type: string;
110
- }
111
-
112
- export interface JSONTextInput {
113
- type: ComponentTypes.TextInput;
114
- customId: string;
115
- style: TextInputStyles;
116
- label: string;
117
- minLength?: number;
118
- maxLength?: number;
119
- required?: boolean;
120
- value?: string;
121
- placeholder?: string;
122
- }
123
-
124
- export interface JSONActionRow {
125
- type: ComponentTypes.ActionRow;
126
- components: Array<JSONButton | JSONSelectMenu | JSONTextInput>;
127
- }
package/lib/types/role.ts DELETED
@@ -1,51 +0,0 @@
1
- import type { RoleFlags } from "../constants";
2
-
3
- /** https://discord.com/developers/docs/topics/permissions#role-object-role-structure */
4
- export interface RawRole {
5
- id: string;
6
- name: string;
7
- color: number;
8
- hoist: boolean;
9
- icon?: string | null;
10
- unicode_emoji?: string | null;
11
- position: number;
12
- permissions: string;
13
- managed: boolean;
14
- mentionable: boolean;
15
- tags?: RawRoleTags;
16
- flags: RoleFlags;
17
- }
18
-
19
- /** https://discord.com/developers/docs/topics/permissions#role-object-role-tags-structure */
20
- export interface RawRoleTags {
21
- bot_id?: string;
22
- integration_id?: string;
23
- premium_subscriber?: null;
24
- subscription_listing_id?: string;
25
- available_for_purchase?: null;
26
- guild_connections?: null;
27
- }
28
-
29
- export interface JSONRole {
30
- id: string;
31
- name: string;
32
- color: number;
33
- hoist: boolean;
34
- icon?: string | null;
35
- unicodeEmoji?: string | null;
36
- position: number;
37
- permissions: string;
38
- managed: boolean;
39
- mentionable: boolean;
40
- tags?: JSONRoleTags;
41
- flags: RoleFlags;
42
- }
43
-
44
- export interface JSONRoleTags {
45
- botId?: string;
46
- integrationId?: string;
47
- premiumSubscriber?: null;
48
- subscriptionListingId?: string;
49
- availableForPurchase?: null;
50
- guildConnections?: null;
51
- }
package/lib/types/sku.ts DELETED
@@ -1,32 +0,0 @@
1
- import type { SKUFlags, SKUTypes } from "../constants";
2
-
3
- /** https://discord.com/developers/docs/monetization/skus#sku-object-sku-structure */
4
- export interface RawSKU {
5
- id: string;
6
- type: SKUTypes;
7
- dependent_sku_id?: string | null; // Undocumented
8
- application_id: string;
9
- manifest_labels?: null; // Undocumented
10
- access_type?: number; // Undocumented
11
- name: string;
12
- features?: []; // Undocumented
13
- release_date?: null; // Undocumented
14
- slug: string;
15
- flags: SKUFlags;
16
- show_age_gate?: boolean; // Undocumented
17
- }
18
-
19
- export interface JSONSKU {
20
- id: string;
21
- type: SKUTypes;
22
- dependentSKUId?: string | null; // Undocumented
23
- applicationId: string;
24
- manifestLabels?: null; // Undocumented
25
- accessType?: number; // Undocumented
26
- name: string;
27
- features?: []; // Undocumented
28
- releaseDate?: null; // Undocumented
29
- slug: string;
30
- flags: SKUFlags;
31
- showAgeGate?: boolean; // Undocumented
32
- }
@@ -1,22 +0,0 @@
1
- import type { PrivacyLevel } from "../constants";
2
-
3
- /** https://discord.com/developers/docs/resources/stage-instance#stage-instance-object-stage-instance-structure */
4
- export interface RawStageInstance {
5
- id: string;
6
- guild_id: string;
7
- channel_id: string;
8
- topic: string;
9
- privacy_level: PrivacyLevel;
10
- discoverable_disabled: boolean;
11
- guild_scheduled_event_id: string | null;
12
- }
13
-
14
- export interface JSONStageInstance {
15
- id: string;
16
- guildId: string;
17
- channelId: string;
18
- topic: string;
19
- privacyLevel: PrivacyLevel;
20
- discoverableDisabled: boolean;
21
- guildScheduledEventId: string | null;
22
- }
@@ -1,67 +0,0 @@
1
- import type { StickerTypes, StickerFormatTypes } from "../constants";
2
- import type { JSONUser, RawUser } from ".";
3
-
4
- /** https://discord.com/developers/docs/resources/sticker#sticker-object-sticker-structure */
5
- export interface RawSticker {
6
- id: string;
7
- pack_id?: string;
8
- name: string;
9
- description: string | null;
10
- tags: string;
11
- asset?: string;
12
- type: StickerTypes;
13
- format_type: StickerFormatTypes;
14
- available?: boolean;
15
- guild_id?: string;
16
- user?: RawUser;
17
- sort_value?: number;
18
- }
19
-
20
- /** https://discord.com/developers/docs/resources/sticker#sticker-item-object-sticker-item-structure */
21
- export interface RawStickerItem {
22
- id: string;
23
- name: string;
24
- format_type: StickerFormatTypes;
25
- }
26
-
27
- /** https://discord.com/developers/docs/resources/sticker#sticker-pack-object-sticker-pack-structure */
28
- export interface RawStickerPack {
29
- id: string;
30
- stickers: Array<RawSticker>;
31
- name: string;
32
- sku_id: string;
33
- cover_sticker_id?: string;
34
- description: string;
35
- banner_asset_id?: string;
36
- }
37
-
38
- export interface JSONSticker {
39
- id: string;
40
- packId?: string;
41
- name: string;
42
- description: string | null;
43
- tags: string;
44
- asset?: string;
45
- type: StickerTypes;
46
- formatType: StickerFormatTypes;
47
- available?: boolean;
48
- guildId?: string;
49
- user?: JSONUser;
50
- sortValue?: number;
51
- }
52
-
53
- export interface JSONStickerItem {
54
- id: string;
55
- name: string;
56
- formatType: StickerFormatTypes;
57
- }
58
-
59
- export interface JSONStickerPack {
60
- id: string;
61
- stickers: Array<JSONSticker>;
62
- name: string;
63
- skuId: string;
64
- coverStickerId?: string;
65
- description: string;
66
- bannerAssetId?: string;
67
- }
package/lib/types/team.ts DELETED
@@ -1,34 +0,0 @@
1
- import type { JSONUser, RawUser } from ".";
2
- import type { TeamMemberRoleTypes } from "../constants";
3
-
4
- /** https://discord.com/developers/docs/topics/teams#data-models-team-object */
5
- export interface RawTeam {
6
- icon: string | null;
7
- id: string;
8
- members: Array<RawTeamMember>;
9
- name: string;
10
- owner_user_id: string;
11
- }
12
-
13
- /** https://discord.com/developers/docs/topics/teams#data-models-team-member-object */
14
- export interface RawTeamMember {
15
- membership_state: number;
16
- team_id: string;
17
- user: RawUser;
18
- role: TeamMemberRoleTypes;
19
- }
20
-
21
- export interface JSONTeam {
22
- icon: string | null;
23
- id: string;
24
- members: Array<JSONTeamMember>;
25
- name: string;
26
- ownerUserId: string;
27
- }
28
-
29
- export interface JSONTeamMember {
30
- membershipState: number;
31
- teamId: string;
32
- user: JSONUser;
33
- role: TeamMemberRoleTypes;
34
- }