From bc22b79f1daa04ff8fa170ef779559408c71a5c2 Mon Sep 17 00:00:00 2001 From: rhearmas <34490428+qu-ota@users.noreply.github.com> Date: Sat, 21 Dec 2019 16:50:41 -0500 Subject: [PATCH] fix footer --- modules/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/functions.js b/modules/functions.js index a02982d..1cd336c 100644 --- a/modules/functions.js +++ b/modules/functions.js @@ -225,7 +225,7 @@ 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 ? global.bot.user.avatarURL : undefined) + .setFooter(options.footer === true ? randomFooter() : (options.footer ? options.footer : ''), options.footer ? client.user.avatarURL : undefined) .setAuthor(options.author === undefined ? '' : options.author) .setThumbnail(options.thumbnail); };