seyfert 4.5.0 → 4.6.0

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 (175) hide show
  1. package/lib/api/Routes/guilds.d.ts +12 -1
  2. package/lib/api/Routes/index.d.ts +3 -1
  3. package/lib/api/Routes/invites.d.ts +1 -1
  4. package/lib/api/Routes/oauth2.d.ts +11 -0
  5. package/lib/api/Routes/oauth2.js +2 -0
  6. package/lib/api/Routes/skus.d.ts +11 -4
  7. package/lib/api/Routes/users.d.ts +2 -1
  8. package/lib/api/Routes/voice.d.ts +4 -0
  9. package/lib/api/Routes/webhooks.d.ts +1 -1
  10. package/lib/api/api.d.ts +15 -5
  11. package/lib/api/api.js +243 -114
  12. package/lib/api/bucket.js +13 -7
  13. package/lib/api/shared.d.ts +3 -1
  14. package/lib/api/utils/constants.d.ts +1 -1
  15. package/lib/api/utils/constants.js +1 -1
  16. package/lib/builders/Attachment.d.ts +6 -1
  17. package/lib/builders/Attachment.js +13 -9
  18. package/lib/builders/CheckboxGroup.js +1 -1
  19. package/lib/builders/FileUpload.d.ts +8 -1
  20. package/lib/builders/FileUpload.js +9 -0
  21. package/lib/builders/RadioGroup.js +1 -1
  22. package/lib/client/base.d.ts +3 -3
  23. package/lib/client/collectors.d.ts +10 -8
  24. package/lib/client/transformers.d.ts +5 -0
  25. package/lib/client/workerclient.d.ts +8 -1
  26. package/lib/client/workerclient.js +28 -9
  27. package/lib/commands/applications/chat.d.ts +6 -4
  28. package/lib/commands/applications/options.d.ts +6 -4
  29. package/lib/commands/applications/shared.d.ts +2 -2
  30. package/lib/commands/handle.d.ts +7 -3
  31. package/lib/commands/handle.js +36 -11
  32. package/lib/commands/handler.js +11 -0
  33. package/lib/commands/optionresolver.d.ts +6 -7
  34. package/lib/common/it/error.d.ts +13 -0
  35. package/lib/common/it/error.js +15 -1
  36. package/lib/common/it/logger.js +12 -9
  37. package/lib/common/shorters/application.d.ts +1 -1
  38. package/lib/common/shorters/application.js +1 -1
  39. package/lib/common/shorters/bans.js +1 -1
  40. package/lib/common/shorters/guilds.js +5 -1
  41. package/lib/common/shorters/interaction.js +7 -4
  42. package/lib/common/shorters/invites.d.ts +5 -0
  43. package/lib/common/shorters/members.js +2 -1
  44. package/lib/common/shorters/messages.js +2 -2
  45. package/lib/common/shorters/threads.js +1 -1
  46. package/lib/common/shorters/webhook.js +3 -3
  47. package/lib/common/types/util.d.ts +7 -0
  48. package/lib/components/componentcommand.js +2 -2
  49. package/lib/components/customId.d.ts +3 -0
  50. package/lib/components/customId.js +11 -0
  51. package/lib/components/handler.js +2 -3
  52. package/lib/components/modalcommand.js +2 -2
  53. package/lib/events/hooks/invite.d.ts +1 -0
  54. package/lib/events/hooks/presence.d.ts +1 -0
  55. package/lib/events/hooks/thread.d.ts +1 -0
  56. package/lib/structures/AnonymousGuild.d.ts +1 -1
  57. package/lib/structures/AnonymousGuild.js +1 -1
  58. package/lib/structures/Guild.d.ts +3 -0
  59. package/lib/structures/GuildMember.d.ts +2 -2
  60. package/lib/structures/GuildMember.js +22 -4
  61. package/lib/structures/GuildPreview.d.ts +1 -1
  62. package/lib/structures/GuildPreview.js +1 -1
  63. package/lib/structures/GuildRole.d.ts +13 -0
  64. package/lib/structures/GuildRole.js +21 -0
  65. package/lib/structures/GuildTemplate.js +1 -1
  66. package/lib/structures/Interaction.d.ts +7 -7
  67. package/lib/structures/Interaction.js +35 -21
  68. package/lib/structures/Message.d.ts +2 -1
  69. package/lib/structures/channels.d.ts +29 -16
  70. package/lib/structures/channels.js +59 -19
  71. package/lib/structures/extra/BaseGuild.d.ts +4 -4
  72. package/lib/structures/extra/BaseGuild.js +4 -4
  73. package/lib/types/gateway.d.ts +243 -239
  74. package/lib/types/index.d.ts +2 -2
  75. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/attachment.d.ts +5 -2
  76. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/shared.d.ts +2 -2
  77. package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/shared.js +1 -1
  78. package/lib/types/payloads/_interactions/_applicationCommands/chatInput.d.ts +7 -7
  79. package/lib/types/payloads/_interactions/_applicationCommands/contextMenu.d.ts +13 -13
  80. package/lib/types/payloads/_interactions/_applicationCommands/permissions.d.ts +4 -4
  81. package/lib/types/payloads/_interactions/_applicationCommands/permissions.js +2 -2
  82. package/lib/types/payloads/_interactions/applicationCommands.d.ts +10 -10
  83. package/lib/types/payloads/_interactions/applicationCommands.js +4 -4
  84. package/lib/types/payloads/_interactions/autocomplete.d.ts +2 -2
  85. package/lib/types/payloads/_interactions/base.d.ts +13 -7
  86. package/lib/types/payloads/_interactions/modalSubmit.d.ts +4 -4
  87. package/lib/types/payloads/_interactions/responses.d.ts +10 -10
  88. package/lib/types/payloads/_interactions/responses.js +2 -2
  89. package/lib/types/payloads/application.d.ts +21 -15
  90. package/lib/types/payloads/application.js +7 -7
  91. package/lib/types/payloads/auditLog.d.ts +22 -17
  92. package/lib/types/payloads/auditLog.js +7 -2
  93. package/lib/types/payloads/autoModeration.d.ts +11 -11
  94. package/lib/types/payloads/autoModeration.js +5 -5
  95. package/lib/types/payloads/channel.d.ts +87 -78
  96. package/lib/types/payloads/channel.js +16 -11
  97. package/lib/types/payloads/components.d.ts +41 -31
  98. package/lib/types/payloads/components.js +9 -5
  99. package/lib/types/payloads/emoji.d.ts +2 -2
  100. package/lib/types/payloads/emoji.js +1 -1
  101. package/lib/types/payloads/gateway.d.ts +33 -29
  102. package/lib/types/payloads/gateway.js +5 -5
  103. package/lib/types/payloads/guild.d.ts +68 -68
  104. package/lib/types/payloads/guild.js +14 -14
  105. package/lib/types/payloads/guildScheduledEvent.d.ts +11 -11
  106. package/lib/types/payloads/guildScheduledEvent.js +3 -3
  107. package/lib/types/payloads/index.d.ts +2 -2
  108. package/lib/types/payloads/interactions.d.ts +3 -3
  109. package/lib/types/payloads/invite.d.ts +11 -11
  110. package/lib/types/payloads/invite.js +3 -3
  111. package/lib/types/payloads/monetization.d.ts +4 -4
  112. package/lib/types/payloads/monetization.js +2 -2
  113. package/lib/types/payloads/oauth2.d.ts +21 -17
  114. package/lib/types/payloads/oauth2.js +21 -17
  115. package/lib/types/payloads/permissions.d.ts +5 -5
  116. package/lib/types/payloads/permissions.js +2 -2
  117. package/lib/types/payloads/poll.d.ts +7 -7
  118. package/lib/types/payloads/poll.js +2 -2
  119. package/lib/types/payloads/soundboard.d.ts +2 -2
  120. package/lib/types/payloads/soundboard.js +1 -1
  121. package/lib/types/payloads/stageInstance.d.ts +5 -5
  122. package/lib/types/payloads/stageInstance.js +1 -1
  123. package/lib/types/payloads/sticker.d.ts +8 -8
  124. package/lib/types/payloads/sticker.js +3 -3
  125. package/lib/types/payloads/teams.d.ts +8 -8
  126. package/lib/types/payloads/teams.js +3 -3
  127. package/lib/types/payloads/template.d.ts +3 -3
  128. package/lib/types/payloads/template.js +1 -1
  129. package/lib/types/payloads/user.d.ts +24 -22
  130. package/lib/types/payloads/user.js +7 -5
  131. package/lib/types/payloads/voice.d.ts +4 -4
  132. package/lib/types/payloads/voice.js +1 -1
  133. package/lib/types/payloads/webhokEvents.d.ts +5 -5
  134. package/lib/types/payloads/webhokEvents.js +2 -2
  135. package/lib/types/payloads/webhook.d.ts +4 -4
  136. package/lib/types/payloads/webhook.js +1 -1
  137. package/lib/types/rest/application.d.ts +14 -14
  138. package/lib/types/rest/auditLog.d.ts +1 -1
  139. package/lib/types/rest/autoModeration.d.ts +7 -7
  140. package/lib/types/rest/channel.d.ts +79 -74
  141. package/lib/types/rest/channel.js +1 -1
  142. package/lib/types/rest/emoji.d.ts +8 -8
  143. package/lib/types/rest/gateway.d.ts +2 -2
  144. package/lib/types/rest/guild.d.ts +98 -98
  145. package/lib/types/rest/guild.js +5 -5
  146. package/lib/types/rest/guildScheduledEvent.d.ts +11 -11
  147. package/lib/types/rest/index.d.ts +34 -3
  148. package/lib/types/rest/index.js +33 -2
  149. package/lib/types/rest/interactions.d.ts +48 -48
  150. package/lib/types/rest/invite.d.ts +5 -5
  151. package/lib/types/rest/monetization.d.ts +9 -9
  152. package/lib/types/rest/monetization.js +1 -1
  153. package/lib/types/rest/oauth2.d.ts +22 -18
  154. package/lib/types/rest/poll.d.ts +4 -4
  155. package/lib/types/rest/soundboard.d.ts +8 -8
  156. package/lib/types/rest/stageInstance.d.ts +6 -6
  157. package/lib/types/rest/sticker.d.ts +10 -10
  158. package/lib/types/rest/template.d.ts +11 -11
  159. package/lib/types/rest/user.d.ts +18 -14
  160. package/lib/types/rest/voice.d.ts +5 -5
  161. package/lib/types/rest/webhook.d.ts +38 -38
  162. package/lib/types/utils/index.d.ts +19 -19
  163. package/lib/types/utils/index.js +19 -19
  164. package/lib/websocket/SharedTypes.d.ts +2 -2
  165. package/lib/websocket/constants/index.js +2 -2
  166. package/lib/websocket/discord/heartbeater.d.ts +1 -0
  167. package/lib/websocket/discord/heartbeater.js +8 -0
  168. package/lib/websocket/discord/shard.d.ts +19 -10
  169. package/lib/websocket/discord/shard.js +254 -121
  170. package/lib/websocket/discord/sharder.d.ts +2 -2
  171. package/lib/websocket/discord/sharder.js +1 -1
  172. package/lib/websocket/discord/shared.d.ts +7 -2
  173. package/lib/websocket/discord/workermanager.d.ts +3 -1
  174. package/lib/websocket/discord/workermanager.js +31 -24
  175. package/package.json +2 -2
@@ -3,7 +3,7 @@ import type { APIApplicationCommand, APIApplicationCommandPermission, APIGuildAp
3
3
  import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface, NonNullableFields, StrictPartial } from '../utils';
4
4
  import type { RESTDeleteAPIWebhookWithTokenMessageResult, RESTGetAPIWebhookWithTokenMessageResult, RESTPatchAPIWebhookWithTokenMessageFormDataBody, RESTPatchAPIWebhookWithTokenMessageJSONBody, RESTPatchAPIWebhookWithTokenMessageResult, RESTPostAPIWebhookWithTokenWaitResult } from './webhook';
5
5
  /**
6
- * https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands
6
+ * https://docs.discord.com/developers/interactions/application-commands#get-global-application-commands
7
7
  */
8
8
  export interface RESTGetAPIApplicationCommandsQuery {
9
9
  /**
@@ -15,100 +15,100 @@ export interface RESTGetAPIApplicationCommandsQuery {
15
15
  with_localizations?: boolean;
16
16
  }
17
17
  /**
18
- * https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands
18
+ * https://docs.discord.com/developers/interactions/application-commands#get-global-application-commands
19
19
  */
20
20
  export type RESTGetAPIApplicationCommandsResult = APIApplicationCommand[];
21
21
  /**
22
- * https://discord.com/developers/docs/interactions/application-commands#get-global-application-command
22
+ * https://docs.discord.com/developers/interactions/application-commands#get-global-application-command
23
23
  */
24
24
  export type RESTGetAPIApplicationCommandResult = APIApplicationCommand;
25
25
  export type RESTPostAPIBaseApplicationCommandsJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<Omit<APIApplicationCommand, 'application_id' | 'contexts' | 'default_member_permissions' | 'description_localized' | 'description' | 'guild_id' | 'id' | 'integration_types' | 'name_localized' | 'type' | 'version'> & Partial<NonNullableFields<Pick<APIApplicationCommand, 'contexts'>> & Pick<APIApplicationCommand, 'default_member_permissions' | 'integration_types'>>>;
26
26
  /**
27
- * https://discord.com/developers/docs/interactions/application-commands#create-global-application-command
27
+ * https://docs.discord.com/developers/interactions/application-commands#create-global-application-command
28
28
  */
29
29
  export interface RESTPostAPIChatInputApplicationCommandsJSONBody extends RESTPostAPIBaseApplicationCommandsJSONBody {
30
30
  type?: ApplicationCommandType.ChatInput | undefined;
31
31
  description: string;
32
32
  }
33
33
  /**
34
- * https://discord.com/developers/docs/interactions/application-commands#create-global-application-command
34
+ * https://docs.discord.com/developers/interactions/application-commands#create-global-application-command
35
35
  */
36
36
  export interface RESTPostAPIContextMenuApplicationCommandsJSONBody extends RESTPostAPIBaseApplicationCommandsJSONBody {
37
37
  type: ApplicationCommandType.Message | ApplicationCommandType.User;
38
38
  }
39
39
  /**
40
- * https://discord.com/developers/docs/interactions/application-commands#create-global-application-command
40
+ * https://docs.discord.com/developers/interactions/application-commands#create-global-application-command
41
41
  */
42
42
  export interface RESTPostAPIPrimaryEntryPointApplicationCommandJSONBody extends RESTPostAPIBaseApplicationCommandsJSONBody {
43
43
  type: ApplicationCommandType.PrimaryEntryPoint;
44
44
  }
45
45
  /**
46
- * https://discord.com/developers/docs/interactions/application-commands#create-global-application-command
46
+ * https://docs.discord.com/developers/interactions/application-commands#create-global-application-command
47
47
  */
48
48
  export type RESTPostAPIApplicationCommandsJSONBody = RESTPostAPIChatInputApplicationCommandsJSONBody | RESTPostAPIContextMenuApplicationCommandsJSONBody | RESTPostAPIPrimaryEntryPointApplicationCommandJSONBody;
49
49
  /**
50
- * https://discord.com/developers/docs/interactions/application-commands#create-global-application-command
50
+ * https://docs.discord.com/developers/interactions/application-commands#create-global-application-command
51
51
  */
52
52
  export type RESTPostAPIApplicationCommandsResult = APIApplicationCommand;
53
53
  /**
54
- * https://discord.com/developers/docs/interactions/application-commands#edit-global-application-command
54
+ * https://docs.discord.com/developers/interactions/application-commands#edit-global-application-command
55
55
  */
56
56
  export type RESTPatchAPIApplicationCommandJSONBody = StrictPartial<RESTPostAPIApplicationCommandsJSONBody>;
57
57
  /**
58
- * https://discord.com/developers/docs/interactions/application-commands#edit-global-application-command
58
+ * https://docs.discord.com/developers/interactions/application-commands#edit-global-application-command
59
59
  */
60
60
  export type RESTPatchAPIApplicationCommandResult = APIApplicationCommand;
61
61
  /**
62
- * https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands
62
+ * https://docs.discord.com/developers/interactions/application-commands#bulk-overwrite-global-application-commands
63
63
  */
64
64
  export type RESTPutAPIApplicationCommandsJSONBody = RESTPostAPIApplicationCommandsJSONBody[];
65
65
  /**
66
- * https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands
66
+ * https://docs.discord.com/developers/interactions/application-commands#bulk-overwrite-global-application-commands
67
67
  */
68
68
  export type RESTPutAPIApplicationCommandsResult = APIApplicationCommand[];
69
69
  /**
70
- * https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands
70
+ * https://docs.discord.com/developers/interactions/application-commands#get-guild-application-commands
71
71
  */
72
72
  export type RESTGetAPIApplicationGuildCommandsQuery = RESTGetAPIApplicationCommandsQuery;
73
73
  export type RESTAPIApplicationGuildCommand = Omit<APIApplicationCommand, 'dm_permission' | 'handler'>;
74
74
  /**
75
- * https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands
75
+ * https://docs.discord.com/developers/interactions/application-commands#get-guild-application-commands
76
76
  */
77
77
  export type RESTGetAPIApplicationGuildCommandsResult = RESTAPIApplicationGuildCommand[];
78
78
  /**
79
- * https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands
79
+ * https://docs.discord.com/developers/interactions/application-commands#get-guild-application-commands
80
80
  */
81
81
  export type RESTGetAPIApplicationGuildCommandResult = RESTAPIApplicationGuildCommand;
82
82
  /**
83
- * https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command
83
+ * https://docs.discord.com/developers/interactions/application-commands#create-guild-application-command
84
84
  */
85
85
  export type RESTPostAPIApplicationGuildCommandsJSONBody = Omit<RESTPostAPIChatInputApplicationCommandsJSONBody, 'dm_permission'> | Omit<RESTPostAPIContextMenuApplicationCommandsJSONBody, 'dm_permission'>;
86
86
  /**
87
- * https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command
87
+ * https://docs.discord.com/developers/interactions/application-commands#create-guild-application-command
88
88
  */
89
89
  export type RESTPostAPIApplicationGuildCommandsResult = RESTAPIApplicationGuildCommand;
90
90
  /**
91
- * https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command
91
+ * https://docs.discord.com/developers/interactions/application-commands#edit-guild-application-command
92
92
  */
93
93
  export type RESTPatchAPIApplicationGuildCommandJSONBody = StrictPartial<Omit<RESTPostAPIChatInputApplicationCommandsJSONBody, 'dm_permission'> | Omit<RESTPostAPIContextMenuApplicationCommandsJSONBody, 'dm_permission'>>;
94
94
  /**
95
- * https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command
95
+ * https://docs.discord.com/developers/interactions/application-commands#edit-guild-application-command
96
96
  */
97
97
  export type RESTPatchAPIApplicationGuildCommandResult = RESTAPIApplicationGuildCommand;
98
98
  /**
99
- * https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands
99
+ * https://docs.discord.com/developers/interactions/application-commands#bulk-overwrite-guild-application-commands
100
100
  */
101
101
  export type RESTPutAPIApplicationGuildCommandsJSONBody = ((Omit<RESTPostAPIChatInputApplicationCommandsJSONBody, 'dm_permission'> & Pick<Partial<APIApplicationCommand>, 'id'>) | (Omit<RESTPostAPIContextMenuApplicationCommandsJSONBody, 'dm_permission'> & Pick<Partial<APIApplicationCommand>, 'id'>))[];
102
102
  /**
103
- * https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands
103
+ * https://docs.discord.com/developers/interactions/application-commands#bulk-overwrite-guild-application-commands
104
104
  */
105
105
  export type RESTPutAPIApplicationGuildCommandsResult = RESTAPIApplicationGuildCommand[];
106
106
  /**
107
- * https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response
107
+ * https://docs.discord.com/developers/interactions/receiving-and-responding#create-interaction-response
108
108
  */
109
109
  export type RESTPostAPIInteractionCallbackJSONBody = APIInteractionResponse;
110
110
  /**
111
- * https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response-query-string-params
111
+ * https://docs.discord.com/developers/interactions/receiving-and-responding#create-interaction-response-query-string-params
112
112
  */
113
113
  export type RESTPostAPIInteractionCallbackQuery = {
114
114
  /**
@@ -117,18 +117,18 @@ export type RESTPostAPIInteractionCallbackQuery = {
117
117
  with_response?: boolean;
118
118
  };
119
119
  /**
120
- * https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response
120
+ * https://docs.discord.com/developers/interactions/receiving-and-responding#create-interaction-response
121
121
  */
122
122
  export type RESTPostAPIInteractionCallbackResult = RESTPostAPIInteractionCallbackWithResponseResult;
123
123
  /**
124
- * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-callback-interaction-callback-response-object
124
+ * https://docs.discord.com/developers/interactions/receiving-and-responding#interaction-callback-interaction-callback-response-object
125
125
  */
126
126
  export interface RESTPostAPIInteractionCallbackWithResponseResult {
127
127
  interaction: RESTAPIInteractionCallbackObject;
128
128
  resource?: RESTAPIInteractionCallbackResourceObject;
129
129
  }
130
130
  /**
131
- * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-callback-interaction-callback-object
131
+ * https://docs.discord.com/developers/interactions/receiving-and-responding#interaction-callback-interaction-callback-object
132
132
  */
133
133
  export interface RESTAPIInteractionCallbackObject {
134
134
  id: Snowflake;
@@ -139,7 +139,7 @@ export interface RESTAPIInteractionCallbackObject {
139
139
  response_message_ephemeral?: boolean;
140
140
  }
141
141
  /**
142
- * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-callback-interaction-callback-resource-object
142
+ * https://docs.discord.com/developers/interactions/receiving-and-responding#interaction-callback-interaction-callback-resource-object
143
143
  */
144
144
  export interface RESTAPIInteractionCallbackResourceObject {
145
145
  type: InteractionResponseType;
@@ -147,13 +147,13 @@ export interface RESTAPIInteractionCallbackResourceObject {
147
147
  message?: APIMessage;
148
148
  }
149
149
  /**
150
- * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-callback-interaction-callback-activity-instance-resource
150
+ * https://docs.discord.com/developers/interactions/receiving-and-responding#interaction-callback-interaction-callback-activity-instance-resource
151
151
  */
152
152
  export interface RESTAPIInteractionCallbackActivityInstanceResource {
153
153
  id: string;
154
154
  }
155
155
  /**
156
- * https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response
156
+ * https://docs.discord.com/developers/interactions/receiving-and-responding#create-interaction-response
157
157
  */
158
158
  export type RESTPostAPIInteractionCallbackFormDataBody = (Record<`files[${bigint}]`, unknown> & {
159
159
  /**
@@ -162,31 +162,31 @@ export type RESTPostAPIInteractionCallbackFormDataBody = (Record<`files[${bigint
162
162
  payload_json?: string | undefined;
163
163
  }) | (Record<`files[${bigint}]`, unknown> & RESTPostAPIInteractionCallbackJSONBody);
164
164
  /**
165
- * https://discord.com/developers/docs/interactions/receiving-and-responding#get-original-interaction-response
165
+ * https://docs.discord.com/developers/interactions/receiving-and-responding#get-original-interaction-response
166
166
  */
167
167
  export type RESTGetAPIInteractionOriginalResponseResult = RESTGetAPIWebhookWithTokenMessageResult;
168
168
  /**
169
- * https://discord.com/developers/docs/interactions/receiving-and-responding#edit-original-interaction-response
169
+ * https://docs.discord.com/developers/interactions/receiving-and-responding#edit-original-interaction-response
170
170
  */
171
171
  export type RESTPatchAPIInteractionOriginalResponseJSONBody = RESTPatchAPIWebhookWithTokenMessageJSONBody;
172
172
  /**
173
- * https://discord.com/developers/docs/interactions/receiving-and-responding#edit-original-interaction-response
173
+ * https://docs.discord.com/developers/interactions/receiving-and-responding#edit-original-interaction-response
174
174
  */
175
175
  export type RESTPatchAPIInteractionOriginalResponseFormDataBody = RESTPatchAPIWebhookWithTokenMessageFormDataBody;
176
176
  /**
177
- * https://discord.com/developers/docs/interactions/receiving-and-responding#edit-original-interaction-response
177
+ * https://docs.discord.com/developers/interactions/receiving-and-responding#edit-original-interaction-response
178
178
  */
179
179
  export type RESTPatchAPIInteractionOriginalResponseResult = RESTPatchAPIWebhookWithTokenMessageResult;
180
180
  /**
181
- * https://discord.com/developers/docs/interactions/receiving-and-responding#delete-original-interaction-response
181
+ * https://docs.discord.com/developers/interactions/receiving-and-responding#delete-original-interaction-response
182
182
  */
183
183
  export type RESTDeleteAPIInteractionOriginalResponseResult = RESTDeleteAPIWebhookWithTokenMessageResult;
184
184
  /**
185
- * https://discord.com/developers/docs/interactions/receiving-and-responding#create-followup-message
185
+ * https://docs.discord.com/developers/interactions/receiving-and-responding#create-followup-message
186
186
  */
187
187
  export type RESTPostAPIInteractionFollowupJSONBody = APIInteractionResponseCallbackData;
188
188
  /**
189
- * https://discord.com/developers/docs/interactions/receiving-and-responding#create-followup-message
189
+ * https://docs.discord.com/developers/interactions/receiving-and-responding#create-followup-message
190
190
  */
191
191
  export type RESTPostAPIInteractionFollowupFormDataBody = (Record<`files[${bigint}]`, unknown> & {
192
192
  /**
@@ -195,52 +195,52 @@ export type RESTPostAPIInteractionFollowupFormDataBody = (Record<`files[${bigint
195
195
  payload_json?: string | undefined;
196
196
  }) | (Record<`files[${bigint}]`, unknown> & RESTPostAPIInteractionFollowupJSONBody);
197
197
  /**
198
- * https://discord.com/developers/docs/interactions/receiving-and-responding#create-followup-message
198
+ * https://docs.discord.com/developers/interactions/receiving-and-responding#create-followup-message
199
199
  */
200
200
  export type RESTPostAPIInteractionFollowupResult = RESTPostAPIWebhookWithTokenWaitResult;
201
201
  /**
202
- * https://discord.com/developers/docs/interactions/receiving-and-responding#get-followup-message
202
+ * https://docs.discord.com/developers/interactions/receiving-and-responding#get-followup-message
203
203
  */
204
204
  export type RESTGetAPIInteractionFollowupResult = RESTGetAPIWebhookWithTokenMessageResult;
205
205
  /**
206
- * https://discord.com/developers/docs/interactions/receiving-and-responding#edit-followup-message
206
+ * https://docs.discord.com/developers/interactions/receiving-and-responding#edit-followup-message
207
207
  */
208
208
  export type RESTPatchAPIInteractionFollowupJSONBody = RESTPatchAPIWebhookWithTokenMessageJSONBody;
209
209
  /**
210
- * https://discord.com/developers/docs/interactions/receiving-and-responding#edit-followup-message
210
+ * https://docs.discord.com/developers/interactions/receiving-and-responding#edit-followup-message
211
211
  */
212
212
  export type RESTPatchAPIInteractionFollowupFormDataBody = RESTPatchAPIWebhookWithTokenMessageFormDataBody;
213
213
  /**
214
- * https://discord.com/developers/docs/interactions/receiving-and-responding#edit-followup-message
214
+ * https://docs.discord.com/developers/interactions/receiving-and-responding#edit-followup-message
215
215
  */
216
216
  export type RESTPatchAPIInteractionFollowupResult = RESTPatchAPIWebhookWithTokenMessageResult;
217
217
  /**
218
- * https://discord.com/developers/docs/interactions/receiving-and-responding#delete-followup-message
218
+ * https://docs.discord.com/developers/interactions/receiving-and-responding#delete-followup-message
219
219
  */
220
220
  export type RESTDeleteAPIInteractionFollowupResult = RESTDeleteAPIWebhookWithTokenMessageResult;
221
221
  /**
222
- * https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command-permissions
222
+ * https://docs.discord.com/developers/interactions/application-commands#get-guild-application-command-permissions
223
223
  */
224
224
  export type RESTGetAPIGuildApplicationCommandsPermissionsResult = APIGuildApplicationCommandPermissions[];
225
225
  /**
226
- * https://discord.com/developers/docs/interactions/application-commands#get-application-command-permissions
226
+ * https://docs.discord.com/developers/interactions/application-commands#get-application-command-permissions
227
227
  */
228
228
  export type RESTGetAPIApplicationCommandPermissionsResult = APIGuildApplicationCommandPermissions;
229
229
  /**
230
- * https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions
230
+ * https://docs.discord.com/developers/interactions/application-commands#edit-application-command-permissions
231
231
  */
232
232
  export interface RESTPutAPIApplicationCommandPermissionsJSONBody {
233
233
  permissions: APIApplicationCommandPermission[];
234
234
  }
235
235
  /**
236
- * https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions
236
+ * https://docs.discord.com/developers/interactions/application-commands#edit-application-command-permissions
237
237
  */
238
238
  export type RESTPutAPIApplicationCommandPermissionsResult = APIGuildApplicationCommandPermissions;
239
239
  /**
240
- * https://discord.com/developers/docs/interactions/application-commands#batch-edit-application-command-permissions
240
+ * https://docs.discord.com/developers/interactions/application-commands#batch-edit-application-command-permissions
241
241
  */
242
242
  export type RESTPutAPIGuildApplicationCommandsPermissionsJSONBody = Pick<APIGuildApplicationCommandPermissions, 'id' | 'permissions'>[];
243
243
  /**
244
- * https://discord.com/developers/docs/interactions/application-commands#batch-edit-application-command-permissions
244
+ * https://docs.discord.com/developers/interactions/application-commands#batch-edit-application-command-permissions
245
245
  */
246
246
  export type RESTPutAPIGuildApplicationCommandsPermissionsResult = APIGuildApplicationCommandPermissions[];
@@ -1,7 +1,7 @@
1
1
  import type { Snowflake } from '..';
2
2
  import type { APIInvite } from '../payloads';
3
3
  /**
4
- * https://discord.com/developers/docs/resources/invite#get-invite
4
+ * https://docs.discord.com/developers/resources/invite#get-invite
5
5
  */
6
6
  export interface RESTGetAPIInviteQuery {
7
7
  /**
@@ -19,15 +19,15 @@ export interface RESTGetAPIInviteQuery {
19
19
  }
20
20
  export type RESTGetAPIInviteResult = APIInvite;
21
21
  /**
22
- * https://discord.com/developers/docs/resources/invite#delete-invite
22
+ * https://docs.discord.com/developers/resources/invite#delete-invite
23
23
  */
24
24
  export type RESTDeleteAPIInviteResult = APIInvite;
25
25
  /**
26
- * https://discord.com/developers/docs/resources/invite#get-target-users
26
+ * https://docs.discord.com/developers/resources/invite#get-target-users
27
27
  */
28
28
  export type RESTGetTargetUsersResult = string;
29
29
  /**
30
- * https://discord.com/developers/docs/resources/invite#get-target-users
30
+ * https://docs.discord.com/developers/resources/invite#get-target-users
31
31
  *
32
32
  * Updates the users allowed to see and accept this invite.
33
33
  * Uploading a file with invalid user IDs will result in a 400 with the invalid IDs described.
@@ -50,7 +50,7 @@ export declare enum TargetUsersJobStatusCode {
50
50
  FAILED = 3
51
51
  }
52
52
  /**
53
- * https://discord.com/developers/docs/resources/invite#get-target-users-job-status
53
+ * https://docs.discord.com/developers/resources/invite#get-target-users-job-status
54
54
  * Processing target users from a CSV when creating or updating an invite is done asynchronously.
55
55
  * This endpoint allows you to check the status of that job.
56
56
  */
@@ -1,7 +1,7 @@
1
1
  import type { Snowflake } from '..';
2
2
  import type { APIEntitlement, APISKU, APISubscription } from '../payloads';
3
3
  /**
4
- * https://discord.com/developers/docs/monetization/entitlements#list-entitlements
4
+ * https://docs.discord.com/developers/monetization/entitlements#list-entitlements
5
5
  */
6
6
  export interface RESTGetAPIEntitlementsQuery {
7
7
  /**
@@ -41,15 +41,15 @@ export interface RESTGetAPIEntitlementsQuery {
41
41
  exclude_deleted?: boolean | undefined;
42
42
  }
43
43
  /**
44
- * https://discord.com/developers/docs/monetization/entitlements#list-entitlements
44
+ * https://docs.discord.com/developers/monetization/entitlements#list-entitlements
45
45
  */
46
46
  export type RESTGetAPIEntitlementsResult = APIEntitlement[];
47
47
  /**
48
- * https://discord.com/developers/docs/resources/entitlement#get-entitlement
48
+ * https://docs.discord.com/developers/resources/entitlement#get-entitlement
49
49
  */
50
50
  export type RESTGetAPIEntitlementResult = APIEntitlement;
51
51
  /**
52
- * https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement
52
+ * https://docs.discord.com/developers/monetization/entitlements#create-test-entitlement
53
53
  */
54
54
  export interface RESTPostAPIEntitlementBody {
55
55
  /**
@@ -66,26 +66,26 @@ export interface RESTPostAPIEntitlementBody {
66
66
  owner_type: EntitlementOwnerType;
67
67
  }
68
68
  /**
69
- * https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement
69
+ * https://docs.discord.com/developers/monetization/entitlements#create-test-entitlement
70
70
  */
71
71
  export type RESTPostAPIEntitlementResult = Partial<Omit<APIEntitlement, 'ends_at' | 'starts_at'>>;
72
72
  /**
73
- * https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement
73
+ * https://docs.discord.com/developers/monetization/entitlements#create-test-entitlement
74
74
  */
75
75
  export declare enum EntitlementOwnerType {
76
76
  Guild = 1,
77
77
  User = 2
78
78
  }
79
79
  /**
80
- * https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement
80
+ * https://docs.discord.com/developers/monetization/entitlements#delete-test-entitlement
81
81
  */
82
82
  export type RESTDeleteAPIEntitlementResult = undefined;
83
83
  /**
84
- * https://discord.com/developers/docs/monetization/skus#list-skus
84
+ * https://docs.discord.com/developers/monetization/skus#list-skus
85
85
  */
86
86
  export type RESTGetAPISKUsResult = APISKU[];
87
87
  /**
88
- * https://discord.com/developers/docs/monetization/entitlements#consume-an-entitlement
88
+ * https://docs.discord.com/developers/monetization/entitlements#consume-an-entitlement
89
89
  */
90
90
  export type RESTPostAPIEntitlementConsumeResult = undefined;
91
91
  /**
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EntitlementOwnerType = void 0;
4
4
  /**
5
- * https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement
5
+ * https://docs.discord.com/developers/monetization/entitlements#create-test-entitlement
6
6
  */
7
7
  var EntitlementOwnerType;
8
8
  (function (EntitlementOwnerType) {
@@ -1,11 +1,11 @@
1
1
  import type { Permissions, Snowflake } from '..';
2
- import type { APIApplication, APIGuild, APIUser, APIWebhook, OAuth2Scopes } from '../payloads';
2
+ import type { APIApplication, APIGuild, APIUser, APIWebhook, ApplicationIntegrationType, OAuth2Scopes } from '../payloads';
3
3
  /**
4
- * https://discord.com/developers/docs/topics/oauth2#get-current-bot-application-information
4
+ * https://docs.discord.com/developers/topics/oauth2#get-current-bot-application-information
5
5
  */
6
- export type RESTGetAPIOAuth2CurrentApplicationResult = Omit<APIApplication, 'flags'>;
6
+ export type RESTGetAPIOAuth2CurrentApplicationResult = Omit<APIApplication, 'flags'> & Partial<Pick<APIApplication, 'flags'>>;
7
7
  /**
8
- * https://discord.com/developers/docs/topics/oauth2#get-current-authorization-information
8
+ * https://docs.discord.com/developers/topics/oauth2#get-current-authorization-information
9
9
  */
10
10
  export interface RESTGetAPIOAuth2CurrentAuthorizationResult {
11
11
  /**
@@ -26,7 +26,7 @@ export interface RESTGetAPIOAuth2CurrentAuthorizationResult {
26
26
  user?: APIUser;
27
27
  }
28
28
  /**
29
- * https://discord.com/developers/docs/topics/oauth2#authorization-code-grant
29
+ * https://docs.discord.com/developers/topics/oauth2#authorization-code-grant
30
30
  */
31
31
  export interface RESTOAuth2AuthorizationQuery {
32
32
  response_type: 'code';
@@ -37,14 +37,14 @@ export interface RESTOAuth2AuthorizationQuery {
37
37
  prompt?: 'consent' | 'none';
38
38
  }
39
39
  /**
40
- * https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-redirect-url-example
40
+ * https://docs.discord.com/developers/topics/oauth2#authorization-code-grant-redirect-url-example
41
41
  */
42
42
  export interface RESTOAuth2AuthorizationQueryResult {
43
43
  code: string;
44
44
  state?: string;
45
45
  }
46
46
  /**
47
- * https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-redirect-url-example
47
+ * https://docs.discord.com/developers/topics/oauth2#authorization-code-grant-redirect-url-example
48
48
  */
49
49
  export interface RESTPostOAuth2AccessTokenURLEncodedData {
50
50
  client_id: Snowflake;
@@ -54,7 +54,7 @@ export interface RESTPostOAuth2AccessTokenURLEncodedData {
54
54
  redirect_uri?: string;
55
55
  }
56
56
  /**
57
- * https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-access-token-response
57
+ * https://docs.discord.com/developers/topics/oauth2#authorization-code-grant-access-token-response
58
58
  */
59
59
  export interface RESTPostOAuth2AccessTokenResult {
60
60
  access_token: string;
@@ -64,7 +64,7 @@ export interface RESTPostOAuth2AccessTokenResult {
64
64
  scope: string;
65
65
  }
66
66
  /**
67
- * https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-refresh-token-exchange-example
67
+ * https://docs.discord.com/developers/topics/oauth2#authorization-code-grant-refresh-token-exchange-example
68
68
  */
69
69
  export interface RESTPostOAuth2RefreshTokenURLEncodedData {
70
70
  client_id: Snowflake;
@@ -74,7 +74,7 @@ export interface RESTPostOAuth2RefreshTokenURLEncodedData {
74
74
  }
75
75
  export type RESTPostOAuth2RefreshTokenResult = RESTPostOAuth2AccessTokenResult;
76
76
  /**
77
- * https://discord.com/developers/docs/topics/oauth2#implicit-grant
77
+ * https://docs.discord.com/developers/topics/oauth2#implicit-grant
78
78
  */
79
79
  export interface RESTOAuth2ImplicitAuthorizationQuery {
80
80
  response_type: 'token';
@@ -85,11 +85,11 @@ export interface RESTOAuth2ImplicitAuthorizationQuery {
85
85
  prompt?: 'consent' | 'none';
86
86
  }
87
87
  /**
88
- * https://discord.com/developers/docs/topics/oauth2#implicit-grant-redirect-url-example
88
+ * https://docs.discord.com/developers/topics/oauth2#implicit-grant-redirect-url-example
89
89
  */
90
90
  export type RESTOAuth2ImplicitAuthorizationURLFragmentResult = Omit<RESTPostOAuth2AccessTokenResult, 'refresh_token'>;
91
91
  /**
92
- * https://discord.com/developers/docs/topics/oauth2#client-credentials-grant
92
+ * https://docs.discord.com/developers/topics/oauth2#client-credentials-grant
93
93
  */
94
94
  export interface RESTPostOAuth2ClientCredentialsURLEncodedData {
95
95
  grant_type: 'client_credentials';
@@ -97,7 +97,7 @@ export interface RESTPostOAuth2ClientCredentialsURLEncodedData {
97
97
  }
98
98
  export type RESTPostOAuth2ClientCredentialsResult = RESTOAuth2ImplicitAuthorizationURLFragmentResult;
99
99
  /**
100
- * https://discord.com/developers/docs/topics/oauth2#bot-authorization-flow-bot-auth-parameters
100
+ * https://docs.discord.com/developers/topics/oauth2#bot-authorization-flow-bot-auth-parameters
101
101
  */
102
102
  export interface RESTOAuth2BotAuthorizationQuery {
103
103
  /**
@@ -107,11 +107,11 @@ export interface RESTOAuth2BotAuthorizationQuery {
107
107
  /**
108
108
  * Needs to include bot for the bot flow
109
109
  */
110
- scope: OAuth2Scopes.Bot | `${OAuth2Scopes.Bot}${' ' | '%20'}${string}` | `${string}${' ' | '%20'}${OAuth2Scopes.Bot}` | `${string}${' ' | '%20'}${OAuth2Scopes.Bot}${string}${' ' | '%20'}`;
110
+ scope?: OAuth2Scopes.Bot | `${OAuth2Scopes.Bot}${' ' | '%20'}${string}` | `${string}${' ' | '%20'}${OAuth2Scopes.Bot}` | `${string}${' ' | '%20'}${OAuth2Scopes.Bot}${string}${' ' | '%20'}`;
111
111
  /**
112
112
  * The permissions you're requesting
113
113
  *
114
- * See https://discord.com/developers/docs/topics/permissions
114
+ * See https://docs.discord.com/developers/topics/permissions
115
115
  */
116
116
  permissions?: Permissions;
117
117
  /**
@@ -122,9 +122,13 @@ export interface RESTOAuth2BotAuthorizationQuery {
122
122
  * `true` or `false`—disallows the user from changing the guild dropdown
123
123
  */
124
124
  disable_guild_select?: boolean;
125
+ /**
126
+ * The installation context for the authorization
127
+ */
128
+ integration_type?: ApplicationIntegrationType;
125
129
  }
126
130
  /**
127
- * https://discord.com/developers/docs/topics/oauth2#advanced-bot-authorization
131
+ * https://docs.discord.com/developers/topics/oauth2#advanced-bot-authorization
128
132
  */
129
133
  export interface RESTOAuth2AdvancedBotAuthorizationQuery {
130
134
  client_id: Snowflake;
@@ -148,7 +152,7 @@ export interface RESTOAuth2AdvancedBotAuthorizationQueryResult {
148
152
  permissions: Permissions;
149
153
  }
150
154
  /**
151
- * https://discord.com/developers/docs/topics/oauth2#advanced-bot-authorization-extended-bot-authorization-access-token-example
155
+ * https://docs.discord.com/developers/topics/oauth2#advanced-bot-authorization-extended-bot-authorization-access-token-example
152
156
  */
153
157
  export interface RESTPostOAuth2AccessTokenWithBotAndGuildsScopeResult {
154
158
  access_token: string;
@@ -159,7 +163,7 @@ export interface RESTPostOAuth2AccessTokenWithBotAndGuildsScopeResult {
159
163
  guild: APIGuild;
160
164
  }
161
165
  /**
162
- * https://discord.com/developers/docs/topics/oauth2#webhooks-webhook-token-response-example
166
+ * https://docs.discord.com/developers/topics/oauth2#webhooks-webhook-token-response-example
163
167
  */
164
168
  export interface RESTPostOAuth2AccessTokenWithBotAndWebhookIncomingScopeResult {
165
169
  access_token: string;
@@ -1,6 +1,6 @@
1
1
  import type { APIMessage, APIPoll, APIPollAnswer, APIUser, Snowflake } from '../index';
2
2
  /**
3
- * https://discord.com/developers/docs/resources/poll#get-answer-voters
3
+ * https://docs.discord.com/developers/resources/poll#get-answer-voters
4
4
  */
5
5
  export interface RESTGetAPIPollAnswerVotersQuery {
6
6
  /**
@@ -15,7 +15,7 @@ export interface RESTGetAPIPollAnswerVotersQuery {
15
15
  limit?: number;
16
16
  }
17
17
  /**
18
- * https://discord.com/developers/docs/resources/poll#poll-create-request-object-poll-create-request-object-structure
18
+ * https://docs.discord.com/developers/resources/poll#poll-create-request-object-poll-create-request-object-structure
19
19
  */
20
20
  export interface RESTAPIPollCreate extends Omit<APIPoll, 'allow_multiselect' | 'answers' | 'expiry' | 'layout_type' | 'results'>, Partial<Pick<APIPoll, 'allow_multiselect' | 'layout_type'>> {
21
21
  /**
@@ -30,7 +30,7 @@ export interface RESTAPIPollCreate extends Omit<APIPoll, 'allow_multiselect' | '
30
30
  duration?: number;
31
31
  }
32
32
  /**
33
- * https://discord.com/developers/docs/resources/poll#get-answer-voters
33
+ * https://docs.discord.com/developers/resources/poll#get-answer-voters
34
34
  */
35
35
  export interface RESTGetAPIPollAnswerVotersResult {
36
36
  /**
@@ -39,6 +39,6 @@ export interface RESTGetAPIPollAnswerVotersResult {
39
39
  users: APIUser[];
40
40
  }
41
41
  /**
42
- * https://discord.com/developers/docs/resources/poll#expire-poll
42
+ * https://docs.discord.com/developers/resources/poll#expire-poll
43
43
  */
44
44
  export type RESTPostAPIPollExpireResult = APIMessage;
@@ -1,14 +1,14 @@
1
1
  import type { Snowflake } from '..';
2
2
  import type { APISoundboardSound } from '../payloads/soundboard';
3
3
  /**
4
- * https://discord.com/developers/docs/resources/soundboard#send-soundboard-sound
4
+ * https://docs.discord.com/developers/resources/soundboard#send-soundboard-sound
5
5
  * @fires VoiceChannelEffectSend
6
6
  * @requires Permissions Speak and UseSoundboard
7
7
  * @satisfies VoiceState without deaf, self_deaf, mute, or suppress enabled.
8
8
  */
9
9
  export type RESTPostAPISendSoundboardSoundResult = undefined;
10
10
  /**
11
- * https://discord.com/developers/docs/resources/soundboard#send-soundboard-sound-json-params
11
+ * https://docs.discord.com/developers/resources/soundboard#send-soundboard-sound-json-params
12
12
  */
13
13
  export interface RESTPostAPISoundboardSendSoundJSONBody {
14
14
  /** the id of the soundboard sound to play */
@@ -17,21 +17,21 @@ export interface RESTPostAPISoundboardSendSoundJSONBody {
17
17
  source_guild_id?: Snowflake;
18
18
  }
19
19
  /**
20
- * https://discord.com/developers/docs/resources/soundboard#list-default-soundboard-sounds
20
+ * https://docs.discord.com/developers/resources/soundboard#list-default-soundboard-sounds
21
21
  */
22
22
  export type RESTGetAPISoundboardDefaultSoundsResult = APISoundboardSound[];
23
23
  /**
24
- * https://discord.com/developers/docs/resources/soundboard#list-guild-soundboard-sounds
24
+ * https://docs.discord.com/developers/resources/soundboard#list-guild-soundboard-sounds
25
25
  */
26
26
  export type RESTGetAPIGuildSoundboardSoundsResult = {
27
27
  items: APISoundboardSound[];
28
28
  };
29
29
  /**
30
- * https://discord.com/developers/docs/resources/soundboard#get-guild-soundboard-sound
30
+ * https://docs.discord.com/developers/resources/soundboard#get-guild-soundboard-sound
31
31
  */
32
32
  export type RESTGetAPIGuildSoundboardSoundResult = APISoundboardSound;
33
33
  /**
34
- * https://discord.com/developers/docs/resources/soundboard#create-guild-soundboard-sound
34
+ * https://docs.discord.com/developers/resources/soundboard#create-guild-soundboard-sound
35
35
  *
36
36
  * Soundboard sounds have a max file size of 512kb and a max duration of 5.2 seconds.
37
37
  * This endpoint supports the X-Audit-Log-Reason header.
@@ -51,7 +51,7 @@ export interface RESTPostAPIGuildSoundboardSoundJSONBody {
51
51
  }
52
52
  export type RESTPostAPIGuildSoundboardSoundResult = APISoundboardSound;
53
53
  /**
54
- * https://discord.com/developers/docs/resources/soundboard#modify-guild-soundboard-sound
54
+ * https://docs.discord.com/developers/resources/soundboard#modify-guild-soundboard-sound
55
55
  * @fires GuildSoundboardSoundUpdate
56
56
  */
57
57
  export interface RESTPatchAPIGuildSoundboardSoundJSONBody {
@@ -66,7 +66,7 @@ export interface RESTPatchAPIGuildSoundboardSoundJSONBody {
66
66
  }
67
67
  export type RESTPatchAPIGuildSoundboardSoundResult = APISoundboardSound;
68
68
  /**
69
- * https://discord.com/developers/docs/resources/soundboard#delete-guild-soundboard-sound
69
+ * https://docs.discord.com/developers/resources/soundboard#delete-guild-soundboard-sound
70
70
  * This endpoint supports the X-Audit-Log-Reason header.
71
71
  * @fires GuildSoundboardSoundDelete
72
72
  */