mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
refactor(Managers): rename add to _add (#6060)
This commit is contained in:
@@ -76,13 +76,13 @@ class Invite extends Base {
|
||||
* The user who created this invite
|
||||
* @type {?User}
|
||||
*/
|
||||
this.inviter = data.inviter ? this.client.users.add(data.inviter) : null;
|
||||
this.inviter = data.inviter ? this.client.users._add(data.inviter) : null;
|
||||
|
||||
/**
|
||||
* The user whose stream to display for this voice channel stream invite
|
||||
* @type {?User}
|
||||
*/
|
||||
this.targetUser = data.target_user ? this.client.users.add(data.target_user) : null;
|
||||
this.targetUser = data.target_user ? this.client.users._add(data.target_user) : null;
|
||||
|
||||
/**
|
||||
* The embedded application to open for this voice channel embedded application invite
|
||||
@@ -109,7 +109,7 @@ class Invite extends Base {
|
||||
* The channel the invite is for
|
||||
* @type {Channel}
|
||||
*/
|
||||
this.channel = this.client.channels.add(data.channel, this.guild, false);
|
||||
this.channel = this.client.channels._add(data.channel, this.guild, false);
|
||||
|
||||
/**
|
||||
* The timestamp the invite was created at
|
||||
|
||||
Reference in New Issue
Block a user