From b79722a77b85a39b9a8ec5ae95a5d81360831624 Mon Sep 17 00:00:00 2001 From: Lewdcario Date: Tue, 27 Feb 2018 17:43:51 -0600 Subject: [PATCH] docs: remove trailing commas --- src/structures/ClientUser.js | 2 +- src/structures/Guild.js | 4 ++-- src/structures/GuildMember.js | 2 +- src/structures/Webhook.js | 12 ++++++------ src/structures/interfaces/TextBasedChannel.js | 14 +++++++------- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/structures/ClientUser.js b/src/structures/ClientUser.js index 56c364d39..adb0ae3aa 100644 --- a/src/structures/ClientUser.js +++ b/src/structures/ClientUser.js @@ -374,7 +374,7 @@ class ClientUser extends User { * // Create a Group DM with a token provided from OAuth * client.user.createGroupDM([{ * user: '66564597481480192', - * accessToken: token, + * accessToken: token * }]) * .then(console.log) * .catch(console.error); diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 26243b680..4284fc990 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -507,7 +507,7 @@ class Guild { * @param {string|number} [options.type] Only show entries involving this action type * @returns {Promise} * @example - * // Output an audit log entry + * // Output audit log entries * guild.fetchAuditLogs() * .then(audit => console.log(audit.entries.first())) * .catch(console.error); @@ -603,7 +603,7 @@ class Guild { * @example * guild.search({ * content: 'discord.js', - * before: '2016-11-17', + * before: '2016-11-17' * }) * .then(res => { * const hit = res.messages[0].find(m => m.hit).content; diff --git a/src/structures/GuildMember.js b/src/structures/GuildMember.js index 2d007ada8..f77c8a455 100644 --- a/src/structures/GuildMember.js +++ b/src/structures/GuildMember.js @@ -351,7 +351,7 @@ class GuildMember { * // Set a member's nickname and clear their roles * message.member.edit({ * nick: 'Cool Name', - * roles: [], + * roles: [] * }) * .then(console.log) * .catch(console.error); diff --git a/src/structures/Webhook.js b/src/structures/Webhook.js index 1fb7c5daa..f26b83522 100644 --- a/src/structures/Webhook.js +++ b/src/structures/Webhook.js @@ -104,7 +104,7 @@ class Webhook { * @example * // Send a remote file * webhook.send({ - * files: ['https://cdn.discordapp.com/icons/222078108977594368/6e1019b3179d71046e463a75915e7244.png?size=2048'], + * files: ['https://cdn.discordapp.com/icons/222078108977594368/6e1019b3179d71046e463a75915e7244.png?size=2048'] * }) * .then(console.log) * .catch(console.error); @@ -113,8 +113,8 @@ class Webhook { * webhook.send({ * files: [{ * attachment: 'entire/path/to/file.jpg', - * name: 'file.jpg', - * }], + * name: 'file.jpg' + * }] * }) * .then(console.log) * .catch(console.error); @@ -124,12 +124,12 @@ class Webhook { * embeds: [{ * thumbnail: { * url: 'attachment://file.jpg' - * }, + * } * }], * files: [{ * attachment: 'entire/path/to/file.jpg', - * name: 'file.jpg', - * }], + * name: 'file.jpg' + * }] * }) * .then(console.log) * .catch(console.error); diff --git a/src/structures/interfaces/TextBasedChannel.js b/src/structures/interfaces/TextBasedChannel.js index 5d9f60bb9..32b309f5a 100644 --- a/src/structures/interfaces/TextBasedChannel.js +++ b/src/structures/interfaces/TextBasedChannel.js @@ -78,7 +78,7 @@ class TextBasedChannel { * @example * // Send a remote file * channel.send({ - * files: ['https://cdn.discordapp.com/icons/222078108977594368/6e1019b3179d71046e463a75915e7244.png?size=2048'], + * files: ['https://cdn.discordapp.com/icons/222078108977594368/6e1019b3179d71046e463a75915e7244.png?size=2048'] * }) * .then(console.log) * .catch(console.error); @@ -87,8 +87,8 @@ class TextBasedChannel { * channel.send({ * files: [{ * attachment: 'entire/path/to/file.jpg', - * name: 'file.jpg', - * }], + * name: 'file.jpg' + * }] * }) * .then(console.log) * .catch(console.error); @@ -97,13 +97,13 @@ class TextBasedChannel { * channel.send('This is an embed', { * embed: { * thumbnail: { - * url: 'attachment://file.jpg', - * }, + * url: 'attachment://file.jpg' + * } * }, * files: [{ * attachment: 'entire/path/to/file.jpg', - * name: 'file.jpg', - * }], + * name: 'file.jpg' + * }] * }) * .then(console.log) * .catch(console.error);