mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +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;
|
||||
|
||||
1
typings/index.d.ts
vendored
1
typings/index.d.ts
vendored
@@ -878,6 +878,7 @@ declare module 'discord.js' {
|
||||
public setNickname(nickname: string, reason?: string): Promise<GuildMember>;
|
||||
public toJSON(): object;
|
||||
public toString(): string;
|
||||
public valueOf(): string;
|
||||
}
|
||||
|
||||
export class Integration extends Base {
|
||||
|
||||
Reference in New Issue
Block a user