Compare commits
2 commits
5f7d064750
...
ce7398c94a
Author | SHA1 | Date | |
---|---|---|---|
ce7398c94a | |||
4400d27c48 |
2 changed files with 5 additions and 4 deletions
|
@ -404,9 +404,10 @@ function getUploadLimit(guild) {
|
||||||
const TWITTER_EPOCH = 1288834974657;
|
const TWITTER_EPOCH = 1288834974657;
|
||||||
const DISCORD_EPOCH = 1420070400000;
|
const DISCORD_EPOCH = 1420070400000;
|
||||||
function snowflakeToTimestamp(snowflake, twitter = false) {
|
function snowflakeToTimestamp(snowflake, twitter = false) {
|
||||||
return Math.floor(Number(snowflake) / Math.pow(2, 22)) + twitter
|
return (
|
||||||
? TWITTER_EPOCH
|
Math.floor(Number(snowflake) / Math.pow(2, 22)) +
|
||||||
: DISCORD_EPOCH;
|
(twitter == true ? TWITTER_EPOCH : DISCORD_EPOCH)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
|
@ -1441,7 +1441,7 @@ appinfo.callback = async function (msg, line) {
|
||||||
|
|
||||||
if (app.icon) {
|
if (app.icon) {
|
||||||
embed.thumbnail = {
|
embed.thumbnail = {
|
||||||
url: `${APP_ICON_BASE}/app-icons/${app.id}/${app.icon}.png?size=1024`,
|
url: `${APP_ICON_BASE}${app.id}/${app.icon}.png?size=1024`,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue