diff --git a/src/client/Client.js b/src/client/Client.js index 543163633..6026a0d33 100644 --- a/src/client/Client.js +++ b/src/client/Client.js @@ -271,7 +271,9 @@ class Client extends EventEmitter { * @param {string} token Token of the account to log in with * @returns {Promise} Token of the account used * @example - * client.login('my token'); + * client.login('my token') + * .then(console.log) + * .catch(console.error); */ login(token = this.token) { return this.rest.methods.login(token); @@ -390,6 +392,7 @@ class Client extends EventEmitter { /** * Obtains the OAuth Application of the bot from Discord. + * Bots can only fetch their own profile. * @param {Snowflake} [id='@me'] ID of application to fetch * @returns {Promise} * client.fetchApplication('id') diff --git a/src/structures/GuildAuditLogs.js b/src/structures/GuildAuditLogs.js index 3decfa2f9..0d1821d97 100644 --- a/src/structures/GuildAuditLogs.js +++ b/src/structures/GuildAuditLogs.js @@ -57,7 +57,7 @@ const Targets = { * * INVITE_DELETE: 42 * * WEBHOOK_CREATE: 50 * * WEBHOOK_UPDATE: 51 - * * WEBHOOK_DELETE: 50 + * * WEBHOOK_DELETE: 52 * * EMOJI_CREATE: 60 * * EMOJI_UPDATE: 61 * * EMOJI_DELETE: 62