mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
docs: update jsdoc
This commit is contained in:
@@ -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);
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user