From d4b4391324dc0a14771ce232832ad88f35fd7f34 Mon Sep 17 00:00:00 2001 From: Monbrey Date: Mon, 13 Jan 2020 06:44:37 +1100 Subject: [PATCH 1/2] Presence does not extend Base, therefore presence.client was undocumented --- src/structures/Presence.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/structures/Presence.js b/src/structures/Presence.js index da6ec23a75cf..89232af4870c 100644 --- a/src/structures/Presence.js +++ b/src/structures/Presence.js @@ -22,6 +22,12 @@ const { ActivityFlags, Endpoints } = require('../util/Constants'); */ class Presence { constructor(data = {}, client) { + /** + * The client that instantiated this + * @name Presence#client + * @type {Client} + * @readonly + */ Object.defineProperty(this, 'client', { value: client }); /** From 79539665df1d097052454f38c9fc4c8413024241 Mon Sep 17 00:00:00 2001 From: Monbrey Date: Mon, 13 Jan 2020 06:56:02 +1100 Subject: [PATCH 2/2] Document Client#fetchVoiceRegions returning a promise --- src/client/Client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/Client.js b/src/client/Client.js index 3bb505cc8015..ebdce4ee216c 100644 --- a/src/client/Client.js +++ b/src/client/Client.js @@ -349,7 +349,7 @@ class Client extends EventEmitter { /** * Obtains the available voice regions from Discord. - * @returns {Collection} + * @returns {Promise>} * @example * client.fetchVoiceRegions() * .then(regions => console.log(`Available regions are: ${regions.map(region => region.name).join(', ')}`))