diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 7732b77eb..5be248bdd 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -406,7 +406,7 @@ class Guild { /** * Fetch all webhooks for the guild. - * @returns {Collection} + * @returns {Promise>} */ fetchWebhooks() { return this.client.api.guilds[this.id].webhooks.get().then(data => { @@ -418,7 +418,7 @@ class Guild { /** * Fetch available voice regions. - * @returns {Collection} + * @returns {Promise>} */ fetchVoiceRegions() { return this.client.api.guilds[this.id].regions.get().then(res => { @@ -539,8 +539,6 @@ class Guild { * This is only available when using a user account. * @param {MessageSearchOptions} [options={}] Options to pass to the search * @returns {Promise} - * An array containing arrays of messages. Each inner array is a search context cluster. - * The message which has triggered the result will have the `hit` property set to `true`. * @example * guild.search({ * content: 'discord.js', diff --git a/src/structures/interfaces/TextBasedChannel.js b/src/structures/interfaces/TextBasedChannel.js index 3cc4d3d7e..f47db7d1c 100644 --- a/src/structures/interfaces/TextBasedChannel.js +++ b/src/structures/interfaces/TextBasedChannel.js @@ -203,8 +203,6 @@ class TextBasedChannel { * This is only available when using a user account. * @param {MessageSearchOptions} [options={}] Options to pass to the search * @returns {Promise} - * An array containing arrays of messages. Each inner array is a search context cluster - * The message which has triggered the result will have the `hit` property set to `true` * @example * channel.search({ * content: 'discord.js', diff --git a/src/structures/shared/Search.js b/src/structures/shared/Search.js index 76ed72eef..6d7e510b8 100644 --- a/src/structures/shared/Search.js +++ b/src/structures/shared/Search.js @@ -31,8 +31,9 @@ const { TypeError } = require('../../errors'); /** * @typedef {Object} MessageSearchResult - * @type {number} total Total result count - * @type {Array} results Array of message results + * @property {number} total Total result count + * @property {Array} results Array of message results + * The message which has triggered the result will have the `hit` property set to `true` */ module.exports = function search(target, options) {