From 48016e51156d1211a889b416a01b1294746095e5 Mon Sep 17 00:00:00 2001 From: MateoDeveloper <79017590+Mateo-tem@users.noreply.github.com> Date: Wed, 3 Aug 2022 11:01:28 -0500 Subject: [PATCH] docs: fix wrong reference links (#545) --- .../v10/_interactions/_applicationCommands/chatInput.ts | 2 +- .../v10/_interactions/_applicationCommands/contextMenu.ts | 6 +++--- deno/payloads/v10/_interactions/applicationCommands.ts | 2 +- deno/payloads/v10/application.ts | 2 +- deno/payloads/v10/channel.ts | 4 ++-- deno/payloads/v10/guild.ts | 6 +++--- deno/payloads/v10/invite.ts | 4 ++-- deno/payloads/v10/teams.ts | 2 +- deno/payloads/v10/template.ts | 4 ++-- .../v9/_interactions/_applicationCommands/chatInput.ts | 2 +- .../v9/_interactions/_applicationCommands/contextMenu.ts | 6 +++--- deno/payloads/v9/_interactions/applicationCommands.ts | 2 +- deno/payloads/v9/application.ts | 2 +- deno/payloads/v9/channel.ts | 4 ++-- deno/payloads/v9/guild.ts | 6 +++--- deno/payloads/v9/invite.ts | 4 ++-- deno/payloads/v9/teams.ts | 2 +- deno/payloads/v9/template.ts | 4 ++-- deno/rest/v10/guild.ts | 2 +- deno/rest/v9/guild.ts | 2 +- .../v10/_interactions/_applicationCommands/chatInput.ts | 2 +- .../v10/_interactions/_applicationCommands/contextMenu.ts | 6 +++--- payloads/v10/_interactions/applicationCommands.ts | 2 +- payloads/v10/application.ts | 2 +- payloads/v10/channel.ts | 4 ++-- payloads/v10/guild.ts | 6 +++--- payloads/v10/invite.ts | 4 ++-- payloads/v10/teams.ts | 2 +- payloads/v10/template.ts | 4 ++-- payloads/v9/_interactions/_applicationCommands/chatInput.ts | 2 +- .../v9/_interactions/_applicationCommands/contextMenu.ts | 6 +++--- payloads/v9/_interactions/applicationCommands.ts | 2 +- payloads/v9/application.ts | 2 +- payloads/v9/channel.ts | 4 ++-- payloads/v9/guild.ts | 6 +++--- payloads/v9/invite.ts | 4 ++-- payloads/v9/teams.ts | 2 +- payloads/v9/template.ts | 4 ++-- rest/v10/guild.ts | 2 +- rest/v9/guild.ts | 2 +- 40 files changed, 68 insertions(+), 68 deletions(-) diff --git a/deno/payloads/v10/_interactions/_applicationCommands/chatInput.ts b/deno/payloads/v10/_interactions/_applicationCommands/chatInput.ts index baccb4cf..f82ce85d 100644 --- a/deno/payloads/v10/_interactions/_applicationCommands/chatInput.ts +++ b/deno/payloads/v10/_interactions/_applicationCommands/chatInput.ts @@ -108,7 +108,7 @@ export type APIApplicationCommandInteractionDataBasicOption = | APIApplicationCommandInteractionDataAttachmentOption; /** - * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */ export interface APIChatInputApplicationCommandInteractionData extends APIBaseApplicationCommandInteractionData { diff --git a/deno/payloads/v10/_interactions/_applicationCommands/contextMenu.ts b/deno/payloads/v10/_interactions/_applicationCommands/contextMenu.ts index 1a8797f1..c4c22b0f 100644 --- a/deno/payloads/v10/_interactions/_applicationCommands/contextMenu.ts +++ b/deno/payloads/v10/_interactions/_applicationCommands/contextMenu.ts @@ -10,7 +10,7 @@ import type { import type { APIDMInteractionWrapper, APIGuildInteractionWrapper } from '../base.ts'; /** - * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */ export interface APIUserApplicationCommandInteractionData extends APIBaseApplicationCommandInteractionData { @@ -27,7 +27,7 @@ export interface APIUserApplicationCommandInteractionDataResolved { } /** - * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */ export interface APIMessageApplicationCommandInteractionData extends APIBaseApplicationCommandInteractionData { @@ -43,7 +43,7 @@ export interface APIMessageApplicationCommandInteractionDataResolved { } /** - * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */ export type APIContextMenuInteractionData = | APIUserApplicationCommandInteractionData diff --git a/deno/payloads/v10/_interactions/applicationCommands.ts b/deno/payloads/v10/_interactions/applicationCommands.ts index 788cc0cc..6b3e5bbf 100644 --- a/deno/payloads/v10/_interactions/applicationCommands.ts +++ b/deno/payloads/v10/_interactions/applicationCommands.ts @@ -101,7 +101,7 @@ export enum ApplicationCommandType { } /** - * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */ export type APIApplicationCommandInteractionData = | APIChatInputApplicationCommandInteractionData diff --git a/deno/payloads/v10/application.ts b/deno/payloads/v10/application.ts index ea6d6779..1624879a 100644 --- a/deno/payloads/v10/application.ts +++ b/deno/payloads/v10/application.ts @@ -62,7 +62,7 @@ export interface APIApplication { /** * The hexadecimal encoded key for verification in interactions and the GameSDK's GetTicket function * - * See https://discord.com/developers/docs/game-sdk/applications#get-ticket + * See https://discord.com/developers/docs/game-sdk/applications#getticket */ verify_key: string; /** diff --git a/deno/payloads/v10/channel.ts b/deno/payloads/v10/channel.ts index 924d00e5..6239b110 100644 --- a/deno/payloads/v10/channel.ts +++ b/deno/payloads/v10/channel.ts @@ -438,7 +438,7 @@ export interface APIMessage { /** * Sent with Rich Presence-related chat embeds * - * See https://discord.com/developers/docs/resources/channel#message-object-message-application-structure + * See https://discord.com/developers/docs/resources/application#application-object */ application?: Partial; /** @@ -1160,7 +1160,7 @@ export interface APIBaseComponent { } /** - * https://discord.com/developers/docs/interactions/message-components#component-types + * https://discord.com/developers/docs/interactions/message-components#component-object-component-types */ export enum ComponentType { /** diff --git a/deno/payloads/v10/guild.ts b/deno/payloads/v10/guild.ts index 5c62cd1a..02337a9c 100644 --- a/deno/payloads/v10/guild.ts +++ b/deno/payloads/v10/guild.ts @@ -769,7 +769,7 @@ export interface APIBan { } /** - * https://discord.com/developers/docs/resources/guild#get-guild-widget-example-get-guild-widget + * https://discord.com/developers/docs/resources/guild#guild-widget-object */ export interface APIGuildWidget { id: Snowflake; @@ -781,7 +781,7 @@ export interface APIGuildWidget { } /** - * https://discord.com/developers/docs/resources/guild#get-guild-widget-example-get-guild-widget + * https://discord.com/developers/docs/resources/guild#guild-widget-object-example-guild-widget */ export interface APIGuildWidgetChannel { id: Snowflake; @@ -790,7 +790,7 @@ export interface APIGuildWidgetChannel { } /** - * https://discord.com/developers/docs/resources/guild#get-guild-widget-example-get-guild-widget + * https://discord.com/developers/docs/resources/guild#guild-widget-object-example-guild-widget */ export interface APIGuildWidgetMember { id: string; diff --git a/deno/payloads/v10/invite.ts b/deno/payloads/v10/invite.ts index b23e67ea..fc787cd3 100644 --- a/deno/payloads/v10/invite.ts +++ b/deno/payloads/v10/invite.ts @@ -53,7 +53,7 @@ export interface APIInvite { /** * The type of target for this voice channel invite * - * See https://discord.com/developers/docs/resources/invite#invite-object-target-user-types + * See https://discord.com/developers/docs/resources/invite#invite-object-invite-target-types */ target_type?: InviteTargetType; /** @@ -65,7 +65,7 @@ export interface APIInvite { /** * The embedded application to open for this voice channel embedded application invite * - * See https://discord.com/developers/docs/topics/oauth2#application + * See https://discord.com/developers/docs/resources/application#application-object */ target_application?: Partial; /** diff --git a/deno/payloads/v10/teams.ts b/deno/payloads/v10/teams.ts index f84915c1..3a8f70f2 100644 --- a/deno/payloads/v10/teams.ts +++ b/deno/payloads/v10/teams.ts @@ -32,7 +32,7 @@ export interface APITeam { } /** - * https://discord.com/developers/docs/topics/teams#data-models-team-members-object + * https://discord.com/developers/docs/topics/teams#data-models-team-member-object */ export interface APITeamMember { /** diff --git a/deno/payloads/v10/template.ts b/deno/payloads/v10/template.ts index 6072e54f..14c5a4db 100644 --- a/deno/payloads/v10/template.ts +++ b/deno/payloads/v10/template.ts @@ -1,5 +1,5 @@ /** - * Types extracted from https://discord.com/developers/docs/resources/template + * Types extracted from https://discord.com/developers/docs/resources/guild-template */ import type { APIUser } from './user.ts'; @@ -7,7 +7,7 @@ import type { Snowflake } from '../../globals.ts'; import type { RESTPostAPIGuildsJSONBody } from '../../rest/v10/mod.ts'; /** - * https://discord.com/developers/docs/resources/template#template-object + * https://discord.com/developers/docs/resources/guild-template#guild-template-object */ export interface APITemplate { /** diff --git a/deno/payloads/v9/_interactions/_applicationCommands/chatInput.ts b/deno/payloads/v9/_interactions/_applicationCommands/chatInput.ts index baccb4cf..f82ce85d 100644 --- a/deno/payloads/v9/_interactions/_applicationCommands/chatInput.ts +++ b/deno/payloads/v9/_interactions/_applicationCommands/chatInput.ts @@ -108,7 +108,7 @@ export type APIApplicationCommandInteractionDataBasicOption = | APIApplicationCommandInteractionDataAttachmentOption; /** - * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */ export interface APIChatInputApplicationCommandInteractionData extends APIBaseApplicationCommandInteractionData { diff --git a/deno/payloads/v9/_interactions/_applicationCommands/contextMenu.ts b/deno/payloads/v9/_interactions/_applicationCommands/contextMenu.ts index 1a8797f1..c4c22b0f 100644 --- a/deno/payloads/v9/_interactions/_applicationCommands/contextMenu.ts +++ b/deno/payloads/v9/_interactions/_applicationCommands/contextMenu.ts @@ -10,7 +10,7 @@ import type { import type { APIDMInteractionWrapper, APIGuildInteractionWrapper } from '../base.ts'; /** - * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */ export interface APIUserApplicationCommandInteractionData extends APIBaseApplicationCommandInteractionData { @@ -27,7 +27,7 @@ export interface APIUserApplicationCommandInteractionDataResolved { } /** - * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */ export interface APIMessageApplicationCommandInteractionData extends APIBaseApplicationCommandInteractionData { @@ -43,7 +43,7 @@ export interface APIMessageApplicationCommandInteractionDataResolved { } /** - * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */ export type APIContextMenuInteractionData = | APIUserApplicationCommandInteractionData diff --git a/deno/payloads/v9/_interactions/applicationCommands.ts b/deno/payloads/v9/_interactions/applicationCommands.ts index 5948caad..5c0e86c8 100644 --- a/deno/payloads/v9/_interactions/applicationCommands.ts +++ b/deno/payloads/v9/_interactions/applicationCommands.ts @@ -101,7 +101,7 @@ export enum ApplicationCommandType { } /** - * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */ export type APIApplicationCommandInteractionData = | APIChatInputApplicationCommandInteractionData diff --git a/deno/payloads/v9/application.ts b/deno/payloads/v9/application.ts index ea6d6779..1624879a 100644 --- a/deno/payloads/v9/application.ts +++ b/deno/payloads/v9/application.ts @@ -62,7 +62,7 @@ export interface APIApplication { /** * The hexadecimal encoded key for verification in interactions and the GameSDK's GetTicket function * - * See https://discord.com/developers/docs/game-sdk/applications#get-ticket + * See https://discord.com/developers/docs/game-sdk/applications#getticket */ verify_key: string; /** diff --git a/deno/payloads/v9/channel.ts b/deno/payloads/v9/channel.ts index 54c9f379..c9f20bde 100644 --- a/deno/payloads/v9/channel.ts +++ b/deno/payloads/v9/channel.ts @@ -438,7 +438,7 @@ export interface APIMessage { /** * Sent with Rich Presence-related chat embeds * - * See https://discord.com/developers/docs/resources/channel#message-object-message-application-structure + * See https://discord.com/developers/docs/resources/application#application-object */ application?: Partial; /** @@ -1164,7 +1164,7 @@ export interface APIBaseComponent { } /** - * https://discord.com/developers/docs/interactions/message-components#component-types + * https://discord.com/developers/docs/interactions/message-components#component-object-component-types */ export enum ComponentType { /** diff --git a/deno/payloads/v9/guild.ts b/deno/payloads/v9/guild.ts index 5c62cd1a..02337a9c 100644 --- a/deno/payloads/v9/guild.ts +++ b/deno/payloads/v9/guild.ts @@ -769,7 +769,7 @@ export interface APIBan { } /** - * https://discord.com/developers/docs/resources/guild#get-guild-widget-example-get-guild-widget + * https://discord.com/developers/docs/resources/guild#guild-widget-object */ export interface APIGuildWidget { id: Snowflake; @@ -781,7 +781,7 @@ export interface APIGuildWidget { } /** - * https://discord.com/developers/docs/resources/guild#get-guild-widget-example-get-guild-widget + * https://discord.com/developers/docs/resources/guild#guild-widget-object-example-guild-widget */ export interface APIGuildWidgetChannel { id: Snowflake; @@ -790,7 +790,7 @@ export interface APIGuildWidgetChannel { } /** - * https://discord.com/developers/docs/resources/guild#get-guild-widget-example-get-guild-widget + * https://discord.com/developers/docs/resources/guild#guild-widget-object-example-guild-widget */ export interface APIGuildWidgetMember { id: string; diff --git a/deno/payloads/v9/invite.ts b/deno/payloads/v9/invite.ts index b23e67ea..fc787cd3 100644 --- a/deno/payloads/v9/invite.ts +++ b/deno/payloads/v9/invite.ts @@ -53,7 +53,7 @@ export interface APIInvite { /** * The type of target for this voice channel invite * - * See https://discord.com/developers/docs/resources/invite#invite-object-target-user-types + * See https://discord.com/developers/docs/resources/invite#invite-object-invite-target-types */ target_type?: InviteTargetType; /** @@ -65,7 +65,7 @@ export interface APIInvite { /** * The embedded application to open for this voice channel embedded application invite * - * See https://discord.com/developers/docs/topics/oauth2#application + * See https://discord.com/developers/docs/resources/application#application-object */ target_application?: Partial; /** diff --git a/deno/payloads/v9/teams.ts b/deno/payloads/v9/teams.ts index f84915c1..3a8f70f2 100644 --- a/deno/payloads/v9/teams.ts +++ b/deno/payloads/v9/teams.ts @@ -32,7 +32,7 @@ export interface APITeam { } /** - * https://discord.com/developers/docs/topics/teams#data-models-team-members-object + * https://discord.com/developers/docs/topics/teams#data-models-team-member-object */ export interface APITeamMember { /** diff --git a/deno/payloads/v9/template.ts b/deno/payloads/v9/template.ts index b1846a63..48e45618 100644 --- a/deno/payloads/v9/template.ts +++ b/deno/payloads/v9/template.ts @@ -1,5 +1,5 @@ /** - * Types extracted from https://discord.com/developers/docs/resources/template + * Types extracted from https://discord.com/developers/docs/resources/guild-template */ import type { APIUser } from './user.ts'; @@ -7,7 +7,7 @@ import type { Snowflake } from '../../globals.ts'; import type { RESTPostAPIGuildsJSONBody } from '../../rest/v9/mod.ts'; /** - * https://discord.com/developers/docs/resources/template#template-object + * https://discord.com/developers/docs/resources/guild-template#template-object */ export interface APITemplate { /** diff --git a/deno/rest/v10/guild.ts b/deno/rest/v10/guild.ts index af48e798..c93d1ba4 100644 --- a/deno/rest/v10/guild.ts +++ b/deno/rest/v10/guild.ts @@ -357,7 +357,7 @@ export type RESTPatchAPIGuildChannelPositionsJSONBody = Array< export type RESTPatchAPIGuildChannelPositionsResult = never; /** - * https://discord.com/developers/docs/resources/guild#list-active-threads + * https://discord.com/developers/docs/resources/guild#list-active-guild-threads */ export type RESTGetAPIGuildThreadsResult = APIThreadList; diff --git a/deno/rest/v9/guild.ts b/deno/rest/v9/guild.ts index d8f6a549..1b5232c4 100644 --- a/deno/rest/v9/guild.ts +++ b/deno/rest/v9/guild.ts @@ -357,7 +357,7 @@ export type RESTPatchAPIGuildChannelPositionsJSONBody = Array< export type RESTPatchAPIGuildChannelPositionsResult = never; /** - * https://discord.com/developers/docs/resources/guild#list-active-threads + * https://discord.com/developers/docs/resources/guild#list-active-guild-threads */ export type RESTGetAPIGuildThreadsResult = Omit; diff --git a/payloads/v10/_interactions/_applicationCommands/chatInput.ts b/payloads/v10/_interactions/_applicationCommands/chatInput.ts index 8aaefd96..854bb3a4 100644 --- a/payloads/v10/_interactions/_applicationCommands/chatInput.ts +++ b/payloads/v10/_interactions/_applicationCommands/chatInput.ts @@ -108,7 +108,7 @@ export type APIApplicationCommandInteractionDataBasicOption = | APIApplicationCommandInteractionDataAttachmentOption; /** - * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */ export interface APIChatInputApplicationCommandInteractionData extends APIBaseApplicationCommandInteractionData { diff --git a/payloads/v10/_interactions/_applicationCommands/contextMenu.ts b/payloads/v10/_interactions/_applicationCommands/contextMenu.ts index fde2576c..5db54107 100644 --- a/payloads/v10/_interactions/_applicationCommands/contextMenu.ts +++ b/payloads/v10/_interactions/_applicationCommands/contextMenu.ts @@ -10,7 +10,7 @@ import type { import type { APIDMInteractionWrapper, APIGuildInteractionWrapper } from '../base'; /** - * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */ export interface APIUserApplicationCommandInteractionData extends APIBaseApplicationCommandInteractionData { @@ -27,7 +27,7 @@ export interface APIUserApplicationCommandInteractionDataResolved { } /** - * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */ export interface APIMessageApplicationCommandInteractionData extends APIBaseApplicationCommandInteractionData { @@ -43,7 +43,7 @@ export interface APIMessageApplicationCommandInteractionDataResolved { } /** - * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */ export type APIContextMenuInteractionData = | APIUserApplicationCommandInteractionData diff --git a/payloads/v10/_interactions/applicationCommands.ts b/payloads/v10/_interactions/applicationCommands.ts index d7cb3278..c6c35d66 100644 --- a/payloads/v10/_interactions/applicationCommands.ts +++ b/payloads/v10/_interactions/applicationCommands.ts @@ -101,7 +101,7 @@ export enum ApplicationCommandType { } /** - * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */ export type APIApplicationCommandInteractionData = | APIChatInputApplicationCommandInteractionData diff --git a/payloads/v10/application.ts b/payloads/v10/application.ts index 8b31ad68..4011bfca 100644 --- a/payloads/v10/application.ts +++ b/payloads/v10/application.ts @@ -62,7 +62,7 @@ export interface APIApplication { /** * The hexadecimal encoded key for verification in interactions and the GameSDK's GetTicket function * - * See https://discord.com/developers/docs/game-sdk/applications#get-ticket + * See https://discord.com/developers/docs/game-sdk/applications#getticket */ verify_key: string; /** diff --git a/payloads/v10/channel.ts b/payloads/v10/channel.ts index 2f97bb24..09a7a41c 100644 --- a/payloads/v10/channel.ts +++ b/payloads/v10/channel.ts @@ -438,7 +438,7 @@ export interface APIMessage { /** * Sent with Rich Presence-related chat embeds * - * See https://discord.com/developers/docs/resources/channel#message-object-message-application-structure + * See https://discord.com/developers/docs/resources/application#application-object */ application?: Partial; /** @@ -1160,7 +1160,7 @@ export interface APIBaseComponent { } /** - * https://discord.com/developers/docs/interactions/message-components#component-types + * https://discord.com/developers/docs/interactions/message-components#component-object-component-types */ export enum ComponentType { /** diff --git a/payloads/v10/guild.ts b/payloads/v10/guild.ts index bd9d91d5..c3a26f68 100644 --- a/payloads/v10/guild.ts +++ b/payloads/v10/guild.ts @@ -769,7 +769,7 @@ export interface APIBan { } /** - * https://discord.com/developers/docs/resources/guild#get-guild-widget-example-get-guild-widget + * https://discord.com/developers/docs/resources/guild#guild-widget-object */ export interface APIGuildWidget { id: Snowflake; @@ -781,7 +781,7 @@ export interface APIGuildWidget { } /** - * https://discord.com/developers/docs/resources/guild#get-guild-widget-example-get-guild-widget + * https://discord.com/developers/docs/resources/guild#guild-widget-object-example-guild-widget */ export interface APIGuildWidgetChannel { id: Snowflake; @@ -790,7 +790,7 @@ export interface APIGuildWidgetChannel { } /** - * https://discord.com/developers/docs/resources/guild#get-guild-widget-example-get-guild-widget + * https://discord.com/developers/docs/resources/guild#guild-widget-object-example-guild-widget */ export interface APIGuildWidgetMember { id: string; diff --git a/payloads/v10/invite.ts b/payloads/v10/invite.ts index 450caa38..f7078ee4 100644 --- a/payloads/v10/invite.ts +++ b/payloads/v10/invite.ts @@ -53,7 +53,7 @@ export interface APIInvite { /** * The type of target for this voice channel invite * - * See https://discord.com/developers/docs/resources/invite#invite-object-target-user-types + * See https://discord.com/developers/docs/resources/invite#invite-object-invite-target-types */ target_type?: InviteTargetType; /** @@ -65,7 +65,7 @@ export interface APIInvite { /** * The embedded application to open for this voice channel embedded application invite * - * See https://discord.com/developers/docs/topics/oauth2#application + * See https://discord.com/developers/docs/resources/application#application-object */ target_application?: Partial; /** diff --git a/payloads/v10/teams.ts b/payloads/v10/teams.ts index 4a33e198..010e6ac5 100644 --- a/payloads/v10/teams.ts +++ b/payloads/v10/teams.ts @@ -32,7 +32,7 @@ export interface APITeam { } /** - * https://discord.com/developers/docs/topics/teams#data-models-team-members-object + * https://discord.com/developers/docs/topics/teams#data-models-team-member-object */ export interface APITeamMember { /** diff --git a/payloads/v10/template.ts b/payloads/v10/template.ts index 467929f7..e52e89f9 100644 --- a/payloads/v10/template.ts +++ b/payloads/v10/template.ts @@ -1,5 +1,5 @@ /** - * Types extracted from https://discord.com/developers/docs/resources/template + * Types extracted from https://discord.com/developers/docs/resources/guild-template */ import type { APIUser } from './user'; @@ -7,7 +7,7 @@ import type { Snowflake } from '../../globals'; import type { RESTPostAPIGuildsJSONBody } from '../../rest/v10/index'; /** - * https://discord.com/developers/docs/resources/template#template-object + * https://discord.com/developers/docs/resources/guild-template#guild-template-object */ export interface APITemplate { /** diff --git a/payloads/v9/_interactions/_applicationCommands/chatInput.ts b/payloads/v9/_interactions/_applicationCommands/chatInput.ts index 8aaefd96..854bb3a4 100644 --- a/payloads/v9/_interactions/_applicationCommands/chatInput.ts +++ b/payloads/v9/_interactions/_applicationCommands/chatInput.ts @@ -108,7 +108,7 @@ export type APIApplicationCommandInteractionDataBasicOption = | APIApplicationCommandInteractionDataAttachmentOption; /** - * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */ export interface APIChatInputApplicationCommandInteractionData extends APIBaseApplicationCommandInteractionData { diff --git a/payloads/v9/_interactions/_applicationCommands/contextMenu.ts b/payloads/v9/_interactions/_applicationCommands/contextMenu.ts index fde2576c..5db54107 100644 --- a/payloads/v9/_interactions/_applicationCommands/contextMenu.ts +++ b/payloads/v9/_interactions/_applicationCommands/contextMenu.ts @@ -10,7 +10,7 @@ import type { import type { APIDMInteractionWrapper, APIGuildInteractionWrapper } from '../base'; /** - * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */ export interface APIUserApplicationCommandInteractionData extends APIBaseApplicationCommandInteractionData { @@ -27,7 +27,7 @@ export interface APIUserApplicationCommandInteractionDataResolved { } /** - * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */ export interface APIMessageApplicationCommandInteractionData extends APIBaseApplicationCommandInteractionData { @@ -43,7 +43,7 @@ export interface APIMessageApplicationCommandInteractionDataResolved { } /** - * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */ export type APIContextMenuInteractionData = | APIUserApplicationCommandInteractionData diff --git a/payloads/v9/_interactions/applicationCommands.ts b/payloads/v9/_interactions/applicationCommands.ts index 9b100bbb..8f493391 100644 --- a/payloads/v9/_interactions/applicationCommands.ts +++ b/payloads/v9/_interactions/applicationCommands.ts @@ -101,7 +101,7 @@ export enum ApplicationCommandType { } /** - * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */ export type APIApplicationCommandInteractionData = | APIChatInputApplicationCommandInteractionData diff --git a/payloads/v9/application.ts b/payloads/v9/application.ts index 8b31ad68..4011bfca 100644 --- a/payloads/v9/application.ts +++ b/payloads/v9/application.ts @@ -62,7 +62,7 @@ export interface APIApplication { /** * The hexadecimal encoded key for verification in interactions and the GameSDK's GetTicket function * - * See https://discord.com/developers/docs/game-sdk/applications#get-ticket + * See https://discord.com/developers/docs/game-sdk/applications#getticket */ verify_key: string; /** diff --git a/payloads/v9/channel.ts b/payloads/v9/channel.ts index d014d9d1..d12c7073 100644 --- a/payloads/v9/channel.ts +++ b/payloads/v9/channel.ts @@ -438,7 +438,7 @@ export interface APIMessage { /** * Sent with Rich Presence-related chat embeds * - * See https://discord.com/developers/docs/resources/channel#message-object-message-application-structure + * See https://discord.com/developers/docs/resources/application#application-object */ application?: Partial; /** @@ -1164,7 +1164,7 @@ export interface APIBaseComponent { } /** - * https://discord.com/developers/docs/interactions/message-components#component-types + * https://discord.com/developers/docs/interactions/message-components#component-object-component-types */ export enum ComponentType { /** diff --git a/payloads/v9/guild.ts b/payloads/v9/guild.ts index bd9d91d5..c3a26f68 100644 --- a/payloads/v9/guild.ts +++ b/payloads/v9/guild.ts @@ -769,7 +769,7 @@ export interface APIBan { } /** - * https://discord.com/developers/docs/resources/guild#get-guild-widget-example-get-guild-widget + * https://discord.com/developers/docs/resources/guild#guild-widget-object */ export interface APIGuildWidget { id: Snowflake; @@ -781,7 +781,7 @@ export interface APIGuildWidget { } /** - * https://discord.com/developers/docs/resources/guild#get-guild-widget-example-get-guild-widget + * https://discord.com/developers/docs/resources/guild#guild-widget-object-example-guild-widget */ export interface APIGuildWidgetChannel { id: Snowflake; @@ -790,7 +790,7 @@ export interface APIGuildWidgetChannel { } /** - * https://discord.com/developers/docs/resources/guild#get-guild-widget-example-get-guild-widget + * https://discord.com/developers/docs/resources/guild#guild-widget-object-example-guild-widget */ export interface APIGuildWidgetMember { id: string; diff --git a/payloads/v9/invite.ts b/payloads/v9/invite.ts index 450caa38..f7078ee4 100644 --- a/payloads/v9/invite.ts +++ b/payloads/v9/invite.ts @@ -53,7 +53,7 @@ export interface APIInvite { /** * The type of target for this voice channel invite * - * See https://discord.com/developers/docs/resources/invite#invite-object-target-user-types + * See https://discord.com/developers/docs/resources/invite#invite-object-invite-target-types */ target_type?: InviteTargetType; /** @@ -65,7 +65,7 @@ export interface APIInvite { /** * The embedded application to open for this voice channel embedded application invite * - * See https://discord.com/developers/docs/topics/oauth2#application + * See https://discord.com/developers/docs/resources/application#application-object */ target_application?: Partial; /** diff --git a/payloads/v9/teams.ts b/payloads/v9/teams.ts index 4a33e198..010e6ac5 100644 --- a/payloads/v9/teams.ts +++ b/payloads/v9/teams.ts @@ -32,7 +32,7 @@ export interface APITeam { } /** - * https://discord.com/developers/docs/topics/teams#data-models-team-members-object + * https://discord.com/developers/docs/topics/teams#data-models-team-member-object */ export interface APITeamMember { /** diff --git a/payloads/v9/template.ts b/payloads/v9/template.ts index a4d26432..405ec3a0 100644 --- a/payloads/v9/template.ts +++ b/payloads/v9/template.ts @@ -1,5 +1,5 @@ /** - * Types extracted from https://discord.com/developers/docs/resources/template + * Types extracted from https://discord.com/developers/docs/resources/guild-template */ import type { APIUser } from './user'; @@ -7,7 +7,7 @@ import type { Snowflake } from '../../globals'; import type { RESTPostAPIGuildsJSONBody } from '../../rest/v9/index'; /** - * https://discord.com/developers/docs/resources/template#template-object + * https://discord.com/developers/docs/resources/guild-template#template-object */ export interface APITemplate { /** diff --git a/rest/v10/guild.ts b/rest/v10/guild.ts index 3a074d16..e309d9b6 100644 --- a/rest/v10/guild.ts +++ b/rest/v10/guild.ts @@ -357,7 +357,7 @@ export type RESTPatchAPIGuildChannelPositionsJSONBody = Array< export type RESTPatchAPIGuildChannelPositionsResult = never; /** - * https://discord.com/developers/docs/resources/guild#list-active-threads + * https://discord.com/developers/docs/resources/guild#list-active-guild-threads */ export type RESTGetAPIGuildThreadsResult = APIThreadList; diff --git a/rest/v9/guild.ts b/rest/v9/guild.ts index 550469f1..e86ae41c 100644 --- a/rest/v9/guild.ts +++ b/rest/v9/guild.ts @@ -357,7 +357,7 @@ export type RESTPatchAPIGuildChannelPositionsJSONBody = Array< export type RESTPatchAPIGuildChannelPositionsResult = never; /** - * https://discord.com/developers/docs/resources/guild#list-active-threads + * https://discord.com/developers/docs/resources/guild#list-active-guild-threads */ export type RESTGetAPIGuildThreadsResult = Omit;