mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
docs: Typos, consistency and grammar fixes (#6811)
This commit is contained in:
@@ -54,14 +54,14 @@ class ApplicationCommandManager extends CachedManager {
|
||||
*/
|
||||
|
||||
/**
|
||||
* Options used to fetch data from discord
|
||||
* Options used to fetch data from Discord
|
||||
* @typedef {Object} BaseFetchOptions
|
||||
* @property {boolean} [cache=true] Whether to cache the fetched data if it wasn't already
|
||||
* @property {boolean} [force=false] Whether to skip the cache check and request the API
|
||||
*/
|
||||
|
||||
/**
|
||||
* Options used to fetch Application Commands from discord
|
||||
* Options used to fetch Application Commands from Discord
|
||||
* @typedef {BaseFetchOptions} FetchApplicationCommandOptions
|
||||
* @property {Snowflake} [guildId] The guild's id to fetch commands for, for when the guild is not cached
|
||||
*/
|
||||
|
||||
@@ -328,7 +328,7 @@ class ApplicationCommandPermissionsManager extends BaseManager {
|
||||
}
|
||||
|
||||
/**
|
||||
* Options used to check existance of permissions on a command
|
||||
* Options used to check the existence of permissions on a command
|
||||
* <warn>The `command` parameter is not optional when the managers `commandId` is `null`</warn>
|
||||
* @typedef {BaseApplicationCommandPermissionsOptions} HasApplicationCommandPermissionsOptions
|
||||
* @param {UserResolvable|RoleResolvable} permissionId The user or role to check if a permission exists for
|
||||
|
||||
@@ -38,7 +38,7 @@ class GuildEmojiManager extends BaseGuildEmojiManager {
|
||||
* @param {GuildEmojiCreateOptions} [options] Options for creating the emoji
|
||||
* @returns {Promise<Emoji>} The created emoji
|
||||
* @example
|
||||
* // Create a new emoji from a url
|
||||
* // Create a new emoji from a URL
|
||||
* guild.emojis.create('https://i.imgur.com/w3duR07.png', 'rip')
|
||||
* .then(emoji => console.log(`Created new emoji with name ${emoji.name}!`))
|
||||
* .catch(console.error);
|
||||
|
||||
@@ -93,7 +93,7 @@ class GuildManager extends CachedManager {
|
||||
* @property {number} [userLimit] The user limit of the channel
|
||||
* @property {PartialOverwriteData[]} [permissionOverwrites]
|
||||
* Overwrites of the channel
|
||||
* @property {number} [rateLimitPerUser] The rate limit per user of the channel in seconds
|
||||
* @property {number} [rateLimitPerUser] The rate limit per user (slowmode) of the channel in seconds
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
@@ -76,7 +76,7 @@ class GuildMemberManager extends CachedManager {
|
||||
* (requires `MANAGE_ROLES`)
|
||||
* @property {boolean} [mute] Whether the member should be muted (requires `MUTE_MEMBERS`)
|
||||
* @property {boolean} [deaf] Whether the member should be deafened (requires `DEAFEN_MEMBERS`)
|
||||
* @property {boolean} [force] Whehter to skip the cache check and call the API directly
|
||||
* @property {boolean} [force] Whether to skip the cache check and call the API directly
|
||||
* @property {boolean} [fetchWhenExisting=true] Whether to fetch the user if not cached and already a member
|
||||
*/
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ class GuildStickerManager extends CachedManager {
|
||||
* @param {GuildStickerCreateOptions} [options] Options
|
||||
* @returns {Promise<Sticker>} The created sticker
|
||||
* @example
|
||||
* // Create a new sticker from a url
|
||||
* // Create a new sticker from a URL
|
||||
* guild.stickers.create('https://i.imgur.com/w3duR07.png', 'rip')
|
||||
* .then(sticker => console.log(`Created new sticker with name ${sticker.name}!`))
|
||||
* .catch(console.error);
|
||||
|
||||
Reference in New Issue
Block a user