mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
docs(Client): add missing example tag and closing parenthesis (#3024)
This commit is contained in:
@@ -395,8 +395,9 @@ class Client extends EventEmitter {
|
|||||||
* <warn>Bots can only fetch their own profile.</warn>
|
* <warn>Bots can only fetch their own profile.</warn>
|
||||||
* @param {Snowflake} [id='@me'] ID of application to fetch
|
* @param {Snowflake} [id='@me'] ID of application to fetch
|
||||||
* @returns {Promise<OAuth2Application>}
|
* @returns {Promise<OAuth2Application>}
|
||||||
|
* @example
|
||||||
* client.fetchApplication()
|
* client.fetchApplication()
|
||||||
* .then(application => console.log(`Obtained application with name: ${application.name}`)
|
* .then(application => console.log(`Obtained application with name: ${application.name}`))
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
fetchApplication(id = '@me') {
|
fetchApplication(id = '@me') {
|
||||||
|
|||||||
Reference in New Issue
Block a user