From 4b408e6e2a7c337498459d5a68ddaf692c3b3627 Mon Sep 17 00:00:00 2001 From: abalabahaha Date: Thu, 2 Aug 2018 02:18:22 -0700 Subject: [PATCH] Fix doc typos --- lib/Client.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/Client.js b/lib/Client.js index c2ec83ac6..2bd3858fb 100644 --- a/lib/Client.js +++ b/lib/Client.js @@ -157,6 +157,8 @@ class Client extends EventEmitter { this.userSettings = {}; this.notes = {}; this.voiceConnections = new VoiceConnectionManager(); + + this.connect = this.connect.bind(this); } get uptime() { @@ -334,8 +336,8 @@ class Client extends EventEmitter { } /** - * Get a Channel object from a channelID - * @arg {String} [channelID] The ID of the channel + * Get a Channel object from a channel ID + * @arg {String} channelID The ID of the channel * @returns {CategoryChannel | GroupChannel | PrivateChannel | TextChannel | VoiceChannel} */ getChannel(channelID) { @@ -353,7 +355,7 @@ class Client extends EventEmitter { * Create a channel in a guild * @arg {String} guildID The ID of the guild to create the channel in * @arg {String} name The name of the channel - * @arg {String} [type=0] The type of the channel, either 0 or 2 + * @arg {String} [type=0] The type of the channel, either 0 (text), 2 (voice), or 4 (category) * @arg {String} [reason] The reason to be displayed in audit logs * @arg {String} [parentID] ID of the parent category for a channel * @returns {Promise}