From 88719f0f4209fce2a4d08cecc90fa4c8e2bdde8d Mon Sep 17 00:00:00 2001 From: William Tran Date: Sat, 28 Oct 2017 10:01:17 -0700 Subject: [PATCH] Typos in docs (#2055) * Typo in Guild.createRole docs Added missing semicolon in example code. * consistent periods in docs --- src/client/voice/VoiceBroadcast.js | 2 +- src/structures/Guild.js | 4 ++-- src/structures/Presence.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/voice/VoiceBroadcast.js b/src/client/voice/VoiceBroadcast.js index 678045dca..5a2c54c73 100644 --- a/src/client/voice/VoiceBroadcast.js +++ b/src/client/voice/VoiceBroadcast.js @@ -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 {StreamOptions} [options] Options for playing the stream * @returns {VoiceBroadcast} diff --git a/src/structures/Guild.js b/src/structures/Guild.js index b3ea8535d..f3edd46ab 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -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. * The position will silently reset to 1 if an invalid one is provided, or none. * @param {Object} [options] Options * @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', * }) * .then(role => console.log(`Created role ${role}`)) - * .catch(console.error) + * .catch(console.error); */ createRole({ data = {}, reason } = {}) { if (data.color) data.color = Util.resolveColor(data.color); diff --git a/src/structures/Presence.js b/src/structures/Presence.js index 1eba8170c..91bee3ac3 100644 --- a/src/structures/Presence.js +++ b/src/structures/Presence.js @@ -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 * @returns {boolean} */