disgroove 2.0.0-dev.3a6f4ba → 2.0.0-dev.825fc77

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 (93) hide show
  1. package/dist/lib/Client.d.ts +560 -142
  2. package/dist/lib/Client.js +1794 -124
  3. package/dist/lib/Client.js.map +1 -1
  4. package/dist/lib/constants.d.ts +7 -7
  5. package/dist/lib/constants.js +218 -218
  6. package/dist/lib/gateway/Shard.d.ts +0 -1
  7. package/dist/lib/gateway/Shard.js +65 -261
  8. package/dist/lib/gateway/Shard.js.map +1 -1
  9. package/dist/lib/gateway/ShardManager.d.ts +1 -2
  10. package/dist/lib/gateway/ShardManager.js +1 -2
  11. package/dist/lib/gateway/ShardManager.js.map +1 -1
  12. package/dist/lib/index.d.ts +0 -1
  13. package/dist/lib/index.js +0 -1
  14. package/dist/lib/index.js.map +1 -1
  15. package/dist/lib/rest/Endpoints.d.ts +3 -3
  16. package/dist/lib/rest/Endpoints.js +8 -8
  17. package/dist/lib/rest/Endpoints.js.map +1 -1
  18. package/dist/lib/rest/RequestManager.d.ts +8 -2
  19. package/dist/lib/rest/RequestManager.js +17 -10
  20. package/dist/lib/rest/RequestManager.js.map +1 -1
  21. package/dist/lib/rest/index.d.ts +0 -1
  22. package/dist/lib/rest/index.js +0 -1
  23. package/dist/lib/rest/index.js.map +1 -1
  24. package/dist/lib/structures/Application.d.ts +93 -11
  25. package/dist/lib/structures/Application.js.map +1 -1
  26. package/dist/lib/structures/ApplicationCommand.d.ts +18 -6
  27. package/dist/lib/structures/ApplicationCommand.js.map +1 -1
  28. package/dist/lib/structures/AutoModerationRule.d.ts +11 -2
  29. package/dist/lib/structures/AutoModerationRule.js.map +1 -1
  30. package/dist/lib/structures/Channel.d.ts +108 -14
  31. package/dist/lib/structures/Channel.js +1 -1
  32. package/dist/lib/structures/Channel.js.map +1 -1
  33. package/dist/lib/structures/ClientApplication.d.ts +93 -11
  34. package/dist/lib/structures/ClientApplication.js.map +1 -1
  35. package/dist/lib/structures/Emoji.d.ts +5 -2
  36. package/dist/lib/structures/Emoji.js.map +1 -1
  37. package/dist/lib/structures/Guild.d.ts +234 -31
  38. package/dist/lib/structures/Guild.js.map +1 -1
  39. package/dist/lib/structures/GuildMember.d.ts +14 -3
  40. package/dist/lib/structures/GuildMember.js.map +1 -1
  41. package/dist/lib/structures/GuildScheduledEvent.d.ts +13 -2
  42. package/dist/lib/structures/GuildScheduledEvent.js.map +1 -1
  43. package/dist/lib/structures/GuildTemplate.d.ts +5 -2
  44. package/dist/lib/structures/GuildTemplate.js.map +1 -1
  45. package/dist/lib/structures/Interaction.d.ts +32 -7
  46. package/dist/lib/structures/Interaction.js.map +1 -1
  47. package/dist/lib/structures/Message.d.ts +16 -3
  48. package/dist/lib/structures/Message.js.map +1 -1
  49. package/dist/lib/structures/Role.d.ts +10 -2
  50. package/dist/lib/structures/Role.js.map +1 -1
  51. package/dist/lib/structures/StageInstance.d.ts +5 -2
  52. package/dist/lib/structures/StageInstance.js.map +1 -1
  53. package/dist/lib/structures/Sticker.d.ts +6 -2
  54. package/dist/lib/structures/Sticker.js.map +1 -1
  55. package/dist/lib/structures/User.d.ts +28 -9
  56. package/dist/lib/structures/User.js +3 -3
  57. package/dist/lib/structures/User.js.map +1 -1
  58. package/dist/lib/structures/Webhook.d.ts +35 -9
  59. package/dist/lib/structures/Webhook.js +14 -3
  60. package/dist/lib/structures/Webhook.js.map +1 -1
  61. package/dist/lib/types/application-command.d.ts +21 -21
  62. package/dist/lib/types/application-role-connection-metadata.d.ts +1 -1
  63. package/dist/lib/types/application.d.ts +17 -17
  64. package/dist/lib/types/audit-log.d.ts +15 -16
  65. package/dist/lib/types/auto-moderation.d.ts +11 -11
  66. package/dist/lib/types/channel.d.ts +83 -83
  67. package/dist/lib/types/emoji.d.ts +3 -3
  68. package/dist/lib/types/entitlements.d.ts +1 -1
  69. package/dist/lib/types/gateway-events.d.ts +11 -336
  70. package/dist/lib/types/guild-scheduled-event.d.ts +10 -10
  71. package/dist/lib/types/guild-template.d.ts +4 -4
  72. package/dist/lib/types/guild.d.ts +44 -45
  73. package/dist/lib/types/interaction.d.ts +37 -37
  74. package/dist/lib/types/invite.d.ts +12 -12
  75. package/dist/lib/types/message-components.d.ts +12 -12
  76. package/dist/lib/types/role.d.ts +3 -3
  77. package/dist/lib/types/sku.d.ts +8 -8
  78. package/dist/lib/types/stage-instance.d.ts +1 -1
  79. package/dist/lib/types/sticker.d.ts +6 -6
  80. package/dist/lib/types/team.d.ts +5 -5
  81. package/dist/lib/types/user.d.ts +6 -6
  82. package/dist/lib/types/voice.d.ts +4 -4
  83. package/dist/lib/types/webhook.d.ts +14 -14
  84. package/dist/lib/utils/Util.d.ts +0 -13
  85. package/dist/lib/utils/Util.js +0 -536
  86. package/dist/lib/utils/Util.js.map +1 -1
  87. package/dist/lib/utils/errors.d.ts +1 -1
  88. package/dist/lib/utils/errors.js +4 -4
  89. package/dist/lib/utils/index.d.ts +0 -1
  90. package/dist/lib/utils/index.js +0 -1
  91. package/dist/lib/utils/index.js.map +1 -1
  92. package/dist/package.json +1 -1
  93. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import type { AllowedMentionTypes, AttachmentFlags, ChannelFlags, ChannelTypes, ForumLayoutTypes, InviteTargetTypes, MessageActivityTypes, MessageFlags, MessageTypes, SortOrderTypes, VideoQualityModes } from "../constants";
