mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
add clientuser acceptinvite (#1081)
* add clientuser acceptinvite * Update RESTMethods.js * Update ClientUser.js * Update ClientUser.js * Update RESTMethods.js
This commit is contained in:
@@ -297,6 +297,14 @@ class ClientUser extends User {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Invite|string} invite Invite or code to accept
|
||||
* @returns {Promise<Guild>} Joined guild
|
||||
*/
|
||||
acceptInvite(invite) {
|
||||
return this.client.rest.methods.acceptInvite(invite);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ClientUser;
|
||||
|
||||
Reference in New Issue
Block a user