comments
This commit is contained in:
parent
065ec7747b
commit
12c0efb7fd
@ -173,12 +173,12 @@ class Resolver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Resolve multiple channels
|
||||||
*
|
*
|
||||||
* @param {array<string>} [resolveables=[]] an array of channel resolveables (name, id)
|
* @param {array<string>} [resolveables=[]] an array of channel resolveables (name, id)
|
||||||
* @param {guild} guild the guild in which to look for channels
|
* @param {guild} guild the guild in which to look for channels
|
||||||
* @param {boolean} [strict=false] whether or not partial names are resolved
|
* @param {boolean} [strict=false] whether or not partial names are resolved
|
||||||
* @returns {array<GuildChannel>} an array of guild channels
|
* @returns {array<GuildChannel> || false} an array of guild channels or false if none were resolved
|
||||||
* @memberof Resolver
|
* @memberof Resolver
|
||||||
*/
|
*/
|
||||||
async resolveChannels(resolveables = [], guild, strict = false) {
|
async resolveChannels(resolveables = [], guild, strict = false) {
|
||||||
@ -228,7 +228,16 @@ class Resolver {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async resolveRoles(resolveables = [], guild, strict) {
|
/**
|
||||||
|
* Resolve multiple roles
|
||||||
|
*
|
||||||
|
* @param {array<string>} [resolveables=[]] an array of roles resolveables (name, id)
|
||||||
|
* @param {Guild} guild the guild in which to look for roles
|
||||||
|
* @param {boolean} [strict=false] whether or not partial names are resolved
|
||||||
|
* @returns {array<GuildRole> || false} an array of roles or false if none were resolved
|
||||||
|
* @memberof Resolver
|
||||||
|
*/
|
||||||
|
async resolveRoles(resolveables = [], guild, strict = false) {
|
||||||
|
|
||||||
if(typeof resolveables === 'string') resolveables = [ resolveables ];
|
if(typeof resolveables === 'string') resolveables = [ resolveables ];
|
||||||
if(resolveables.length === 0) return false;
|
if(resolveables.length === 0) return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user