2
- import type { RawApplication, RawGuildMember, RawUser, RawEmoji, RawSticker, RawStickerItem, RawMessageInteraction, JSONMessageInteraction, JSONStickerItem, JSONSticker, JSONEmoji, JSONUser, JSONApplication, JSONGuildMember, RawActionRow, JSONActionRow, RawResolvedData, JSONResolvedData } from ".";
2
+ import type { RawApplication, RawGuildMember, RawUser, RawEmoji, RawSticker, RawStickerItem, RawMessageInteraction, MessageInteraction, StickerItem, Sticker, Emoji, User, Application, GuildMember, RawActionRow, ActionRow, RawResolvedData, ResolvedData } from ".";
3
3
  import type { File } from "../rest";
4
4
  /** https://discord.com/developers/docs/resources/channel#channel-object-channel-structure */
5
5
  export interface RawChannel {
@@ -240,12 +240,12 @@ export interface RawRoleSubscriptionData {
240
240
  total_months_subscribed: number;
241
241
  is_renewal: boolean;
242
242
  }
243
- export interface JSONChannel {
243
+ export interface Channel {
244
244
  id: string;
245
245
  type: ChannelTypes;
246
246
  guildId?: string;
247
247
  position?: number;
248
- permissionOverwrites?: Array<JSONOverwrite>;
248
+ permissionOverwrites?: Array<Overwrite>;
249
249
  name?: string | null;
250
250
  topic?: string | null;
251
251
  nsfw?: boolean;
@@ -253,7 +253,7 @@ export interface JSONChannel {
253
253
  bitrate?: number;
254
254
  userLimit?: number;
255
255
  rateLimitPerUser?: number;
256
- recipients?: Array<JSONUser>;
256
+ recipients?: Array<User>;
257
257
  icon?: string | null;
258
258
  ownerId?: string;
259
259
  applicationId?: string;
@@ -264,86 +264,86 @@ export interface JSONChannel {
264
264
  videoQualityMode?: VideoQualityModes;
265
265
  messageCount?: number;
266
266
  memberCount?: number;
267
- threadMetadata?: JSONThreadMetadata;
268
- member?: JSONThreadMember;
267
+ threadMetadata?: ThreadMetadata;
268
+ member?: ThreadMember;
269
269
  defaultAutoArchiveDuration?: number;
270
270
  permissions?: string;
271
271
  flags?: ChannelFlags;
272
272
  totalMessageSent?: number;
273
- availableTags?: Array<JSONForumTag>;
273
+ availableTags?: Array<ForumTag>;
274
274
  appliedTags?: Array<string>;
275
- defaultReactionEmoji?: JSONDefaultReaction | null;
275
+ defaultReactionEmoji?: DefaultReaction | null;
276
276
  defaultThreadRateLimitPerUser?: number;
277
277
  defaultSortOrder?: SortOrderTypes | null;
278
278
  defaultForumLayout?: ForumLayoutTypes;
279
279
  }
280
- export interface JSONMessage {
280
+ export interface Message {
281
281
  id: string;
282
282
  channelId: string;
283
- author: JSONUser;
283
+ author: User;
284
284
  content: string;
285
285
  timestamp: string;
286
286
  editedTimestamp: string | null;
287
287
  tts: boolean;
288
288
  mentionEveryone: boolean;
289
- mentions: Array<JSONUser>;
289
+ mentions: Array<User>;
290
290
  mentionRoles: Array<string>;
291
- mentionChannels?: Array<JSONChannelMention>;
292
- attachments: Array<JSONAttachment>;
293
- embeds: Array<JSONEmbed>;
294
- reactions?: Array<JSONReaction>;
291
+ mentionChannels?: Array<ChannelMention>;
292
+ attachments: Array<Attachment>;
293
+ embeds: Array<Embed>;
294
+ reactions?: Array<Reaction>;
295
295
  nonce?: number | string;
296
296
  pinned: boolean;
297
297
  webhookId?: string;
298
298
  type: MessageTypes;
299
- activity?: JSONMessageActivity;
300
- application?: JSONApplication;
299
+ activity?: MessageActivity;
300
+ application?: Application;
301
301
  applicationId?: string;
302
- messageReference?: JSONMessageReference;
302
+ messageReference?: MessageReference;
303
303
  flags?: MessageFlags;
304
- referencedMessage?: JSONMessage | null;
305
- interaction?: JSONMessageInteraction;
306
- thread?: JSONChannel;
307
- components?: Array<JSONActionRow>;
308
- stickerItems?: Array<JSONStickerItem>;
309
- stickers?: Array<JSONSticker>;
304
+ referencedMessage?: Message | null;
305
+ interaction?: MessageInteraction;
306
+ thread?: Channel;
307
+ components?: Array<ActionRow>;
308
+ stickerItems?: Array<StickerItem>;
309
+ stickers?: Array<Sticker>;
310
310
  position?: number;
311
- roleSubscriptionData?: JSONRoleSubscriptionData;
312
- resolved?: JSONResolvedData;
311
+ roleSubscriptionData?: RoleSubscriptionData;
312
+ resolved?: ResolvedData;
313
313
  }
314
- export interface JSONMessageActivity {
314
+ export interface MessageActivity {
315
315
  type: MessageActivityTypes;
316
316
  partyId?: string;
317
317
  }
318
- export interface JSONMessageReference {
318
+ export interface MessageReference {
319
319
  messageId?: string;
320
320
  channelId?: string;
321
321
  guildId?: string;
322
322
  failIfNotExists?: boolean;
323
323
  }
324
- export interface JSONFollowedChannel {
324
+ export interface FollowedChannel {
325
325
  channelId: string;
326
326
  webhookId: string;
327
327
  }
328
- export interface JSONReaction {
328
+ export interface Reaction {
329
329
  count: number;
330
- countDetails: JSONReactionCountDetails;
330
+ countDetails: ReactionCountDetails;
331
331
  me: boolean;
332
332
  meBurst: boolean;
333
- emoji: JSONEmoji;
333
+ emoji: Emoji;
334
334
  burstColors: Array<string>;
335
335
  }
336
- export interface JSONReactionCountDetails {
336
+ export interface ReactionCountDetails {
337
337
  burst: number;
338
338
  normal: number;
339
339
  }
340
- export interface JSONOverwrite {
340
+ export interface Overwrite {
341
341
  id: string;
342
342
  type: number;
343
343
  allow: string;
344
344
  deny: string;
345
345
  }
346
- export interface JSONThreadMetadata {
346
+ export interface ThreadMetadata {
347
347
  archived: boolean;
348
348
  autoArchiveDuration: number;
349
349
  archiveTimestamp: string;
@@ -351,85 +351,85 @@ export interface JSONThreadMetadata {
351
351
  invitable?: boolean;
352
352
  createTimestamp?: string | null;
353
353
  }
354
- export interface JSONThreadMember {
354
+ export interface ThreadMember {
355
355
  id?: string;
356
356
  userId?: string;
357
357
  joinTimestamp: string;
358
358
  flags: number;
359
- member?: JSONGuildMember;
359
+ member?: GuildMember;
360
360
  }
361
- export interface JSONDefaultReaction {
361
+ export interface DefaultReaction {
362
362
  emojiId: string | null;
363
363
  emojiName: string | null;
364
364
  }
365
- export interface JSONForumTag {
365
+ export interface ForumTag {
366
366
  id: string;
367
367
  name: string;
368
368
  moderated: boolean;
369
369
  emojiId?: string;
370
370
  emojiName?: string;
371
371
  }
372
- export interface JSONEmbed {
372
+ export interface Embed {
373
373
  title?: string;
374
374
  type?: string;
375
375
  description?: string;
376
376
  url?: string;
377
377
  timestamp?: string;
378
378
  color?: number;
379
- footer?: JSONEmbedFooter;
380
- image?: JSONEmbedImage;
381
- thumbnail?: JSONEmbedThumbnail;
382
- video?: JSONEmbedVideo;
383
- provider?: JSONEmbedProvider;
384
- author?: JSONEmbedAuthor;
385
- fields?: Array<JSONEmbedField>;
386
- }
387
- export interface JSONEmbedThumbnail {
379
+ footer?: EmbedFooter;
380
+ image?: EmbedImage;
381
+ thumbnail?: EmbedThumbnail;
382
+ video?: EmbedVideo;
383
+ provider?: EmbedProvider;
384
+ author?: EmbedAuthor;
385
+ fields?: Array<EmbedField>;
386
+ }
387
+ export interface EmbedThumbnail {
388
388
  url: string;
389
- proxyURL?: string;
389
+ proxyUrl?: string;
390
390
  height?: number;
391
391
  width?: number;
392
392
  }
393
- export interface JSONEmbedVideo {
393
+ export interface EmbedVideo {
394
394
  url?: string;
395
- proxyURL?: string;
395
+ proxyUrl?: string;
396
396
  height?: number;
397
397
  width?: number;
398
398
  }
399
- export interface JSONEmbedImage {
399
+ export interface EmbedImage {
400
400
  url: string;
401
- proxyURL?: string;
401
+ proxyUrl?: string;
402
402
  height?: number;
403
403
  width?: number;
404
404
  }
405
- export interface JSONEmbedProvider {
405
+ export interface EmbedProvider {
406
406
  name?: string;
407
407
  url?: string;
408
408
  }
409
- export interface JSONEmbedAuthor {
409
+ export interface EmbedAuthor {
410
410
  name: string;
411
411
  url?: string;
412
- iconURL?: string;
413
- proxyIconURL?: string;
412
+ iconUrl?: string;
413
+ proxyIconUrl?: string;
414
414
  }
415
- export interface JSONEmbedFooter {
415
+ export interface EmbedFooter {
416
416
  text: string;
417
- iconURL?: string;
418
- proxyIconURL?: string;
417
+ iconUrl?: string;
418
+ proxyIconUrl?: string;
419
419
  }
420
- export interface JSONEmbedField {
420
+ export interface EmbedField {
421
421
  name: string;
422
422
  value: string;
423
423
  inline?: boolean;
424
424
  }
425
- export interface JSONAttachment {
425
+ export interface Attachment {
426
426
  id: string;
427
427
  filename: string;
428
428
  description?: string;
429
429
  contentType?: string;
430
430
  size: number;
431
431
  url: string;
432
- proxyURL: string;
432
+ proxyUrl: string;
433
433
  height?: number;
434
434
  width?: number;
435
435
  ephemeral?: boolean;
@@ -437,19 +437,19 @@ export interface JSONAttachment {
437
437
  waveform?: boolean;
438
438
  flags?: AttachmentFlags;
439
439
  }
440
- export interface JSONChannelMention {
440
+ export interface ChannelMention {
441
441
  id: string;
442
442
  guildId: string;
443
443
  type: ChannelTypes;
444
444
  name: string;
445
445
  }
446
- export interface JSONAllowedMentions {
446
+ export interface AllowedMentions {
447
447
  parse: Array<AllowedMentionTypes>;
448
448
  roles: Array<string>;
449
449
  users: Array<string>;
450
450
  repliedUser: boolean;
451
451
  }
452
- export interface JSONRoleSubscriptionData {
452
+ export interface RoleSubscriptionData {
453
453
  roleSubscriptionListingId: string;
454
454
  tierName: string;
455
455
  totalMonthsSubscribed: number;
@@ -465,14 +465,14 @@ export interface EditChannelParams {
465
465
  rateLimitPerUser?: number | null;
466
466
  bitrate?: number | null;
467
467
  userLimit?: number | null;
468
- permissionOverwrites?: Array<JSONOverwrite> | null;
468
+ permissionOverwrites?: Array<Overwrite> | null;
469
469
  parentId?: string | null;
470
470
  rtcRegion?: string | null;
471
471
  videoQualityMode?: VideoQualityModes | null;
472
472
  defaultAutoArchiveDuration?: number | null;
473
473
  flags?: ChannelFlags;
474
- availableTags?: Array<JSONForumTag>;
475
- defaultReactionEmoji?: JSONDefaultReaction | null;
474
+ availableTags?: Array<ForumTag>;
475
+ defaultReactionEmoji?: DefaultReaction | null;
476
476
  defaultThreadRateLimitPerUser?: number;
477
477
  defaultSortOrder?: SortOrderTypes | null;
478
478
  defaultForumLayout?: ForumLayoutTypes;
@@ -486,24 +486,24 @@ export interface CreateMessageParams {
486
486
  content?: string;
487
487
  nonce?: string | number;
488
488
  tts?: boolean;
489
- embeds?: Array<JSONEmbed>;
490
- allowedMentions?: JSONAllowedMentions;
491
- messageReference?: JSONMessageReference;
492
- components?: Array<JSONActionRow>;
489
+ embeds?: Array<Embed>;
490
+ allowedMentions?: AllowedMentions;
491
+ messageReference?: MessageReference;
492
+ components?: Array<ActionRow>;
493
493
  stickersIds?: Array<string>;
494
494
  files?: Array<File>;
495
- attachments?: Array<JSONAttachment>;
495
+ attachments?: Array<Attachment>;
496
496
  flags?: MessageFlags;
497
497
  enforceNonce?: boolean;
498
498
  }
499
499
  export interface EditMessageParams {
500
500
  content?: string | null;
501
- embeds?: Array<JSONEmbed> | null;
501
+ embeds?: Array<Embed> | null;
502
502
  flags?: MessageFlags | null;
503
- allowedMentions?: JSONAllowedMentions | null;
504
- components?: Array<JSONActionRow> | null;
503
+ allowedMentions?: AllowedMentions | null;
504
+ components?: Array<ActionRow> | null;
505
505
  files?: Array<File> | null;
506
- attachments?: Array<JSONAttachment> | null;
506
+ attachments?: Array<Attachment> | null;
507
507
  }
508
508
  export interface BulkDeleteMessagesParams {
509
509
  messages: Array<string>;
@@ -547,10 +547,10 @@ export interface CreateThreadParams {
547
547
  rateLimitPerUser?: number | null;
548
548
  message: {
549
549
  content?: string | null;
550
- embeds?: Array<JSONEmbed> | null;
551
- allowedMentions?: JSONAllowedMentions | null;
552
- components?: Array<JSONActionRow> | null;
553
- attachments?: Array<JSONAttachment> | null;
550
+ embeds?: Array<Embed> | null;
551
+ allowedMentions?: AllowedMentions | null;
552
+ components?: Array<ActionRow> | null;
553
+ attachments?: Array<Attachment> | null;
554
554
  flags?: MessageFlags | null;
555
555
  };
556
556
  appliedTags?: Array<string>;
@@ -1,4 +1,4 @@
1
- import type { JSONUser, RawUser } from ".";
1
+ import type { User, RawUser } from ".";
2
2
  /** https://discord.com/developers/docs/resources/emoji#emoji-object-emoji-structure */
3
3
  export interface RawEmoji {
4
4
  id: string | null;
@@ -10,11 +10,11 @@ export interface RawEmoji {
10
10
  animated?: boolean;
11
11
  available?: boolean;
12
12
  }
13
- export interface JSONEmoji {
13
+ export interface Emoji {
14
14
  id: string | null;
15
15
  name: string | null;
16
16
  roles?: Array<string>;
17
- user?: JSONUser;
17
+ user?: User;
18
18
  requireColons?: boolean;
19
19
  managed?: boolean;
20
20
  animated?: boolean;
@@ -15,7 +15,7 @@ export interface RawEntitlement {
15
15
  guild_id?: string;
16
16
  subscription_id?: string;
17
17
  }
18
- export interface JSONEntitlement {
18
+ export interface Entitlement {
19
19
  id: string;
20
20
  skuId: string;
21
21
  applicationId: string;