docs: update jsdoc

This commit is contained in:
Johnson Chen
2020-04-23 17:00:03 +10:00
parent 59ad48074b
commit b82d9a38f0

View File

@@ -757,7 +757,7 @@ class Guild extends Base {
* An object containing information about a guild's vanity invite. * An object containing information about a guild's vanity invite.
* @typedef {Object} Vanity * @typedef {Object} Vanity
* @property {?string} code Vanity invite code * @property {?string} code Vanity invite code
* @property {?number} uses How many times this invite has been used, must be fetched at least once * @property {?number} uses How many times this invite has been used
*/ */
/** /**
@@ -768,7 +768,7 @@ class Guild extends Base {
* // Fetch invite data * // Fetch invite data
* guild.fetchVanityData() * guild.fetchVanityData()
* .then(res => { * .then(res => {
* console.log(`Vanity URL: https://discord.gg/${res.code}`); * console.log(`Vanity URL: https://discord.gg/${res.code} with ${res.uses} uses`);
* }) * })
* .catch(console.error); * .catch(console.error);
*/ */