Removing useless forcestatis option
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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()
|
||||
}]
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}]
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
},
|
||||
],
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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: [
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user