disgroove 2.2.7-dev.fca4921 → 3.0.0-dev.bc90599

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 (80) hide show
  1. package/dist/lib/Client.d.ts +291 -254
  2. package/dist/lib/Client.js +553 -459
  3. package/dist/lib/constants.d.ts +29 -21
  4. package/dist/lib/constants.js +33 -24
  5. package/dist/lib/gateway/Shard.d.ts +2 -2
  6. package/dist/lib/gateway/Shard.js +98 -82
  7. package/dist/lib/index.d.ts +5 -1
  8. package/dist/lib/index.js +5 -1
  9. package/dist/lib/rest/Endpoints.d.ts +95 -91
  10. package/dist/lib/rest/Endpoints.js +111 -102
  11. package/dist/lib/rest/RequestManager.d.ts +1 -3
  12. package/dist/lib/transformers/ApplicationCommands.js +4 -4
  13. package/dist/lib/transformers/Applications.js +4 -4
  14. package/dist/lib/transformers/AuditLogs.js +10 -10
  15. package/dist/lib/transformers/AutoModeration.js +6 -6
  16. package/dist/lib/transformers/Channels.js +16 -16
  17. package/dist/lib/transformers/Components.d.ts +13 -3
  18. package/dist/lib/transformers/Components.js +283 -156
  19. package/dist/lib/transformers/Entitlements.d.ts +2 -2
  20. package/dist/lib/transformers/Entitlements.js +16 -16
  21. package/dist/lib/transformers/GuildScheduledEvents.js +8 -8
  22. package/dist/lib/transformers/GuildTemplates.js +4 -4
  23. package/dist/lib/transformers/Guilds.js +28 -28
  24. package/dist/lib/transformers/Interactions.js +300 -55
  25. package/dist/lib/transformers/Lobbies.d.ts +7 -0
  26. package/dist/lib/transformers/Lobbies.js +38 -0
  27. package/dist/lib/transformers/Messages.d.ts +4 -3
  28. package/dist/lib/transformers/Messages.js +36 -50
  29. package/dist/lib/transformers/Polls.js +2 -2
  30. package/dist/lib/transformers/Presences.js +6 -6
  31. package/dist/lib/transformers/Roles.js +8 -8
  32. package/dist/lib/transformers/SKUs.js +2 -2
  33. package/dist/lib/transformers/Soundboards.js +6 -6
  34. package/dist/lib/transformers/StageInstances.js +6 -6
  35. package/dist/lib/transformers/Stickers.js +3 -3
  36. package/dist/lib/transformers/Subscriptions.js +8 -8
  37. package/dist/lib/transformers/Teams.js +4 -4
  38. package/dist/lib/transformers/Users.js +6 -6
  39. package/dist/lib/transformers/Voice.js +8 -8
  40. package/dist/lib/transformers/Webhooks.js +6 -6
  41. package/dist/lib/transformers/index.d.ts +2 -1
  42. package/dist/lib/transformers/index.js +2 -1
  43. package/dist/lib/types/application-command.d.ts +9 -4
  44. package/dist/lib/types/application-role-connection-metadata.d.ts +1 -0
  45. package/dist/lib/types/application.d.ts +12 -7
  46. package/dist/lib/types/audit-log.d.ts +9 -5
  47. package/dist/lib/types/auto-moderation.d.ts +7 -3
  48. package/dist/lib/types/channel.d.ts +17 -23
  49. package/dist/lib/types/common.d.ts +2 -0
  50. package/dist/lib/types/components.d.ts +478 -0
  51. package/dist/lib/types/components.js +2 -0
  52. package/dist/lib/types/emoji.d.ts +1 -0
  53. package/dist/lib/types/entitlements.d.ts +5 -4
  54. package/dist/lib/types/gateway-events.d.ts +203 -130
  55. package/dist/lib/types/guild-scheduled-event.d.ts +10 -5
  56. package/dist/lib/types/guild-template.d.ts +3 -2
  57. package/dist/lib/types/guild.d.ts +40 -22
  58. package/dist/lib/types/interaction.d.ts +35 -18
  59. package/dist/lib/types/invite.d.ts +5 -2
  60. package/dist/lib/types/lobby.d.ts +31 -0
  61. package/dist/lib/types/lobby.js +2 -0
  62. package/dist/lib/types/message-components.d.ts +334 -118
  63. package/dist/lib/types/message.d.ts +30 -18
  64. package/dist/lib/types/poll.d.ts +7 -1
  65. package/dist/lib/types/role.d.ts +8 -5
  66. package/dist/lib/types/sku.d.ts +2 -1
  67. package/dist/lib/types/soundboard.d.ts +4 -3
  68. package/dist/lib/types/stage-instance.d.ts +4 -3
  69. package/dist/lib/types/sticker.d.ts +8 -5
  70. package/dist/lib/types/subscription.d.ts +6 -5
  71. package/dist/lib/types/team.d.ts +4 -2
  72. package/dist/lib/types/user.d.ts +10 -3
  73. package/dist/lib/types/voice.d.ts +6 -4
  74. package/dist/lib/types/webhook.d.ts +4 -3
  75. package/dist/lib/utils/CDN.d.ts +22 -22
  76. package/dist/lib/utils/CDN.js +22 -22
  77. package/dist/lib/utils/formatters.d.ts +7 -7
  78. package/dist/lib/utils/formatters.js +19 -19
  79. package/dist/package.json +4 -4
  80. package/package.json +4 -4
