Skip to content

Commit

Permalink
docs: nullable types
Browse files Browse the repository at this point in the history
Co-authored-by: Jaw0r3k <jaw0r3k.g@gmail.com>
  • Loading branch information
Jiralite and jaw0r3k authored Sep 10, 2023
1 parent d59ebc6 commit 4698efc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/discord.js/src/structures/GuildScheduledEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class GuildScheduledEvent extends Base {
if ('name' in data) {
/**
* The name of the guild scheduled event
* @type {string}
* @type {?string}
*/
this.name = data.name;
} else {
Expand Down Expand Up @@ -95,7 +95,7 @@ class GuildScheduledEvent extends Base {
if ('privacy_level' in data) {
/**
* The privacy level of the guild scheduled event
* @type {GuildScheduledEventPrivacyLevel}
* @type {?GuildScheduledEventPrivacyLevel}
*/
this.privacyLevel = data.privacy_level;
} else {
Expand All @@ -106,7 +106,7 @@ class GuildScheduledEvent extends Base {
if ('status' in data) {
/**
* The status of the guild scheduled event
* @type {GuildScheduledEventStatus}
* @type {?GuildScheduledEventStatus}
*/
this.status = data.status;
} else {
Expand All @@ -117,7 +117,7 @@ class GuildScheduledEvent extends Base {
if ('entity_type' in data) {
/**
* The type of hosting entity associated with the scheduled event
* @type {GuildScheduledEventEntityType}
* @type {?GuildScheduledEventEntityType}
*/
this.entityType = data.entity_type;
} else {
Expand Down

0 comments on commit 4698efc

Please sign in to comment.