mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
More shortcuts
This commit is contained in:
@@ -18,4 +18,12 @@ export default class Invite {
|
||||
toString(){
|
||||
return `https://discord.gg/${this.code}`;
|
||||
}
|
||||
|
||||
delete(){
|
||||
return this.client.deleteInvite.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
join(){
|
||||
return this.client.joinServer.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user