Fix loads of JSDoc type issues

This commit is contained in:
Schuyler Cebulskie
2016-11-12 20:52:37 -05:00
parent 318bb52c36
commit 90304aa7d6
13 changed files with 19 additions and 17 deletions

View File

@@ -11,7 +11,7 @@ class ClientOAuth2Application extends OAuth2Application {
/**
* The app's flags
* @type {int}
* @type {number}
*/
this.flags = data.flags;

View File

@@ -57,7 +57,7 @@ class EvaluatedPermissions {
* Checks whether the user has all specified permissions, and lists any missing permissions.
* @param {PermissionResolvable[]} permissions The permissions to check for
* @param {boolean} [explicit=false] Whether to require the user to explicitly have the exact permissions
* @returns {array}
* @returns {PermissionResolvable[]}
*/
missingPermissions(permissions, explicit = false) {
return permissions.filter(p => !this.hasPermission(p, explicit));

View File

@@ -418,7 +418,7 @@ class Guild {
/**
* Edit the AFK channel of the guild.
* @param {GuildChannelResolvable} afkChannel The new AFK channel
* @param {ChannelResolvable} afkChannel The new AFK channel
* @returns {Promise<Guild>}
* @example
* // edit the guild AFK channel

View File

@@ -235,7 +235,7 @@ class GuildChannel extends Channel {
* @typedef {Object} InviteOptions
* @property {boolean} [temporary=false] Whether the invite should kick users after 24hrs if they are not given a role
* @property {number} [maxAge=0] Time in seconds the invite expires in
* @property {maxUses} [maxUses=0] Maximum amount of uses for this invite
* @property {number} [maxUses=0] Maximum amount of uses for this invite
*/
/**

View File

@@ -256,7 +256,7 @@ class GuildMember {
* Checks whether the roles of the member allows them to perform specific actions, and lists any missing permissions.
* @param {PermissionResolvable[]} permissions The permissions to check for
* @param {boolean} [explicit=false] Whether to require the member to explicitly have the exact permissions
* @returns {array}
* @returns {PermissionResolvable[]}
*/
missingPermissions(permissions, explicit = false) {
return permissions.filter(p => !this.hasPermission(p, explicit));

View File

@@ -84,7 +84,7 @@ class Message {
/**
* A list of embeds in the message - e.g. YouTube Player
* @type {Embed[]}
* @type {MessageEmbed[]}
*/
this.embeds = data.embeds.map(e => new Embed(this, e));

View File

@@ -46,7 +46,7 @@ class OAuth2Application {
/**
* The app's RPC origins
* @type {Array<String>}
* @type {Array<string>}
*/
this.rpcOrigins = data.rpc_origins;
}