@@ -1,19 +1,19 @@
1
- import { GuildNavigationTypes, TimestampStyles } from "../constants";
1
+ import { GuildNavigationTypes, type TimestampStyles } from "../constants";
2
2
  import type { snowflake } from "../types/common";
3
3
  /** https://discord.com/developers/docs/reference#message-formatting-formats */
4
- export declare function userMention(userID: snowflake): string;
4
+ export declare function userMention(userId: snowflake): string;
5
5
  /** https://discord.com/developers/docs/reference#message-formatting-formats */
6
- export declare function channelMention(channelID: snowflake): string;
6
+ export declare function channelMention(channelId: snowflake): string;
7
7
  /** https://discord.com/developers/docs/reference#message-formatting-formats */
8
- export declare function roleMention(roleID: snowflake): string;
8
+ export declare function roleMention(roleId: snowflake): string;
9
9
  /** https://discord.com/developers/docs/reference#message-formatting-formats */
10
- export declare function slashCommandMention(commandName: string, commandID: snowflake, subCommandName?: string, subCommandGroupName?: string): string;
10
+ export declare function slashCommandMention(commandName: string, commandId: snowflake, subCommandName?: string, subCommandGroupName?: string): string;
11
11
  /** https://discord.com/developers/docs/reference#message-formatting-formats */
12
- export declare function customEmoji(emojiName: string, emojiID: snowflake, animated?: boolean): string;
12
+ export declare function customEmoji(emojiName: string, emojiId: snowflake, animated?: boolean): string;
13
13
  /** https://discord.com/developers/docs/reference#message-formatting-formats */
14
14
  export declare function unixTimestamp(time: number, style?: TimestampStyles): string;
15
15
  /** https://discord.com/developers/docs/reference#message-formatting-formats */
16
- export declare function guildNavigation(guildID: snowflake, type: GuildNavigationTypes, roleID?: snowflake): string;
16
+ export declare function guildNavigation(guildId: snowflake, type: GuildNavigationTypes, roleId?: snowflake): string;
17
17
  /** https://discord.com/developers/docs/reference#message-formatting-formats */
18
18
  export declare function email(username: string, domain: string): string;
19
19
  /** https://discord.com/developers/docs/reference#message-formatting-formats */
@@ -3,34 +3,34 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.phoneNumber = exports.email = exports.guildNavigation = exports.unixTimestamp = exports.customEmoji = exports.slashCommandMention = exports.roleMention = exports.channelMention = exports.userMention = void 0;
4
4
  const constants_1 = require("../constants");
5
5
  /** https://discord.com/developers/docs/reference#message-formatting-formats */
