mirror of
https://github.com/discordjs/discord.js.git
synced 2026-06-01 16:40:07 +00:00
fix: don't patch set data with undefined (#6694)
This commit is contained in:
@@ -125,17 +125,21 @@ class Integration extends Base {
|
||||
}
|
||||
|
||||
_patch(data) {
|
||||
/**
|
||||
* The behavior of expiring subscribers
|
||||
* @type {?number}
|
||||
*/
|
||||
this.expireBehavior = data.expire_behavior;
|
||||
if ('expire_behavior' in data) {
|
||||
/**
|
||||
* The behavior of expiring subscribers
|
||||
* @type {?number}
|
||||
*/
|
||||
this.expireBehavior = data.expire_behavior;
|
||||
}
|
||||
|
||||
/**
|
||||
* The grace period before expiring subscribers
|
||||
* @type {?number}
|
||||
*/
|
||||
this.expireGracePeriod = data.expire_grace_period;
|
||||
if ('expire_grace_period' in data) {
|
||||
/**
|
||||
* The grace period before expiring subscribers
|
||||
* @type {?number}
|
||||
*/
|
||||
this.expireGracePeriod = data.expire_grace_period;
|
||||
}
|
||||
|
||||
if ('application' in data) {
|
||||
if (this.application) {
|
||||
|
||||
Reference in New Issue
Block a user