diff --git a/src/lib/utils.js b/src/lib/utils.js index f510204..e4162fb 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -404,10 +404,9 @@ function getUploadLimit(guild) { const TWITTER_EPOCH = 1288834974657; const DISCORD_EPOCH = 1420070400000; function snowflakeToTimestamp(snowflake, twitter = false) { - return ( - Math.floor(Number(snowflake) / Math.pow(2, 22)) + - (twitter == true ? TWITTER_EPOCH : DISCORD_EPOCH) - ); + return Math.floor(Number(snowflake) / Math.pow(2, 22)) + twitter + ? TWITTER_EPOCH + : DISCORD_EPOCH; } module.exports = { diff --git a/src/modules/utility.js b/src/modules/utility.js index cdd09e1..ac07802 100644 --- a/src/modules/utility.js +++ b/src/modules/utility.js @@ -1441,7 +1441,7 @@ appinfo.callback = async function (msg, line) { if (app.icon) { embed.thumbnail = { - url: `${APP_ICON_BASE}${app.id}/${app.icon}.png?size=1024`, + url: `${APP_ICON_BASE}/app-icons/${app.id}/${app.icon}.png?size=1024`, }; }