6
- function userMention(userID) {
7
- return `<@${userID}>`;
6
+ function userMention(userId) {
7
+ return `<@${userId}>`;
8
8
  }
9
9
  exports.userMention = userMention;
10
10
  /** https://discord.com/developers/docs/reference#message-formatting-formats */
11
- function channelMention(channelID) {
12
- return `<#${channelID}>`;
11
+ function channelMention(channelId) {
12
+ return `<#${channelId}>`;
13
13
  }
14
14
  exports.channelMention = channelMention;
15
15
  /** https://discord.com/developers/docs/reference#message-formatting-formats */
16
- function roleMention(roleID) {
17
- return `<@&${roleID}>`;
16
+ function roleMention(roleId) {
17
+ return `<@&${roleId}>`;
18
18
  }
19
19
  exports.roleMention = roleMention;
20
20
  /** https://discord.com/developers/docs/reference#message-formatting-formats */
21
- function slashCommandMention(commandName, commandID, subCommandName, subCommandGroupName) {
21
+ function slashCommandMention(commandName, commandId, subCommandName, subCommandGroupName) {
22
22
  return subCommandName
23
23
  ? subCommandGroupName
24
- ? `</${commandName} ${subCommandGroupName} ${subCommandName}:${commandID}>`
25
- : `</${commandName} ${subCommandName}:${commandID}>`
26
- : `</${commandName}:${commandID}>`;
24
+ ? `</${commandName} ${subCommandGroupName} ${subCommandName}:${commandId}>`
25
+ : `</${commandName} ${subCommandName}:${commandId}>`
26
+ : `</${commandName}:${commandId}>`;
27
27
  }
28
28
  exports.slashCommandMention = slashCommandMention;
29
29
  /** https://discord.com/developers/docs/reference#message-formatting-formats */
30
- function customEmoji(emojiName, emojiID, animated) {
30
+ function customEmoji(emojiName, emojiId, animated) {
31
31
  return animated
32
- ? `<a:${emojiName}:${emojiID}>`
33
- : `<:${emojiName}:${emojiID}>`;
32
+ ? `<a:${emojiName}:${emojiId}>`
33
+ : `<:${emojiName}:${emojiId}>`;
34
34
  }
35
35
  exports.customEmoji = customEmoji;
36
36
  /** https://discord.com/developers/docs/reference#message-formatting-formats */
@@ -39,19 +39,19 @@ function unixTimestamp(time, style) {
39
39
  }
40
40
  exports.unixTimestamp = unixTimestamp;
41
41
  /** https://discord.com/developers/docs/reference#message-formatting-formats */
42
- function guildNavigation(guildID, type, roleID) {
43
- return roleID && type === constants_1.GuildNavigationTypes.LinkedRoles
44
- ? `<${guildID}:${type}:${roleID}>`
45
- : `<${guildID}:${type}>`;
42
+ function guildNavigation(guildId, type, roleId) {
43
+ return roleId && type === constants_1.GuildNavigationTypes.LinkedRoles
44
+ ? `<${guildId}:${type}:${roleId}>`
45
+ : `<${guildId}:${type}>`;
46
46
  }
47
47
  exports.guildNavigation = guildNavigation;
48
48
  /** https://discord.com/developers/docs/reference#message-formatting-formats */
49
49
  function email(username, domain) {
50
- return `<${username}:${domain}>`;
50
+ return `<${username}@${domain}>`;
51
51
  }
52
52
  exports.email = email;
53
53
  /** https://discord.com/developers/docs/reference#message-formatting-formats */
54
54
  function phoneNumber(number) {
55
- return `<+${phoneNumber}>`;
55
+ return `<+${number}>`;
56
56
  }
57
57
  exports.phoneNumber = phoneNumber;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "disgroove",
3
- "version": "2.2.7-dev.fca4921",
3
+ "version": "3.0.0-dev.bc90599",
4
4
  "description": "A module to interface with Discord",
5
5
  "main": "./dist/lib/index.js",
6
6
  "types": "./dist/lib/index.d.ts",
@@ -25,10 +25,10 @@
25
25
  },
26
26
  "homepage": "https://github.com/sergiogotuzzo/disgroove#readme",
27
27
  "devDependencies": {
28
- "@types/node": "^22.16.3",
28
+ "@types/node": "^22.18.1",
29
29
  "@types/ws": "^8.18.1",
30
- "typescript": "^5.8.3",
31
- "undici-types": "^7.11.0"
30
+ "typescript": "^5.9.2",
31
+ "undici-types": "^7.16.0"
32
32
  },
33
33
  "dependencies": {
34
34
  "ws": "^8.18.3"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "disgroove",
3
- "version": "2.2.7-dev.fca4921",
3
+ "version": "3.0.0-dev.bc90599",
4
4
  "description": "A module to interface with Discord",
5
5
  "main": "./dist/lib/index.js",
6
6
  "types": "./dist/lib/index.d.ts",
@@ -25,10 +25,10 @@
25
25
  },
26
26
  "homepage": "https://github.com/sergiogotuzzo/disgroove#readme",
27
27
  "devDependencies": {
28
- "@types/node": "^22.16.3",
28
+ "@types/node": "^22.18.1",
29
29
  "@types/ws": "^8.18.1",
30
- "typescript": "^5.8.3",
31
- "undici-types": "^7.11.0"
30
+ "typescript": "^5.9.2",
31
+ "undici-types": "^7.16.0"
32
32
  },
33
33
  "dependencies": {
34
34
  "ws": "^8.18.3"