diff --git a/modules/newusers/reports.js b/modules/newusers/reports.js index b46f52e..1b7e809 100644 --- a/modules/newusers/reports.js +++ b/modules/newusers/reports.js @@ -388,7 +388,7 @@ class ReportsChannel { * @param {number|string} user ID or username of the Fandom user being * classified * @param {string} classifierId Discord user ID of the classifying user - * @returns {Promise} Result of the insert operation + * @returns {Promise} Result of the insert operation */ #updateClassification(isSpam, user, classifierId) { const query = typeof user === 'string' ? @@ -405,7 +405,7 @@ class ReportsChannel { * Classifies all unclassified profiles as spam or not spam. * @param {boolean} isSpam Whether the profile is spam * @param {string} classifierId Discord ID of the classifying user - * @returns {Promise} Result of the insert operation + * @returns {Promise} Result of the insert operation */ #updateClassificationAll(isSpam, classifierId) { return this.#db.execute(UPDATE_ALL_PROFILES, [ diff --git a/modules/newusers/setup.js b/modules/newusers/setup.js index e606d46..f5deee2 100644 --- a/modules/newusers/setup.js +++ b/modules/newusers/setup.js @@ -73,7 +73,7 @@ async function setupCommands() { /** * Sets up an application-owned webhook. - * @returns {object} Webhook information + * @returns {Promise} Webhook information */ async function setupWebhook() { const url = new URL('https://discord.com/api/oauth2/authorize'); diff --git a/modules/newusers/util.js b/modules/newusers/util.js index 13f71ed..6d4d3f3 100644 --- a/modules/newusers/util.js +++ b/modules/newusers/util.js @@ -21,7 +21,7 @@ function isReportable(userData) { * Can only get 50 users due to API restrictions. * @param {import('../../include/io.js')} io API client * @param {string[]} usernames Usernames whose data should be retrieved - * @returns {number[]} User IDs of requested users + * @returns {Promise} User IDs of requested users */ async function getIds(io, usernames) { const {query} = await io.query('community', 'en', 'fandom.com', { @@ -36,7 +36,7 @@ async function getIds(io, usernames) { * Retrieves user data about users with specified usernames from the API. * @param {import('../../include/io.js')} io API client * @param {string[]} usernames Usernames whose data should be retrieved - * @returns {object[]} User data + * @returns {Promise} User data */ async function getUserData(io, usernames) { const usernamesLeft = Array.from(usernames);