mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
fix(Invite): fix valueOf returning undefined (#3582)
* Update Invite.js * Fix typings * Fix ESLint errors
This commit is contained in:
committed by
SpaceEEC
parent
1bcc0c2e1d
commit
d39f17925d
@@ -183,6 +183,10 @@ class Invite extends Base {
|
||||
guild: 'guildID',
|
||||
});
|
||||
}
|
||||
|
||||
valueOf() {
|
||||
return this.code;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Invite;
|
||||
|
||||
Reference in New Issue
Block a user