Several improvements

- Rename Guild#updateChannelPositions -> setChannelPositions
- Allow Guild#setChannelPositions to take ChannelResolvables
- Prioritise ClientDataResolver#resolveChannel's string case
- Minor cleanup
This commit is contained in:
Schuyler Cebulskie
2017-02-25 15:29:32 -05:00
parent 18bcd2f7e2
commit f3a7f59824
7 changed files with 27 additions and 20 deletions

View File

@@ -304,15 +304,15 @@ class ClientUser extends User {
/**
* An object containing either a user or access token, and an optional nickname
* @typedef {Object} GroupDMRecipientOptions
* @property {UserResolvable|Snowflake} [user] User to add to the group dm
* (only available if a user is creating the dm)
* @property {string} [accessToken] Access token to use to add a user to the group dm
* (only available if a bot is creating the dm)
* @property {string} [nick] Permanent nickname (only available if a bot is creating the dm)
* @property {UserResolvable|Snowflake} [user] User to add to the group DM
* (only available if a user is creating the DM)
* @property {string} [accessToken] Access token to use to add a user to the group DM
* (only available if a bot is creating the DM)
* @property {string} [nick] Permanent nickname (only available if a bot is creating the DM)
*/
/**
* Create a group dm
* Creates a group DM
* @param {GroupDMRecipientOptions[]} recipients The recipients
* @returns {Promise<GroupDMChannel>}
*/
@@ -325,6 +325,7 @@ class ClientUser extends User {
}
/**
* Accepts an invite to join a guild
* @param {Invite|string} invite Invite or code to accept
* @returns {Promise<Guild>} Joined guild
*/