mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
Fix loads of JSDoc type issues
This commit is contained in:
@@ -11,7 +11,7 @@ class ClientOAuth2Application extends OAuth2Application {
|
||||
|
||||
/**
|
||||
* The app's flags
|
||||
* @type {int}
|
||||
* @type {number}
|
||||
*/
|
||||
this.flags = data.flags;
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ class OAuth2Application {
|
||||
|
||||
/**
|
||||
* The app's RPC origins
|
||||
* @type {Array<String>}
|
||||
* @type {Array<string>}
|
||||
*/
|
||||
this.rpcOrigins = data.rpc_origins;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user