From 0296dbff7746c4a4df2071f7e16ceeb53ca62ccb Mon Sep 17 00:00:00 2001 From: Taken Date: Sun, 7 Jan 2024 23:02:28 +0100 Subject: [PATCH] Removing useless forcestatis option --- src/commands/ban.ts | 8 ++++---- src/commands/clear.ts | 6 +++--- src/commands/counting/setup.ts | 4 ++-- src/commands/forceunverify.ts | 6 +++--- src/commands/forceverify.ts | 6 +++--- src/commands/guild/info.ts | 2 +- src/commands/kick.ts | 8 ++++---- src/commands/remove.ts | 8 ++++---- src/commands/setnick.ts | 8 ++++---- src/commands/setup.ts | 4 ++-- src/commands/slowmode.ts | 6 +++--- src/commands/staff.ts | 2 +- src/commands/staff/beast.ts | 2 +- src/commands/staff/help.ts | 4 ++-- src/commands/timeout.ts | 8 ++++---- src/commands/unban.ts | 6 +++--- src/components/buttons/guildapplicationaccept.ts | 4 ++-- src/components/buttons/guildapply.ts | 4 ++-- src/components/buttons/guildinactivitylog.ts | 4 ++-- src/components/buttons/staffapplicationaccept.ts | 4 ++-- src/components/buttons/staffapply.ts | 4 ++-- src/components/modals/denyreasonbox.ts | 4 ++-- src/components/modals/staffdenyreasonbox.ts | 4 ++-- src/components/modals/verifyModal.ts | 2 +- src/events/cron/weeklyGexp.ts | 2 +- src/events/server/guildMemberAdd/logNewJoins.ts | 4 ++-- src/events/server/voiceStateUpdate/vcJoinLeave.ts | 6 +++--- 27 files changed, 65 insertions(+), 65 deletions(-) diff --git a/src/commands/ban.ts b/src/commands/ban.ts index ee2d064..7a5dd8a 100644 --- a/src/commands/ban.ts +++ b/src/commands/ban.ts @@ -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, diff --git a/src/commands/clear.ts b/src/commands/clear.ts index aead802..726fd4e 100644 --- a/src/commands/clear.ts +++ b/src/commands/clear.ts @@ -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() }] diff --git a/src/commands/counting/setup.ts b/src/commands/counting/setup.ts index 7c6704d..a0ef3c2 100644 --- a/src/commands/counting/setup.ts +++ b/src/commands/counting/setup.ts @@ -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 } }] diff --git a/src/commands/forceunverify.ts b/src/commands/forceunverify.ts index bb4d2f8..ab8ce31 100644 --- a/src/commands/forceunverify.ts +++ b/src/commands/forceunverify.ts @@ -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(), diff --git a/src/commands/forceverify.ts b/src/commands/forceverify.ts index 58c3347..a647bd7 100644 --- a/src/commands/forceverify.ts +++ b/src/commands/forceverify.ts @@ -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(), diff --git a/src/commands/guild/info.ts b/src/commands/guild/info.ts index 023322b..b79a4d4 100644 --- a/src/commands/guild/info.ts +++ b/src/commands/guild/info.ts @@ -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, }, }, diff --git a/src/commands/kick.ts b/src/commands/kick.ts index 52c5731..5fb228b 100644 --- a/src/commands/kick.ts +++ b/src/commands/kick.ts @@ -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, diff --git a/src/commands/remove.ts b/src/commands/remove.ts index b182bb9..eec8560 100644 --- a/src/commands/remove.ts +++ b/src/commands/remove.ts @@ -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, } }, ], diff --git a/src/commands/setnick.ts b/src/commands/setnick.ts index 3887184..cd5e49e 100644 --- a/src/commands/setnick.ts +++ b/src/commands/setnick.ts @@ -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, diff --git a/src/commands/setup.ts b/src/commands/setup.ts index f3e66c3..19db759 100644 --- a/src/commands/setup.ts +++ b/src/commands/setup.ts @@ -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: [ diff --git a/src/commands/slowmode.ts b/src/commands/slowmode.ts index 75b6976..d79ee0d 100644 --- a/src/commands/slowmode.ts +++ b/src/commands/slowmode.ts @@ -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() diff --git a/src/commands/staff.ts b/src/commands/staff.ts index d39db4e..c6c712a 100644 --- a/src/commands/staff.ts +++ b/src/commands/staff.ts @@ -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, }, }, ], diff --git a/src/commands/staff/beast.ts b/src/commands/staff/beast.ts index f90783f..98c40e0 100644 --- a/src/commands/staff/beast.ts +++ b/src/commands/staff/beast.ts @@ -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, }, diff --git a/src/commands/staff/help.ts b/src/commands/staff/help.ts index ca9dbdc..f54ed99 100644 --- a/src/commands/staff/help.ts +++ b/src/commands/staff/help.ts @@ -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, }, }, diff --git a/src/commands/timeout.ts b/src/commands/timeout.ts index 1755e55..45d17d8 100644 --- a/src/commands/timeout.ts +++ b/src/commands/timeout.ts @@ -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, }, }, ], diff --git a/src/commands/unban.ts b/src/commands/unban.ts index 9fc9aaa..769e2f8 100644 --- a/src/commands/unban.ts +++ b/src/commands/unban.ts @@ -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, diff --git a/src/components/buttons/guildapplicationaccept.ts b/src/components/buttons/guildapplicationaccept.ts index 341203f..93bc002 100644 --- a/src/components/buttons/guildapplicationaccept.ts +++ b/src/components/buttons/guildapplicationaccept.ts @@ -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, }, }, diff --git a/src/components/buttons/guildapply.ts b/src/components/buttons/guildapply.ts index 2ffc9fc..3a74a9d 100644 --- a/src/components/buttons/guildapply.ts +++ b/src/components/buttons/guildapply.ts @@ -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, }, }, diff --git a/src/components/buttons/guildinactivitylog.ts b/src/components/buttons/guildinactivitylog.ts index a9949db..ab48503 100644 --- a/src/components/buttons/guildinactivitylog.ts +++ b/src/components/buttons/guildinactivitylog.ts @@ -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, }, }, diff --git a/src/components/buttons/staffapplicationaccept.ts b/src/components/buttons/staffapplicationaccept.ts index c4d3e8a..9b5e68c 100644 --- a/src/components/buttons/staffapplicationaccept.ts +++ b/src/components/buttons/staffapplicationaccept.ts @@ -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, }, }, diff --git a/src/components/buttons/staffapply.ts b/src/components/buttons/staffapply.ts index 7573827..f77ad3f 100644 --- a/src/components/buttons/staffapply.ts +++ b/src/components/buttons/staffapply.ts @@ -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, }, }, diff --git a/src/components/modals/denyreasonbox.ts b/src/components/modals/denyreasonbox.ts index 7be2193..6bcfac1 100644 --- a/src/components/modals/denyreasonbox.ts +++ b/src/components/modals/denyreasonbox.ts @@ -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, }) diff --git a/src/components/modals/staffdenyreasonbox.ts b/src/components/modals/staffdenyreasonbox.ts index bdec733..05b701d 100644 --- a/src/components/modals/staffdenyreasonbox.ts +++ b/src/components/modals/staffdenyreasonbox.ts @@ -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, }, }, diff --git a/src/components/modals/verifyModal.ts b/src/components/modals/verifyModal.ts index f0597d3..8796c37 100644 --- a/src/components/modals/verifyModal.ts +++ b/src/components/modals/verifyModal.ts @@ -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, }, }, diff --git a/src/events/cron/weeklyGexp.ts b/src/events/cron/weeklyGexp.ts index 7992224..b8df0d3 100644 --- a/src/events/cron/weeklyGexp.ts +++ b/src/events/cron/weeklyGexp.ts @@ -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, }, }, ], diff --git a/src/events/server/guildMemberAdd/logNewJoins.ts b/src/events/server/guildMemberAdd/logNewJoins.ts index 2f379d1..f8b4da0 100644 --- a/src/events/server/guildMemberAdd/logNewJoins.ts +++ b/src/events/server/guildMemberAdd/logNewJoins.ts @@ -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(), }, diff --git a/src/events/server/voiceStateUpdate/vcJoinLeave.ts b/src/events/server/voiceStateUpdate/vcJoinLeave.ts index 4b01b5e..1acd9a7 100644 --- a/src/events/server/voiceStateUpdate/vcJoinLeave.ts +++ b/src/events/server/voiceStateUpdate/vcJoinLeave.ts @@ -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(), },