mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
refactor: more oop with stores (#2216)
* refactor: more oop with stores * forgot bulk delete * Revert "forgot bulk delete" This reverts commit 1b4fb999ee07b358ee6e1af9efb8981b84f83af1. * appease linter * missed some shh * fail
This commit is contained in:
@@ -17,7 +17,7 @@ class Invite extends Base {
|
||||
* The guild the invite is for
|
||||
* @type {Guild}
|
||||
*/
|
||||
this.guild = this.client.guilds.create(data.guild, false);
|
||||
this.guild = this.client.guilds.add(data.guild, false);
|
||||
|
||||
/**
|
||||
* The code for this invite
|
||||
@@ -78,14 +78,14 @@ class Invite extends Base {
|
||||
* The user who created this invite
|
||||
* @type {User}
|
||||
*/
|
||||
this.inviter = this.client.users.create(data.inviter);
|
||||
this.inviter = this.client.users.add(data.inviter);
|
||||
}
|
||||
|
||||
/**
|
||||
* The channel the invite is for
|
||||
* @type {GuildChannel}
|
||||
*/
|
||||
this.channel = this.client.channels.create(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