Removing useless forcestatis option

This commit is contained in:
2024-01-07 23:02:28 +01:00
parent a6d6d86288
commit 0296dbff77
27 changed files with 65 additions and 65 deletions

View File

@@ -115,7 +115,7 @@ export = {
embeds: [{ embeds: [{
author: { author: {
name: mod.user.username, name: mod.user.username,
icon_url: mod.user.avatarURL({ forceStatic: false }) || undefined, icon_url: mod.user.avatarURL() || undefined,
}, },
title: "Member Banned", title: "Member Banned",
description: ` description: `
@@ -126,12 +126,12 @@ export = {
`, `,
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: mod.user.avatarURL({ forceStatic: false }) || "", url: mod.user.avatarURL() || "",
}, },
footer: { footer: {
text: "ID: " + member.user.id, text: "ID: " + member.user.id,
icon_url: icon_url:
member.user.avatarURL({ forceStatic: false }) || member.user.avatarURL() ||
undefined, undefined,
}, },
timestamp: new Date().toISOString(), timestamp: new Date().toISOString(),
@@ -148,7 +148,7 @@ export = {
"**Messages Deleted:** " + messageDeletionDays + " days", "**Messages Deleted:** " + messageDeletionDays + " days",
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: member.user.avatarURL({ forceStatic: false }) || "", url: member.user.avatarURL() || "",
}, },
footer: { footer: {
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined, icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,

View File

@@ -63,7 +63,7 @@ export = {
embeds: [{ embeds: [{
author: { author: {
name: interaction.user.username, name: interaction.user.username,
icon_url: interaction.user.avatarURL({ forceStatic: false }) || undefined, icon_url: interaction.user.avatarURL() || undefined,
}, },
title: "Messages Cleared", title: "Messages Cleared",
description: ` description: `
@@ -73,11 +73,11 @@ export = {
`, `,
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: interaction.user.avatarURL({ forceStatic: false }) || "", url: interaction.user.avatarURL() || "",
}, },
footer: { footer: {
text: "ID: " + channel.id, text: "ID: " + channel.id,
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined, icon_url: interaction.guild!.iconURL() || undefined,
}, },
timestamp: new Date().toISOString() timestamp: new Date().toISOString()
}] }]

View File

@@ -16,7 +16,7 @@ export default async function setup(interaction: ChatInputCommandInteraction): P
description: "Counting channel has been updated to " + channelMention(channel.id), description: "Counting channel has been updated to " + channelMention(channel.id),
color: embedColor, color: embedColor,
footer: { footer: {
icon_url: interaction.guild!.iconURL({ forceStatic: false })!, icon_url: interaction.guild!.iconURL()!,
text: interaction.guild!.name + " | " + devMessage text: interaction.guild!.name + " | " + devMessage
} }
}] }]
@@ -35,7 +35,7 @@ export default async function setup(interaction: ChatInputCommandInteraction): P
description: "Counting channel has been set to " + channelMention(channel.id), description: "Counting channel has been set to " + channelMention(channel.id),
color: embedColor, color: embedColor,
footer: { footer: {
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined, icon_url: interaction.guild!.iconURL() || undefined,
text: interaction.guild!.name + " | " + devMessage text: interaction.guild!.name + " | " + devMessage
} }
}] }]

View File

@@ -58,7 +58,7 @@ export = {
title: "Force Unverified", title: "Force Unverified",
author: { author: {
name: mod.username, name: mod.username,
icon_url: mod.avatarURL({ forceStatic: false }) || undefined, icon_url: mod.avatarURL() || undefined,
}, },
description: ` description: `
**User:** ${userMention(member.user.id)} **User:** ${userMention(member.user.id)}
@@ -68,10 +68,10 @@ export = {
`, `,
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: mod.avatarURL({ forceStatic: false }) || "", url: mod.avatarURL() || "",
}, },
footer: { footer: {
icon_url: member.user.avatarURL({ forceStatic: false }) || undefined, icon_url: member.user.avatarURL() || undefined,
text: "ID: " + member.user.id, text: "ID: " + member.user.id,
}, },
timestamp: new Date().toISOString(), timestamp: new Date().toISOString(),

View File

