avatar: forgot to remove last-modified from server icon

This commit is contained in:
Cynthia Foxwell 2025-05-05 18:55:08 -06:00
parent 6d82d5a95c
commit 65dd087f3a
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -25,19 +25,19 @@ avatar.callback = async function (msg, line, [user], {server, guild}) {
const url = CDNEndpoints.GUILD_ICON(guildObj.id, guildObj.icon); 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"); const mod = res.headers.get("last-modified");
let description; let description;
if (mod) { if (mod) {
const modDate = Math.floor(new Date(mod).getTime() / 1000); const modDate = Math.floor(new Date(mod).getTime() / 1000);
description = `Updated <t:${modDate}:R>`; description = `Updated <t:${modDate}:R>`;
} }*/
return { return {
embeds: [ embeds: [
{ {
title: "Server Icon", title: "Server Icon",
description, //description,
url, url,
image: { image: {
url, url,