fix(GuildScheduledEvent): handle missing image (#7625)

This commit is contained in:
Almeida
2022-03-24 19:59:07 +00:00
committed by GitHub
parent fb9a9c2211
commit c684ac55e1

View File

@@ -153,11 +153,15 @@ class GuildScheduledEvent extends Base {
this.entityMetadata ??= null; this.entityMetadata ??= null;
} }
/** if ('image' in data) {
* The cover image hash for this scheduled event /**
* @type {?string} * The cover image hash for this scheduled event
*/ * @type {?string}
this.image = data.image ?? null; */
this.image = data.image;
} else {
this.image ??= null;
}
} }
/** /**