feat(RelationshipsManager): new cancelFriendRequest method
This commit is contained in:
parent
013448da8e
commit
64e6dae193
@ -121,6 +121,16 @@ class RelationshipsManager {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Cancels a friend request.
|
||||
* @param {Snowflake} snowflake Snowflake of the user you want to delete
|
||||
* @returns {Promise<boolean>}
|
||||
*/
|
||||
async cancelFriendRequest(id) {
|
||||
await this.client.api.users['@me'].relationships[id].delete();
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Accepts a friend request.
|
||||
* @param {UserResolvable} user The user to add as a friend
|
||||
|
Loading…
Reference in New Issue
Block a user