@@ -186,7 +186,7 @@ export = {
embeds: [{ embeds: [{
author: { author: {
name: modName, name: modName,
icon_url: mod.avatarURL({ forceStatic: false }) || undefined, icon_url: mod.avatarURL() || undefined,
}, },
title: "Force Verified", title: "Force Verified",
description: ` description: `
@@ -197,10 +197,10 @@ export = {
`, `,
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: mod.avatarURL({ forceStatic: false }) || "", url: mod.avatarURL() || "",
}, },
footer: { footer: {
icon_url: user.user.avatarURL({ forceStatic: false }) || undefined, icon_url: user.user.avatarURL() || undefined,
text: "ID: " + user.user.id text: "ID: " + user.user.id
}, },
timestamp: new Date().toISOString(), timestamp: new Date().toISOString(),

View File

@@ -235,7 +235,7 @@ export default async function guildInfo(
footer: { footer: {
text: interaction.guild!.name + " | " + devMessage, text: interaction.guild!.name + " | " + devMessage,
icon_url: icon_url:
interaction.guild!.iconURL({ forceStatic: false }) || interaction.guild!.iconURL() ||
undefined, undefined,
}, },
}, },

View File

@@ -82,7 +82,7 @@ export = {
embeds: [{ embeds: [{
author: { author: {
name: mod.user.username, name: mod.user.username,
icon_url: mod.user.avatarURL({ forceStatic: false }) || undefined, icon_url: mod.user.avatarURL() || undefined,
}, },
title: "Member Kicked", title: "Member Kicked",
description: ` description: `
@@ -92,11 +92,11 @@ export = {
`, `,
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: mod.user.avatarURL({ forceStatic: false }) || "", url: mod.user.avatarURL() || "",
}, },
footer: { footer: {
text: "ID: " + member.user.id, text: "ID: " + member.user.id,
icon_url: member.user.avatarURL({ forceStatic: false }) || undefined, icon_url: member.user.avatarURL() || undefined,
}, },
timestamp: new Date().toISOString(), timestamp: new Date().toISOString(),
}] }]
@@ -111,7 +111,7 @@ export = {
"**Moderator:** " + mod.user.username, "**Moderator:** " + mod.user.username,
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: member.user.avatarURL({ forceStatic: false }) || "", url: member.user.avatarURL() || "",
}, },
footer: { footer: {
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined, icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,

View File

@@ -64,7 +64,7 @@ export = {
embeds: [{ embeds: [{
author: { author: {
name: mod.username, name: mod.username,
icon_url: mod.avatarURL({ forceStatic: false }) || undefined, icon_url: mod.avatarURL() || undefined,
}, },
title: "Waiting List - Remove User", title: "Waiting List - Remove User",
description: ` description: `
@@ -74,10 +74,10 @@ export = {
`, `,
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: mod.avatarURL({ forceStatic: false }) || "", url: mod.avatarURL() || "",
}, },
footer: { footer: {
icon_url: user.avatarURL({ forceStatic: false }) || undefined, icon_url: user.avatarURL() || undefined,
text: "ID: " + user.id, text: "ID: " + user.id,
}, },
timestamp: new Date().toISOString() timestamp: new Date().toISOString()
@@ -94,7 +94,7 @@ export = {
color: embedColor, color: embedColor,
footer: { footer: {
text: interaction.guild!.name + " | " + devMessage, text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined, icon_url: interaction.guild!.iconURL() || undefined,
} }
}, },
], ],

View File

@@ -52,7 +52,7 @@ export = {
embeds: [{ embeds: [{
author: { author: {
name: interaction.user.username, name: interaction.user.username,
icon_url: interaction.user.avatarURL({ forceStatic: false }) || undefined, icon_url: interaction.user.avatarURL() || undefined,
}, },
title: "Nickname", title: "Nickname",
description: ` description: `
@@ -62,11 +62,11 @@ export = {
`, `,
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: interaction.user.avatarURL({ forceStatic: false }) || "", url: interaction.user.avatarURL() || "",
}, },
footer: { footer: {
text: "ID: " + member.user.id, text: "ID: " + member.user.id,
icon_url: member.user.avatarURL({ forceStatic: false }) || undefined, icon_url: member.user.avatarURL() || undefined,
}, },
timestamp: new Date().toISOString() timestamp: new Date().toISOString()
}] }]
@@ -78,7 +78,7 @@ export = {
color: embedColor, color: embedColor,
footer: { footer: {
text: interaction.guild!.name + " | " + devMessage, text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined, icon_url: interaction.guild!.iconURL() || undefined,
} }
}], }],
ephemeral: true, ephemeral: true,

View File

@@ -150,11 +150,11 @@ export = {
description: description, description: description,
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: interaction.guild!.iconURL({ forceStatic: false }) || "", url: interaction.guild!.iconURL() || "",
}, },
footer: { footer: {
text: interaction.guild!.name + " | " + devMessage, text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined, icon_url: interaction.guild!.iconURL() || undefined,
} }
}], }],
components: [ components: [

View File

@@ -67,7 +67,7 @@ export = {
embeds: [{ embeds: [{
author: { author: {
name: interaction.user.username, name: interaction.user.username,
icon_url: interaction.user.avatarURL({ forceStatic: false }) || undefined, icon_url: interaction.user.avatarURL() || undefined,
}, },
title: "Slowmode Update", title: "Slowmode Update",
description: ` description: `
@@ -77,10 +77,10 @@ export = {
`, `,
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: interaction.user.avatarURL({ forceStatic: false }) || "", url: interaction.user.avatarURL() || "",
}, },
footer: { footer: {
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined, icon_url: interaction.guild!.iconURL() || undefined,
text: " ID: " + channel.id text: " ID: " + channel.id
}, },
timestamp: new Date().toISOString() timestamp: new Date().toISOString()

View File

@@ -68,7 +68,7 @@ export = {
color: embedColor, color: embedColor,
footer: { footer: {
text: interaction.guild!.name + " | " + devMessage, text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined, icon_url: interaction.guild!.iconURL() || undefined,
}, },
}, },
], ],

View File

@@ -278,7 +278,7 @@ export default async function beast(
}, },
footer: { footer: {
text: interaction.guild!.name + " | " + devMessage, text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined, icon_url: interaction.guild!.iconURL() || undefined,
}, },
fields: statsFields, fields: statsFields,
}, },

View File

@@ -55,10 +55,10 @@ export default async function help(
fields: commandList, fields: commandList,
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: interaction.guild!.iconURL({ forceStatic: false }) || "", url: interaction.guild!.iconURL() || "",
}, },
footer: { footer: {
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined, icon_url: interaction.guild!.iconURL() || undefined,
text: interaction.guild?.name + " | " + devMessage, text: interaction.guild?.name + " | " + devMessage,
}, },
}, },

View File

@@ -143,7 +143,7 @@ const command: Command = {
embeds: [{ embeds: [{
author: { author: {
name: mod.user.username, name: mod.user.username,
icon_url: mod.user.avatarURL({ forceStatic: false }) || undefined, icon_url: mod.user.avatarURL() || undefined,
}, },
title: title, title: title,
description: ` description: `
@@ -154,11 +154,11 @@ const command: Command = {
`, `,
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: mod.user.avatarURL({ forceStatic: false }) || "", url: mod.user.avatarURL() || "",
}, },
footer: { footer: {
text: "ID: " + target.id, text: "ID: " + target.id,
icon_url: target.user.avatarURL({ forceStatic: false }) || undefined, icon_url: target.user.avatarURL() || undefined,
}, },
timestamp: new Date().toISOString() timestamp: new Date().toISOString()
}] }]
@@ -171,7 +171,7 @@ const command: Command = {
color: embedColor, color: embedColor,
footer: { footer: {
text: interaction.guild!.name + " | " + devMessage, text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined, icon_url: interaction.guild!.iconURL() || undefined,
}, },
}, },
], ],

View File

@@ -76,7 +76,7 @@ export = {
{ {
author: { author: {
name: mod.username, name: mod.username,
icon_url: mod.avatarURL({ forceStatic: false }) || undefined, icon_url: mod.avatarURL() || undefined,
}, },
title: "Member Unbanned", title: "Member Unbanned",
description: ` description: `
@@ -86,7 +86,7 @@ export = {
`, `,
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: mod.avatarURL({ forceStatic: false }) || "", url: mod.avatarURL() || "",
}, },
footer: { footer: {
text: "ID: " + user!.id, text: "ID: " + user!.id,
@@ -107,7 +107,7 @@ export = {
"**Moderator:** " + userMention(mod.id), "**Moderator:** " + userMention(mod.id),
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: user!.avatarURL({ forceStatic: false }) || "", url: user!.avatarURL() || "",
}, },
footer: { footer: {
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined, icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,

View File

@@ -143,10 +143,10 @@ export = {
"Application has been accepted by <@" + user.id + ">.", "Application has been accepted by <@" + user.id + ">.",
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: applicant.avatarURL({ forceStatic: false }) || "", url: applicant.avatarURL() || "",
}, },
footer: { footer: {
icon_url: guild.iconURL({ forceStatic: false }) || undefined, icon_url: guild.iconURL() || undefined,
text: "ID: " + applicant.id, text: "ID: " + applicant.id,
}, },
}, },

View File

@@ -548,7 +548,7 @@ export = {
" - Guild Application", " - Guild Application",
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: user.avatarURL({ forceStatic: false }) || "", url: user.avatarURL() || "",
}, },
fields: [ fields: [
{ {
@@ -585,7 +585,7 @@ export = {
}, },
], ],
footer: { footer: {
icon_url: guild.iconURL({ forceStatic: false }) || "", icon_url: guild.iconURL() || "",
text: "ID: " + user.user.id, text: "ID: " + user.user.id,
}, },
}, },

View File

@@ -317,7 +317,7 @@ module.exports = {
" - Inactivity Application", " - Inactivity Application",
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: user.avatarURL({ forceStatic: false }) || "", url: user.avatarURL() || "",
}, },
fields: [ fields: [
{ {
@@ -334,7 +334,7 @@ module.exports = {
}, },
], ],
footer: { footer: {
icon_url: user.avatarURL({ forceStatic: false }) || undefined, icon_url: user.avatarURL() || undefined,
text: "ID: " + user.user.id, text: "ID: " + user.user.id,
}, },
}, },

View File

@@ -59,10 +59,10 @@ export = {
description: "Application accepted by <@" + user.id + ">.", description: "Application accepted by <@" + user.id + ">.",
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: applicant.avatarURL({ forceStatic: false }) || "", url: applicant.avatarURL() || "",
}, },
footer: { footer: {
icon_url: guild.iconURL({ forceStatic: false }) || undefined, icon_url: guild.iconURL() || undefined,
text: "ID: " + applicantId, text: "ID: " + applicantId,
}, },
}, },

View File

@@ -476,7 +476,7 @@ export = {
" - Staff Application", " - Staff Application",
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: user.avatarURL({ forceStatic: false }) || "", url: user.avatarURL() || "",
}, },
fields: [ fields: [
{ {
@@ -505,7 +505,7 @@ export = {
}, },
], ],
footer: { footer: {
icon_url: guild.iconURL({ forceStatic: false }) || undefined, icon_url: guild.iconURL() || undefined,
text: "ID: " + user.user.id, text: "ID: " + user.user.id,
}, },
}, },

View File

@@ -83,9 +83,9 @@ export = {
"`", "`",
) )
.setColor(embedColor) .setColor(embedColor)
.setThumbnail(guild.iconURL({ forceStatic: false }) || "") .setThumbnail(guild.iconURL() || "")
.setFooter({ .setFooter({
iconURL: guild.iconURL({ forceStatic: false }) || undefined, iconURL: guild.iconURL() || undefined,
text: "ID: " + applicantId, text: "ID: " + applicantId,
}) })

View File

@@ -70,10 +70,10 @@ export = {
"`", "`",
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: applicant.avatarURL({ forceStatic: false }) || "", url: applicant.avatarURL() || "",
}, },
footer: { footer: {
icon_url: guild!.iconURL({ forceStatic: false }) || undefined, icon_url: guild!.iconURL() || undefined,
text: "ID: " + applicant.id, text: "ID: " + applicant.id,
}, },
}, },

View File

@@ -184,7 +184,7 @@ export = {
url: head!, url: head!,
}, },
footer: { footer: {
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined, icon_url: interaction.guild!.iconURL() || undefined,
text: interaction.guild!.name + " | " + devMessage, text: interaction.guild!.name + " | " + devMessage,
}, },
}, },

View File

@@ -116,7 +116,7 @@ async function guildWeekly() {
timestamp: new Date().toISOString(), timestamp: new Date().toISOString(),
footer: { footer: {
text: channel.guild.name + " | " + devMessage, text: channel.guild.name + " | " + devMessage,
icon_url: channel.guild.iconURL({ forceStatic: false }) || undefined, icon_url: channel.guild.iconURL() || undefined,
}, },
}, },
], ],

View File

@@ -23,11 +23,11 @@ export = {
member.user.createdAt.toLocaleString(), member.user.createdAt.toLocaleString(),
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: member.user.avatarURL({ forceStatic: false }) || "", url: member.user.avatarURL() || "",
}, },
footer: { footer: {
text: "ID: " + member.id, text: "ID: " + member.id,
icon_url: member.user.avatarURL({ forceStatic: false }) || undefined, icon_url: member.user.avatarURL() || undefined,
}, },
timestamp: new Date().toISOString(), timestamp: new Date().toISOString(),
}, },

View File

@@ -32,7 +32,7 @@ export = {
color: embedColor, color: embedColor,
footer: { footer: {
text: "ID: " + newState.member!.id, text: "ID: " + newState.member!.id,
icon_url: newState.member!.user.avatarURL({ forceStatic: false }) || undefined, icon_url: newState.member!.user.avatarURL() || undefined,
}, },
timestamp: new Date().toISOString(), timestamp: new Date().toISOString(),
}, },
@@ -50,7 +50,7 @@ export = {
color: embedColor, color: embedColor,
footer: { footer: {
text: "ID: " + oldState.member!.id, text: "ID: " + oldState.member!.id,
icon_url: oldState.member!.user.avatarURL({ forceStatic: false }) || undefined, icon_url: oldState.member!.user.avatarURL() || undefined,
}, },
timestamp: new Date().toISOString(), timestamp: new Date().toISOString(),
}, },
@@ -72,7 +72,7 @@ export = {
color: embedColor, color: embedColor,
footer: { footer: {
text: "ID: " + oldState.member!.id, text: "ID: " + oldState.member!.id,
icon_url: oldState.member!.user.avatarURL({ forceStatic: false }) || undefined, icon_url: oldState.member!.user.avatarURL() || undefined,
}, },
timestamp: new Date().toISOString(), timestamp: new Date().toISOString(),
}, },