Merge branch 'dev' into 'main'

Dev

See merge request illegitimate/illegitimate-bot!167
This commit is contained in:
2024-01-07 22:09:07 +00:00
51 changed files with 112 additions and 144 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

@@ -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,10 +148,10 @@ 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() || 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

@@ -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

@@ -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

@@ -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() || undefined,
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

@@ -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

@@ -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(),
@@ -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

@@ -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(),
@@ -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

@@ -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

@@ -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

@@ -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,10 +111,10 @@ 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() || 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

@@ -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

@@ -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

@@ -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

@@ -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,
}, },
}, },
], ],
@@ -67,7 +65,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 +75,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()
@@ -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

@@ -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,11 +86,11 @@ 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,
icon_url: user.avatarURL({ forceStatic: false}) || undefined, icon_url: user.avatarURL() || undefined,
}, },
timestamp: new Date().toISOString(), timestamp: new Date().toISOString(),
}, },
@@ -107,10 +107,10 @@ 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() || 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

@@ -126,7 +126,7 @@ export = {
color: wlembed.color!, color: wlembed.color!,
footer: { footer: {
text: "Last updated by " + user.username, text: "Last updated by " + user.username,
icon_url: user.avatarURL()!, icon_url: user.avatarURL() || undefined,
}, },
thumbnail: wlembed.thumbnail!, thumbnail: wlembed.thumbnail!,
fields: fields, fields: fields,
@@ -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

@@ -45,7 +45,7 @@ export = {
color: embed.color!, color: embed.color!,
footer: { footer: {
text: "Last updated by " + user.username, text: "Last updated by " + user.username,
icon_url: user.avatarURL()!, icon_url: user.avatarURL() || undefined,
}, },
thumbnail: embed.thumbnail!, thumbnail: embed.thumbnail!,
fields: fields, fields: fields,

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(),
}, },

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 +
" | " + " | " +