Compare commits

..

No commits in common. "ce7398c94a82492864a6dd492896207668dc4b83" and "5f7d06475057f729b0ac4137bf7fc5b13e2e1964" have entirely different histories.

2 changed files with 4 additions and 5 deletions

View file

@ -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 = {

View file

@ -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`,
};
}