avatar: forgot to remove last-modified from server icon
This commit is contained in:
parent
6d82d5a95c
commit
65dd087f3a
1 changed files with 3 additions and 3 deletions
|
@ -25,19 +25,19 @@ avatar.callback = async function (msg, line, [user], {server, guild}) {
|
|||
|
||||
const url = CDNEndpoints.GUILD_ICON(guildObj.id, guildObj.icon);
|
||||
|
||||
const res = await fetch(url, {method: "HEAD"});
|
||||
/*const res = await fetch(url, {method: "HEAD"});
|
||||
const mod = res.headers.get("last-modified");
|
||||
let description;
|
||||
if (mod) {
|
||||
const modDate = Math.floor(new Date(mod).getTime() / 1000);
|
||||
description = `Updated <t:${modDate}:R>`;
|
||||
}
|
||||
}*/
|
||||
|
||||
return {
|
||||
embeds: [
|
||||
{
|
||||
title: "Server Icon",
|
||||
description,
|
||||
//description,
|
||||
url,
|
||||
image: {
|
||||
url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue