Skip to content

Commit 3d77eba

Browse files
committed
types: update references
1 parent ad7c33b commit 3d77eba

File tree

11 files changed

+41
-32
lines changed

11 files changed

+41
-32
lines changed

packages/discord.js/src/client/actions/WebhooksUpdate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ class WebhooksUpdate extends Action {
1515
/**
1616
* Emitted whenever a channel has its webhooks changed.
1717
* @event Client#webhooksUpdate
18-
* @param {TextChannel|NewsChannel|VoiceChannel|StageChannel|ForumChannel} channel
18+
* @param {TextChannel|NewsChannel|VoiceChannel|StageChannel|ForumChannel|MediaChannel} channel
1919
* The channel that had a webhook update
2020
*/
2121
client.emit('webhooksUpdate', channel);
2222

2323
/**
2424
* Emitted whenever a channel has its webhooks changed.
2525
* @event Client#webhookUpdate
26-
* @param {TextChannel|NewsChannel|VoiceChannel|StageChannel|ForumChannel} channel
26+
* @param {TextChannel|NewsChannel|VoiceChannel|StageChannel|ForumChannel|MediaChannel} channel
2727
* The channel that had a webhook update
2828
* @deprecated Use {@link Client#event:webhooksUpdate} instead.
2929
*/

packages/discord.js/src/managers/GuildChannelManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class GuildChannelManager extends CachedManager {
194194

195195
/**
196196
* @typedef {ChannelWebhookCreateOptions} WebhookCreateOptions
197-
* @property {TextChannel|NewsChannel|VoiceChannel|StageChannel|ForumChannel|Snowflake} channel
197+
* @property {TextChannel|NewsChannel|VoiceChannel|StageChannel|ForumChannel|MediaChannel|Snowflake} channel
198198
* The channel to create the webhook for
199199
*/
200200

packages/discord.js/src/managers/GuildInviteManager.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ class GuildInviteManager extends CachedManager {
4646
* * NewsChannel
4747
* * StageChannel
4848
* * ForumChannel
49+
* * MediaChannel
4950
* * Snowflake
50-
* @typedef {TextChannel|VoiceChannel|NewsChannel|StageChannel|ForumChannel|Snowflake}
51+
* @typedef {TextChannel|VoiceChannel|NewsChannel|StageChannel|ForumChannel|MediaChannel|Snowflake}
5152
* GuildInvitableChannelResolvable
5253
*/
5354

packages/discord.js/src/managers/ThreadManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ThreadManager extends CachedManager {
2020

2121
/**
2222
* The channel this Manager belongs to
23-
* @type {TextChannel|NewsChannel|ForumChannel}
23+
* @type {TextChannel|NewsChannel|ForumChannel|MediaChannel}
2424
*/
2525
this.channel = channel;
2626
}

packages/discord.js/src/structures/AutoModerationActionExecution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class AutoModerationActionExecution {
8787

8888
/**
8989
* The channel where this action was triggered from.
90-
* @type {?(GuildTextBasedChannel|ForumChannel)}
90+
* @type {?(GuildTextBasedChannel|ForumChannel|MediaChannel)}
9191
* @readonly
9292
*/
9393
get channel() {

packages/discord.js/src/structures/Guild.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ class Guild extends AnonymousGuild {
520520

521521
/**
522522
* Widget channel for this guild
523-
* @type {?(TextChannel|NewsChannel|VoiceChannel|StageChannel|ForumChannel)}
523+
* @type {?(TextChannel|NewsChannel|VoiceChannel|StageChannel|ForumChannel|MediaChannel)}
524524
* @readonly
525525
*/
526526
get widgetChannel() {
@@ -693,14 +693,15 @@ class Guild extends AnonymousGuild {
693693
* Data for the Guild Widget Settings object
694694
* @typedef {Object} GuildWidgetSettings
695695
* @property {boolean} enabled Whether the widget is enabled
696-
* @property {?(TextChannel|NewsChannel|VoiceChannel|StageChannel|ForumChannel)} channel The widget invite channel
696+
* @property {?(TextChannel|NewsChannel|VoiceChannel|StageChannel|ForumChannel|MediaChannel)} channel
697+
* The widget invite channel
697698
*/
698699

699700
/**
700701
* The Guild Widget Settings object
701702
* @typedef {Object} GuildWidgetSettingsData
702703
* @property {boolean} enabled Whether the widget is enabled
703-
* @property {?(TextChannel|NewsChannel|VoiceChannel|StageChannel|ForumChannel|Snowflake)} channel
704+
* @property {?(TextChannel|NewsChannel|VoiceChannel|StageChannel|ForumChannel|MediaChannel|Snowflake)} channel
704705
* The widget invite channel
705706
*/
706707

@@ -875,7 +876,8 @@ class Guild extends AnonymousGuild {
875876
* Welcome channel data
876877
* @typedef {Object} WelcomeChannelData
877878
* @property {string} description The description to show for this welcome channel
878-
* @property {TextChannel|NewsChannel|ForumChannel|Snowflake} channel The channel to link for this welcome channel
879+
* @property {TextChannel|NewsChannel|ForumChannel|MediaChannel|Snowflake} channel
880+
* The channel to link for this welcome channel
879881
* @property {EmojiIdentifierResolvable} [emoji] The emoji to display for this welcome channel
880882
*/
881883

packages/discord.js/src/structures/GuildChannel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const { getSortableGroupTypes } = require('../util/Util');
1717
* - {@link NewsChannel}
1818
* - {@link StageChannel}
1919
* - {@link ForumChannel}
20+
* - {@link MediaChannel}
2021
* @extends {BaseChannel}
2122
* @abstract
2223
*/

packages/discord.js/src/structures/ThreadChannel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class ThreadChannel extends BaseChannel {
250250

251251
/**
252252
* The parent channel of this thread
253-
* @type {?(NewsChannel|TextChannel|ForumChannel)}
253+
* @type {?(NewsChannel|TextChannel|ForumChannel|MediaChannel)}
254254
* @readonly
255255
*/
256256
get parent() {

packages/discord.js/src/structures/Webhook.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class Webhook {
147147

148148
/**
149149
* The channel the webhook belongs to
150-
* @type {?(TextChannel|VoiceChannel|StageChannel|NewsChannel|ForumChannel)}
150+
* @type {?(TextChannel|VoiceChannel|StageChannel|NewsChannel|ForumChannel|MediaChannel)}
151151
* @readonly
152152
*/
153153
get channel() {
@@ -264,7 +264,7 @@ class Webhook {
264264
* @typedef {Object} WebhookEditOptions
265265
* @property {string} [name=this.name] The new name for the webhook
266266
* @property {?(BufferResolvable)} [avatar] The new avatar for the webhook
267-
* @property {GuildTextChannelResolvable|VoiceChannel|StageChannel|ForumChannel} [channel]
267+
* @property {GuildTextChannelResolvable|VoiceChannel|StageChannel|ForumChannel|MediaChannel} [channel]
268268
* The new channel for the webhook
269269
* @property {string} [reason] Reason for editing the webhook
270270
*/

packages/discord.js/src/structures/WelcomeChannel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class WelcomeChannel extends Base {
4242

4343
/**
4444
* The channel of this welcome channel
45-
* @type {?(TextChannel|NewsChannel|ForumChannel)}
45+
* @type {?(TextChannel|NewsChannel|ForumChannel|MediaChannel)}
4646
*/
4747
get channel() {
4848
return this.client.channels.resolve(this.channelId);

0 commit comments

Comments
 (0)