Skip to content

Commit 799fa54

Browse files
authoredSep 10, 2024··
docs: update discord documentation links (#10484)
1 parent 8a74f14 commit 799fa54

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed
 

‎packages/core/src/api/channel.ts

+14-14
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class ChannelsAPI {
4545
/**
4646
* Sends a message in a channel
4747
*
48-
* @see {@link https://discord.com/developers/docs/resources/channel#create-message}
48+
* @see {@link https://discord.com/developers/docs/resources/message#create-message}
4949
* @param channelId - The id of the channel to send the message in
5050
* @param body - The data for sending the message
5151
* @param options - The options for sending the message
@@ -65,7 +65,7 @@ export class ChannelsAPI {
6565
/**
6666
* Edits a message
6767
*
68-
* @see {@link https://discord.com/developers/docs/resources/channel#edit-message}
68+
* @see {@link https://discord.com/developers/docs/resources/message#edit-message}
6969
* @param channelId - The id of the channel the message is in
7070
* @param messageId - The id of the message to edit
7171
* @param body - The data for editing the message
@@ -87,7 +87,7 @@ export class ChannelsAPI {
8787
/**
8888
* Fetches the reactions for a message
8989
*
90-
* @see {@link https://discord.com/developers/docs/resources/channel#get-reactions}
90+
* @see {@link https://discord.com/developers/docs/resources/message#get-reactions}
9191
* @param channelId - The id of the channel the message is in
9292
* @param messageId - The id of the message to get the reactions for
9393
* @param emoji - The emoji to get the reactions for
@@ -110,7 +110,7 @@ export class ChannelsAPI {
110110
/**
111111
* Deletes a reaction for the current user
112112
*
113-
* @see {@link https://discord.com/developers/docs/resources/channel#delete-own-reaction}
113+
* @see {@link https://discord.com/developers/docs/resources/message#delete-own-reaction}
114114
* @param channelId - The id of the channel the message is in
115115
* @param messageId - The id of the message to delete the reaction for
116116
* @param emoji - The emoji to delete the reaction for
@@ -130,7 +130,7 @@ export class ChannelsAPI {
130130
/**
131131
* Deletes a reaction for a user
132132
*
133-
* @see {@link https://discord.com/developers/docs/resources/channel#delete-user-reaction}
133+
* @see {@link https://discord.com/developers/docs/resources/message#delete-user-reaction}
134134
* @param channelId - The id of the channel the message is in
135135
* @param messageId - The id of the message to delete the reaction for
136136
* @param emoji - The emoji to delete the reaction for
@@ -152,7 +152,7 @@ export class ChannelsAPI {
152152
/**
153153
* Deletes all reactions for a message
154154
*
155-
* @see {@link https://discord.com/developers/docs/resources/channel#delete-all-reactions}
155+
* @see {@link https://discord.com/developers/docs/resources/message#delete-all-reactions}
156156
* @param channelId - The id of the channel the message is in
157157
* @param messageId - The id of the message to delete the reactions for
158158
* @param options - The options for deleting the reactions
@@ -168,7 +168,7 @@ export class ChannelsAPI {
168168
/**
169169
* Deletes all reactions of an emoji for a message
170170
*
171-
* @see {@link https://discord.com/developers/docs/resources/channel#delete-all-reactions-for-emoji}
171+
* @see {@link https://discord.com/developers/docs/resources/message#delete-all-reactions-for-emoji}
172172
* @param channelId - The id of the channel the message is in
173173
* @param messageId - The id of the message to delete the reactions for
174174
* @param emoji - The emoji to delete the reactions for
@@ -186,7 +186,7 @@ export class ChannelsAPI {
186186
/**
187187
* Adds a reaction to a message
188188
*
189-
* @see {@link https://discord.com/developers/docs/resources/channel#create-reaction}
189+
* @see {@link https://discord.com/developers/docs/resources/message#create-reaction}
190190
* @param channelId - The id of the channel the message is in
191191
* @param messageId - The id of the message to add the reaction to
192192
* @param emoji - The emoji to add the reaction with
@@ -242,7 +242,7 @@ export class ChannelsAPI {
242242
/**
243243
* Fetches the messages of a channel
244244
*
245-
* @see {@link https://discord.com/developers/docs/resources/channel#get-channel-messages}
245+
* @see {@link https://discord.com/developers/docs/resources/message#get-channel-messages}
246246
* @param channelId - The id of the channel to fetch messages from
247247
* @param query - The query options for fetching messages
248248
* @param options - The options for fetching the messages
@@ -299,7 +299,7 @@ export class ChannelsAPI {
299299
/**
300300
* Deletes a message
301301
*
302-
* @see {@link https://discord.com/developers/docs/resources/channel#delete-message}
302+
* @see {@link https://discord.com/developers/docs/resources/message#delete-message}
303303
* @param channelId - The id of the channel the message is in
304304
* @param messageId - The id of the message to delete
305305
* @param options - The options for deleting the message
@@ -315,7 +315,7 @@ export class ChannelsAPI {
315315
/**
316316
* Bulk deletes messages
317317
*
318-
* @see {@link https://discord.com/developers/docs/resources/channel#bulk-delete-messages}
318+
* @see {@link https://discord.com/developers/docs/resources/message#bulk-delete-messages}
319319
* @param channelId - The id of the channel the messages are in
320320
* @param messageIds - The ids of the messages to delete
321321
* @param options - The options for deleting the messages
@@ -331,7 +331,7 @@ export class ChannelsAPI {
331331
/**
332332
* Fetches a message
333333
*
334-
* @see {@link https://discord.com/developers/docs/resources/channel#get-channel-message}
334+
* @see {@link https://discord.com/developers/docs/resources/message#get-channel-message}
335335
* @param channelId - The id of the channel the message is in
336336
* @param messageId - The id of the message to fetch
337337
* @param options - The options for fetching the message
@@ -345,7 +345,7 @@ export class ChannelsAPI {
345345
/**
346346
* Crossposts a message
347347
*
348-
* @see {@link https://discord.com/developers/docs/resources/channel#crosspost-message}
348+
* @see {@link https://discord.com/developers/docs/resources/message#crosspost-message}
349349
* @param channelId - The id of the channel the message is in
350350
* @param messageId - The id of the message to crosspost
351351
* @param options - The options for crossposting the message
@@ -452,7 +452,7 @@ export class ChannelsAPI {
452452
/**
453453
* Creates a new forum post
454454
*
455-
* @see {@link https://discord.com/developers/docs/resources/channel#start-thread-in-forum-channel}
455+
* @see {@link https://discord.com/developers/docs/resources/channel#start-thread-in-forum-or-media-channel}
456456
* @param channelId - The id of the forum channel to start the thread in
457457
* @param body - The data for starting the thread
458458
* @param options - The options for starting the thread

‎packages/discord.js/src/structures/Message.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ class Message extends Base {
359359
* * {@link MessageType.ChannelFollowAdd}
360360
* * {@link MessageType.Reply}
361361
* * {@link MessageType.ThreadStarterMessage}
362-
* @see {@link https://discord.com/developers/docs/resources/channel#message-types}
362+
* @see {@link https://discord.com/developers/docs/resources/message#message-object-message-types}
363363
* @typedef {Object} MessageReference
364364
* @property {Snowflake} channelId The channel id that was referenced
365365
* @property {Snowflake|undefined} guildId The guild id that was referenced

‎packages/discord.js/src/structures/interfaces/TextBasedChannel.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class TextBasedChannel {
7575
* @property {?string} [content=''] The content for the message. This can only be `null` when editing a message.
7676
* @property {Array<(EmbedBuilder|Embed|APIEmbed)>} [embeds] The embeds for the message
7777
* @property {MessageMentionOptions} [allowedMentions] Which mentions should be parsed from the message content
78-
* (see [here](https://discord.com/developers/docs/resources/channel#allowed-mentions-object) for more details)
78+
* (see [here](https://discord.com/developers/docs/resources/message#allowed-mentions-object) for more details)
7979
* @property {Array<(AttachmentBuilder|Attachment|AttachmentPayload|BufferResolvable)>} [files]
8080
* The files to send with the message.
8181
* @property {Array<(ActionRowBuilder|ActionRow|APIActionRowComponent)>} [components]

0 commit comments

Comments
 (0)
Please sign in to comment.