More forcestatic options removed

This commit is contained in:
2024-01-07 23:06:49 +01:00
parent 0296dbff77
commit b3d9fcbc02
29 changed files with 45 additions and 77 deletions

View File

@@ -34,7 +34,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,
}, },
}, },
], ],
@@ -87,7 +87,7 @@ export = {
}, },
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,
}, },
}, },
], ],
@@ -155,7 +155,7 @@ export = {
}, },
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

@@ -151,7 +151,7 @@ export = {
url: member.user.avatarURL() || "", url: member.user.avatarURL() || "",
}, },
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

@@ -301,7 +301,7 @@ export = {
}, },
footer: { footer: {
text: interaction.guild!.name + " | " + devMessage, text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL({ forceStatic: true, }) || undefined, icon_url: interaction.guild!.iconURL() || undefined,
}, },
fields: statsFields, fields: statsFields,
}, },

View File

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

View File

@@ -21,9 +21,7 @@ export default async function ban(
" is currently banned from counting", " is currently banned from counting",
color: embedColor, color: embedColor,
footer: { footer: {
icon_url: interaction.guild!.iconURL({ icon_url: interaction.guild!.iconURL() || undefined,
forceStatic: false,
})!,
text: interaction.guild!.name + " | " + devMessage, text: interaction.guild!.name + " | " + devMessage,
}, },
}, },
@@ -40,7 +38,7 @@ export default async function ban(
" has been banned from counting", " has been banned from counting",
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

@@ -21,9 +21,7 @@ export default async function ban(
" is currently not banned from counting", " is currently not banned from counting",
color: embedColor, color: embedColor,
footer: { footer: {
icon_url: interaction.guild!.iconURL({ icon_url: interaction.guild!.iconURL() || undefined,
forceStatic: false,
})!,
text: interaction.guild!.name + " | " + devMessage, text: interaction.guild!.name + " | " + devMessage,
}, },
}, },
@@ -40,7 +38,7 @@ export default async function ban(
" has been unbanned from counting", " has been unbanned from counting",
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

@@ -87,7 +87,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

@@ -45,7 +45,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,
}, },
}, },
], ],
@@ -100,9 +100,7 @@ export = {
}, },
footer: { footer: {
text: interaction.guild!.name + " | " + devMessage, text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL({ icon_url: interaction.guild!.iconURL() || undefined,
forceStatic: false,
})!,
}, },
}, },
], ],
@@ -170,7 +168,7 @@ export = {
}, },
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

@@ -222,7 +222,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

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

View File

@@ -54,9 +54,7 @@ export default async function guildMember(
}, },
footer: { footer: {
text: interaction.guild!.name + " | " + devMessage, text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL({ icon_url: interaction.guild!.iconURL() || undefined,
forceStatic: false,
})!,
}, },
}, },
], ],
@@ -102,9 +100,7 @@ export default async function guildMember(
}, },
footer: { footer: {
text: interaction.guild!.name + " | " + devMessage, text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL({ icon_url: interaction.guild!.iconURL() || undefined,
forceStatic: false,
})!,
}, },
}, },
], ],
@@ -204,7 +200,7 @@ export default async function guildMember(
], ],
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

@@ -286,7 +286,7 @@ export default async function guildTop(
" | " + " | " +
devMessage + devMessage +
cacheStatusText, cacheStatusText,
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined, icon_url: interaction.guild!.iconURL() || undefined,
}, },
}, },
], ],

View File

@@ -66,10 +66,10 @@ export = {
fields: commandList, fields: commandList,
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: interaction.guild!.iconURL({ forceStatic: true }) || "", 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

@@ -32,7 +32,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,
}, },
image: { image: {
url: instructionsgif, url: instructionsgif,

View File

@@ -114,7 +114,7 @@ export = {
url: member.user.avatarURL() || "", url: member.user.avatarURL() || "",
}, },
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

@@ -27,9 +27,7 @@ export = {
footer: { footer: {
text: interaction.guild!.name + " | " + devMessage, text: interaction.guild!.name + " | " + devMessage,
icon_url: icon_url:
interaction.guild?.iconURL({ interaction.guild?.iconURL() || undefined,
forceStatic: false,
}) || undefined,
}, },
timestamp: new Date().toISOString(), timestamp: new Date().toISOString(),
}, },

View File

