disgroove 1.2.8-dev.cdf6a54 → 1.2.8-dev.f37b4da

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 (57) hide show
  1. package/dist/Client.js +18 -12
  2. package/dist/Client.js.map +1 -1
  3. package/dist/constants.d.ts +5 -0
  4. package/dist/constants.js +5 -0
  5. package/dist/constants.js.map +1 -1
  6. package/dist/gateway/Shard.js +9 -9
  7. package/dist/gateway/Shard.js.map +1 -1
  8. package/dist/rest/REST.d.ts +16 -5
  9. package/dist/rest/REST.js +10 -10
  10. package/dist/rest/REST.js.map +1 -1
  11. package/dist/rest/RequestsManager.d.ts +3 -1
  12. package/dist/rest/RequestsManager.js +9 -8
  13. package/dist/rest/RequestsManager.js.map +1 -1
  14. package/dist/structures/Application.d.ts +1 -1
  15. package/dist/structures/Application.js +34 -13
  16. package/dist/structures/Application.js.map +1 -1
  17. package/dist/structures/ApplicationCommand.js +3 -3
  18. package/dist/structures/ApplicationCommand.js.map +1 -1
  19. package/dist/structures/AutoModerationRule.js +2 -2
  20. package/dist/structures/AutoModerationRule.js.map +1 -1
  21. package/dist/structures/Channel.js +43 -31
  22. package/dist/structures/Channel.js.map +1 -1
  23. package/dist/structures/Emoji.js +2 -2
  24. package/dist/structures/Emoji.js.map +1 -1
  25. package/dist/structures/Guild.js +95 -69
  26. package/dist/structures/Guild.js.map +1 -1
  27. package/dist/structures/GuildMember.js +6 -6
  28. package/dist/structures/GuildMember.js.map +1 -1
  29. package/dist/structures/GuildScheduledEvent.js +7 -5
  30. package/dist/structures/GuildScheduledEvent.js.map +1 -1
  31. package/dist/structures/GuildTemplate.js +1 -1
  32. package/dist/structures/GuildTemplate.js.map +1 -1
  33. package/dist/structures/Integration.js +1 -1
  34. package/dist/structures/Integration.js.map +1 -1
  35. package/dist/structures/Interaction.js +16 -10
  36. package/dist/structures/Interaction.js.map +1 -1
  37. package/dist/structures/Invite.js +1 -1
  38. package/dist/structures/Invite.js.map +1 -1
  39. package/dist/structures/Message.js +9 -7
  40. package/dist/structures/Message.js.map +1 -1
  41. package/dist/structures/PartialApplication.d.ts +1 -1
  42. package/dist/structures/PartialApplication.js +34 -13
  43. package/dist/structures/PartialApplication.js.map +1 -1
  44. package/dist/structures/Role.js +2 -2
  45. package/dist/structures/Role.js.map +1 -1
  46. package/dist/structures/StageInstance.js +2 -2
  47. package/dist/structures/StageInstance.js.map +1 -1
  48. package/dist/structures/Sticker.js +2 -2
  49. package/dist/structures/Sticker.js.map +1 -1
  50. package/dist/structures/User.js +4 -4
  51. package/dist/structures/User.js.map +1 -1
  52. package/dist/structures/Webhook.js +43 -26
  53. package/dist/structures/Webhook.js.map +1 -1
  54. package/dist/types/auto-moderation.d.ts +0 -2
  55. package/dist/types/entitlements.d.ts +6 -6
  56. package/dist/types/guild.d.ts +8 -2
  57. package/package.json +1 -1
@@ -54,12 +54,10 @@ export interface JSONTriggerMetadata {
54
54
  mentionTotalLimit: number;
55
55
  mentionRaidProtection: boolean;
56
56
  }
57
- /** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-action-object-auto-moderation-action-structure */
58
57
  export interface JSONAutoModerationAction {
59
58
  type: ActionTypes;
60
59
  metadata: JSONActionMetadata;
61
60
  }
62
- /** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-action-object-action-metadata */
63
61
  export interface JSONActionMetadata {
64
62
  channelId: string;
65
63
  durationSeconds: number;
@@ -3,22 +3,22 @@ import type { EntitlementTypes } from "../constants";
3
3
  export interface RawEntitlement {
4
4
  id: string;
5
5
  sku_id: string;
6
- user_id?: string;
7
- guild_id?: string;
8
6
  application_id: string;
7
+ user_id?: string;
9
8
  type: EntitlementTypes;
10
- consumed: boolean;
9
+ deleted: boolean;
11
10
  starts_at?: string;
12
11
  ends_at?: string;
12
+ guild_id?: string;
13
13
  }
14
14
  export interface JSONEntitlement {
15
15
  id: string;
16
16
  skuId: string;
17
- userId?: string;
18
- guildId?: string;
19
17
  applicationId: string;
18
+ userId?: string;
20
19
  type: EntitlementTypes;
21
- consumed: boolean;
20
+ deleted: boolean;
22
21
  startsAt?: string;
23
22
  endsAt?: string;
23
+ guildId?: string;
24
24
  }
@@ -165,7 +165,10 @@ export interface RawPromptOption {
165
165
  id: string;
166
166
  channel_ids: Array<string>;
167
167
  role_ids: Array<string>;
168
- emoji: RawEmoji;
168
+ emoji?: RawEmoji;
169
+ emoji_id?: string;
170
+ emoji_name?: string;
171
+ emoji_animated?: boolean;
169
172
  title: string;
170
173
  description: string | null;
171
174
  }
@@ -319,7 +322,10 @@ export interface JSONPromptOption {
319
322
  id: string;
320
323
  channelIds: Array<string>;
321
324
  roleIds: Array<string>;
322
- emoji: JSONEmoji;
325
+ emoji?: JSONEmoji;
326
+ emojiId?: string;
327
+ emojiName?: string;
328
+ emojiAnimated?: boolean;
323
329
  title: string;
324
330
  description: string | null;
325
331
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "disgroove",
3
- "version": "1.2.8-dev.cdf6a54",
3
+ "version": "1.2.8-dev.f37b4da",
4
4
  "description": "An NPM package to interact with the Discord API",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",