docs(Client): add missing example tag and closing parenthesis (#3024)

This commit is contained in:
izexi
2019-01-17 08:58:04 +00:00
committed by SpaceEEC
parent 5ed2a95856
commit 3b7b282b69

View File

@@ -395,8 +395,9 @@ class Client extends EventEmitter {
* <warn>Bots can only fetch their own profile.</warn>
* @param {Snowflake} [id='@me'] ID of application to fetch
* @returns {Promise<OAuth2Application>}
* @example
* 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);
*/
fetchApplication(id = '@me') {