From d9a8ffc41c52c5650744b690c05f79131e381e4a Mon Sep 17 00:00:00 2001 From: rhearmas <34490428+qu-ota@users.noreply.github.com> Date: Tue, 24 Dec 2019 10:38:30 -0500 Subject: [PATCH] i have things! --- commands/Fun/roll.js | 3 ++- commands/Information/help.js | 7 ++++++- modules/functions.js | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/commands/Fun/roll.js b/commands/Fun/roll.js index 9165d80..39d5550 100644 --- a/commands/Fun/roll.js +++ b/commands/Fun/roll.js @@ -30,7 +30,8 @@ exports.run = async (client, message, args, level) => { } ], { - footer: `Rolled by ${message.author.tag}` + author: `Rolled by ${message.author.tag}`, + authorURL: message.author.avatarURL } ); diff --git a/commands/Information/help.js b/commands/Information/help.js index b21b5b4..8195b3f 100644 --- a/commands/Information/help.js +++ b/commands/Information/help.js @@ -41,7 +41,12 @@ exports.run = (client, message, args, level) => { value: command.conf.aliases.join(", ") !== "" ? command.conf.aliases.join(", ") : "none", inline: true } - ])}); + ], + { + author: message.author.tag, + authorIcon: message.author.avatarURL + }) + }); } } }; diff --git a/modules/functions.js b/modules/functions.js index 5abf8df..1284449 100644 --- a/modules/functions.js +++ b/modules/functions.js @@ -189,8 +189,8 @@ module.exports = (client) => { .setURL(url) .setImage(options.image) .setTimestamp(options.timestamp ? timestampToDate(options.timestamp) : null) - .setFooter(options.footer === true ? randomFooter() : (options.footer ? options.footer : ''), options.footer ? client.user.avatarURL : undefined) - .setAuthor(options.author === undefined ? '' : options.author) + .setFooter(options.footer === true ? randomFooter() : (options.footer ? options.footer : ''), options.footerIcon === true ? options.footerIcon : client.user.avatarURL) + .setAuthor(options.author === undefined ? '' : options.author, options.authorIcon) .setThumbnail(options.thumbnail); };