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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -68,7 +68,7 @@ export = {
color: embedColor,
footer: {
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: {
text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined,
icon_url: interaction.guild!.iconURL() || undefined,
},
fields: statsFields,
},

View File

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

View File

@@ -143,7 +143,7 @@ const command: Command = {
embeds: [{
author: {
name: mod.user.username,
icon_url: mod.user.avatarURL({ forceStatic: false }) || undefined,
icon_url: mod.user.avatarURL() || undefined,
},
title: title,
description: `
@@ -154,11 +154,11 @@ const command: Command = {
`,
color: embedColor,
thumbnail: {
url: mod.user.avatarURL({ forceStatic: false }) || "",
url: mod.user.avatarURL() || "",
},
footer: {
text: "ID: " + target.id,
icon_url: target.user.avatarURL({ forceStatic: false }) || undefined,
icon_url: target.user.avatarURL() || undefined,
},
timestamp: new Date().toISOString()
}]
@@ -171,7 +171,7 @@ const command: Command = {
color: embedColor,
footer: {
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: {
name: mod.username,
icon_url: mod.avatarURL({ forceStatic: false }) || undefined,
icon_url: mod.avatarURL() || undefined,
},
title: "Member Unbanned",
description: `
@@ -86,7 +86,7 @@ export = {
`,
color: embedColor,
thumbnail: {
url: mod.avatarURL({ forceStatic: false }) || "",
url: mod.avatarURL() || "",
},
footer: {
text: "ID: " + user!.id,
@@ -107,7 +107,7 @@ export = {
"**Moderator:** " + userMention(mod.id),
color: embedColor,
thumbnail: {
url: user!.avatarURL({ forceStatic: false }) || "",
url: user!.avatarURL() || "",
},
footer: {
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -116,7 +116,7 @@ async function guildWeekly() {
timestamp: new Date().toISOString(),
footer: {
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(),
color: embedColor,
thumbnail: {
url: member.user.avatarURL({ forceStatic: false }) || "",
url: member.user.avatarURL() || "",
},
footer: {
text: "ID: " + member.id,
icon_url: member.user.avatarURL({ forceStatic: false }) || undefined,
icon_url: member.user.avatarURL() || undefined,
},
timestamp: new Date().toISOString(),
},

View File

@@ -32,7 +32,7 @@ export = {
color: embedColor,
footer: {
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(),
},
@@ -50,7 +50,7 @@ export = {
color: embedColor,
footer: {
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(),
},
@@ -72,7 +72,7 @@ export = {
color: embedColor,
footer: {
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(),
},