chore: update Vanity typedef

This commit is contained in:
Johnson Chen
2020-04-20 04:05:51 +10:00
parent 7d881fde80
commit 59ad48074b

View File

@@ -754,16 +754,16 @@ class Guild extends Base {
}
/**
* An object containing information about a guild's vanity url.
* @typedef {Object} VanityData
* @property {?string} code Vanity URL invite code, not the full url
* @property {?number} uses How many times this invite has been used
* An object containing information about a guild's vanity invite.
* @typedef {Object} Vanity
* @property {?string} code Vanity invite code
* @property {?number} uses How many times this invite has been used, must be fetched at least once
*/
/**
* Fetches the vanity url invite object to this guild.
* Resolves with an object containing the vanity url invite code and the use count
* @returns {Promise<VanityData>}
* @returns {Promise<Vanity>}
* @example
* // Fetch invite data
* guild.fetchVanityData()