diff --git a/src/structures/ClientApplication.js b/src/structures/ClientApplication.js index 901481cbe..5c9e1a4c2 100644 --- a/src/structures/ClientApplication.js +++ b/src/structures/ClientApplication.js @@ -55,7 +55,7 @@ class ClientApplication extends Application { /** * The owner of this OAuth application - * @type {?User|Team} + * @type {?(User|Team)} */ this.owner = data.team ? new Team(this.client, data.team) diff --git a/src/structures/ClientUser.js b/src/structures/ClientUser.js index c1b3d97ef..7321ee178 100644 --- a/src/structures/ClientUser.js +++ b/src/structures/ClientUser.js @@ -103,7 +103,7 @@ class ClientUser extends Structures.get('User') { * @property {PresenceStatusData} [status] Status of the user * @property {boolean} [afk] Whether the user is AFK * @property {ActivitiesOptions[]} [activities] Activity the user is playing - * @property {?number|number[]} [shardID] Shard Id(s) to have the activity set on + * @property {?(number|number[])} [shardID] Shard Id(s) to have the activity set on */ /** @@ -130,7 +130,7 @@ class ClientUser extends Structures.get('User') { /** * Sets the status of the client user. * @param {PresenceStatusData} status Status to change to - * @param {?number|number[]} [shardID] Shard ID(s) to have the activity set on + * @param {?(number|number[])} [shardID] Shard ID(s) to have the activity set on * @returns {Presence} * @example * // Set the client user's status diff --git a/src/structures/CommandInteraction.js b/src/structures/CommandInteraction.js index deec0d9a2..f710e34a0 100644 --- a/src/structures/CommandInteraction.js +++ b/src/structures/CommandInteraction.js @@ -17,7 +17,7 @@ class CommandInteraction extends Interaction { /** * The channel this interaction was sent in - * @type {?TextChannel|NewsChannel|DMChannel} + * @type {?(TextChannel|NewsChannel|DMChannel)} * @name CommandInteraction#channel * @readonly */ diff --git a/src/structures/GuildAuditLogs.js b/src/structures/GuildAuditLogs.js index 6a8055b7d..c5b20c8e0 100644 --- a/src/structures/GuildAuditLogs.js +++ b/src/structures/GuildAuditLogs.js @@ -354,7 +354,7 @@ class GuildAuditLogsEntry { /** * Specific property changes - * @type {?(AuditLogChange[])} + * @type {?AuditLogChange[]} */ this.changes = data.changes?.map(c => ({ key: c.key, old: c.old_value, new: c.new_value })) ?? null; diff --git a/src/structures/Interaction.js b/src/structures/Interaction.js index 7f0559992..7e42f2178 100644 --- a/src/structures/Interaction.js +++ b/src/structures/Interaction.js @@ -58,7 +58,7 @@ class Interaction extends Base { /** * If this interaction was sent in a guild, the member which sent it - * @type {?GuildMember|APIGuildMember} + * @type {?(GuildMember|APIGuildMember)} */ this.member = data.member ? this.guild?.members.add(data.member) ?? data.member : null; diff --git a/src/structures/InteractionCollector.js b/src/structures/InteractionCollector.js index 8ccefda68..71b2c32a8 100644 --- a/src/structures/InteractionCollector.js +++ b/src/structures/InteractionCollector.js @@ -39,7 +39,7 @@ class InteractionCollector extends Collector { /** * The channel from which to collect interactions, if provided - * @type {?TextChannel|DMChannel|NewsChannel} + * @type {?(TextChannel|DMChannel|NewsChannel)} */ this.channel = this.message?.channel ?? options.channel ?? null; diff --git a/src/structures/Webhook.js b/src/structures/Webhook.js index 0ed8a5522..838f5649e 100644 --- a/src/structures/Webhook.js +++ b/src/structures/Webhook.js @@ -68,13 +68,13 @@ class Webhook { /** * The owner of the webhook - * @type {?User|APIUser} + * @type {?(User|APIUser)} */ this.owner = data.user ? this.client.users?.add(data.user) ?? data.user : null; /** * The source guild of the webhook - * @type {?Guild|APIGuild} + * @type {?(Guild|APIGuild)} */ this.sourceGuild = data.source_guild ? this.client.guilds?.add(data.source_guild, false) ?? data.source_guild @@ -82,7 +82,7 @@ class Webhook { /** * The source channel of the webhook - * @type {?Channel|APIChannel} + * @type {?(Channel|APIChannel)} */ this.sourceChannel = this.client.channels?.resolve(data.source_channel?.id) ?? data.source_channel ?? null; } diff --git a/src/structures/WelcomeChannel.js b/src/structures/WelcomeChannel.js index 21b6b5117..66a90c941 100644 --- a/src/structures/WelcomeChannel.js +++ b/src/structures/WelcomeChannel.js @@ -42,7 +42,7 @@ class WelcomeChannel extends Base { /** * The channel of this welcome channel - * @type {?TextChannel|NewsChannel} + * @type {?(TextChannel|NewsChannel)} */ get channel() { return this.client.channels.resolve(this.channelID);