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 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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue