mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
chore: update Vanity typedef
This commit is contained in:
@@ -754,16 +754,16 @@ class Guild extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An object containing information about a guild's vanity url.
|
* An object containing information about a guild's vanity invite.
|
||||||
* @typedef {Object} VanityData
|
* @typedef {Object} Vanity
|
||||||
* @property {?string} code Vanity URL invite code, not the full url
|
* @property {?string} code Vanity invite code
|
||||||
* @property {?number} uses How many times this invite has been used
|
* @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.
|
* Fetches the vanity url invite object to this guild.
|
||||||
* Resolves with an object containing the vanity url invite code and the use count
|
* Resolves with an object containing the vanity url invite code and the use count
|
||||||
* @returns {Promise<VanityData>}
|
* @returns {Promise<Vanity>}
|
||||||
* @example
|
* @example
|
||||||
* // Fetch invite data
|
* // Fetch invite data
|
||||||
* guild.fetchVanityData()
|
* guild.fetchVanityData()
|
||||||
|
|||||||
Reference in New Issue
Block a user