@@ -35,7 +35,7 @@ export = {
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: url:
interaction.guild!.iconURL({ forceStatic: false, }) || "", interaction.guild!.iconURL() || "",
}, },
fields: [ fields: [
{ {
@@ -70,7 +70,7 @@ export = {
], ],
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

@@ -46,11 +46,11 @@ export = {
description: message, description: message,
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: interaction.guild!.iconURL({ forceStatic: false, }) || "", url: interaction.guild!.iconURL() || "",
}, },
footer: { footer: {
text: interaction.guild!.id + " | " + devMessage, text: interaction.guild!.id + " | " + devMessage,
icon_url: interaction.guild!.iconURL({ forceStatic: true }) || undefined, icon_url: interaction.guild!.iconURL() || undefined,
}, },
}, },
], ],
@@ -63,7 +63,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

@@ -53,9 +53,7 @@ export = {
footer: { footer: {
text: interaction.guild!.name + " | " + devMessage, text: interaction.guild!.name + " | " + devMessage,
icon_url: icon_url:
interaction.guild!.iconURL({ interaction.guild!.iconURL() || undefined,
forceStatic: false,
}) || undefined,
}, },
}, },
], ],
@@ -95,8 +93,7 @@ export = {
footer: { footer: {
text: interaction.guild!.name + " | " + devMessage, text: interaction.guild!.name + " | " + devMessage,
icon_url: icon_url:
interaction.guild!.iconURL({ forceStatic: true }) || interaction.guild!.iconURL() || undefined,
undefined,
}, },
}, },
], ],

View File

@@ -90,7 +90,7 @@ export = {
}, },
footer: { footer: {
text: "ID: " + user!.id, text: "ID: " + user!.id,
icon_url: user.avatarURL({ forceStatic: false}) || undefined, icon_url: user.avatarURL() || undefined,
}, },
timestamp: new Date().toISOString(), timestamp: new Date().toISOString(),
}, },
@@ -110,7 +110,7 @@ export = {
url: user!.avatarURL() || "", url: user!.avatarURL() || "",
}, },
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

@@ -33,7 +33,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,
}, },
}, },
], ],
@@ -75,9 +75,7 @@ export = {
}, },
footer: { footer: {
text: interaction.guild!.name + " | " + devMessage, text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL({ icon_url: interaction.guild!.iconURL() || undefined,
forceStatic: false,
})!,
}, },
}, },
], ],
@@ -144,7 +142,7 @@ export = {
}, },
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

@@ -60,7 +60,7 @@ export = {
}, },
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

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

View File

@@ -60,8 +60,7 @@ export = {
footer: { footer: {
text: interaction.guild!.name + " | " + devMessage, text: interaction.guild!.name + " | " + devMessage,
icon_url: icon_url:
interaction.guild!.iconURL({ forceStatic: true }) || interaction.guild!.iconURL() || undefined,
undefined,
}, },
}, },
], ],

View File

@@ -61,9 +61,7 @@ export default function loadAutocompleteEvents(client: Client, ft: FileType) {
description: String(error), description: String(error),
color: embedColor, color: embedColor,
footer: { footer: {
icon_url: interaction.guild!.iconURL({ icon_url: interaction.guild!.iconURL() || undefined,
forceStatic: false,
})!,
text: text:
interaction.user.username + interaction.user.username +
" | " + " | " +

View File

@@ -49,9 +49,7 @@ export default function loadButtonEvents(client: Client, ft: FileType) {
description: String(error), description: String(error),
color: embedColor, color: embedColor,
footer: { footer: {
icon_url: interaction.guild!.iconURL({ icon_url: interaction.guild!.iconURL() || undefined,
forceStatic: false,
})!,
text: text:
interaction.user.username + interaction.user.username +
" | " + " | " +

View File

@@ -49,9 +49,7 @@ export default function loadSlashCommandsEvents(client: Client, ft: FileType) {
description: String(error), description: String(error),
color: embedColor, color: embedColor,
footer: { footer: {
icon_url: interaction.guild!.iconURL({ icon_url: interaction.guild!.iconURL() || undefined,
forceStatic: false,
})!,
text: text:
interaction.user.username + interaction.user.username +
" | " + " | " +

View File

@@ -56,9 +56,7 @@ export default function loadContextMenuEvents(client: Client, ft: FileType) {
description: String(error), description: String(error),
color: embedColor, color: embedColor,
footer: { footer: {
icon_url: interaction.guild!.iconURL({ icon_url: interaction.guild!.iconURL() || undefined,
forceStatic: false,
})!,
text: text:
interaction.user.username + interaction.user.username +
" | " + " | " +

View File

@@ -50,9 +50,7 @@ export default function loadModalEvents(client: Client, ft: FileType) {
description: String(error), description: String(error),
color: embedColor, color: embedColor,
footer: { footer: {
icon_url: interaction.guild!.iconURL({ icon_url: interaction.guild!.iconURL() || undefined,
forceStatic: false,
})!,
text: text:
interaction.user.username + interaction.user.username +
" | " + " | " +