docs(*): wrap optional properties with union types in parentheses (#6021)

This commit is contained in:
Almeida
2021-07-03 21:00:53 +01:00
committed by GitHub
parent 4bf49809f2
commit ec06ba7ad0
8 changed files with 11 additions and 11 deletions

View File

@@ -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;
}