mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
Typos in docs (#2055)
* Typo in Guild.createRole docs Added missing semicolon in example code. * consistent periods in docs
This commit is contained in:
@@ -236,7 +236,7 @@ class VoiceBroadcast extends VolumeInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Plays an arbitrary input that can be [handled by ffmpeg](https://ffmpeg.org/ffmpeg-protocols.html#Description)
|
* Plays an arbitrary input that can be [handled by ffmpeg](https://ffmpeg.org/ffmpeg-protocols.html#Description).
|
||||||
* @param {string} input The arbitrary input
|
* @param {string} input The arbitrary input
|
||||||
* @param {StreamOptions} [options] Options for playing the stream
|
* @param {StreamOptions} [options] Options for playing the stream
|
||||||
* @returns {VoiceBroadcast}
|
* @returns {VoiceBroadcast}
|
||||||
|
|||||||
@@ -979,7 +979,7 @@ class Guild extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new role in the guild with given information
|
* Creates a new role in the guild with given information.
|
||||||
* <warn>The position will silently reset to 1 if an invalid one is provided, or none.</warn>
|
* <warn>The position will silently reset to 1 if an invalid one is provided, or none.</warn>
|
||||||
* @param {Object} [options] Options
|
* @param {Object} [options] Options
|
||||||
* @param {RoleData} [options.data] The data to update the role with
|
* @param {RoleData} [options.data] The data to update the role with
|
||||||
@@ -1000,7 +1000,7 @@ class Guild extends Base {
|
|||||||
* reason: 'we needed a role for Super Cool People',
|
* reason: 'we needed a role for Super Cool People',
|
||||||
* })
|
* })
|
||||||
* .then(role => console.log(`Created role ${role}`))
|
* .then(role => console.log(`Created role ${role}`))
|
||||||
* .catch(console.error)
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
createRole({ data = {}, reason } = {}) {
|
createRole({ data = {}, reason } = {}) {
|
||||||
if (data.color) data.color = Util.resolveColor(data.color);
|
if (data.color) data.color = Util.resolveColor(data.color);
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ class Presence {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether this presence is equal to another
|
* Whether this presence is equal to another.
|
||||||
* @param {Presence} presence The presence to compare with
|
* @param {Presence} presence The presence to compare with
|
||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user