Merge branch 'dev' into 'main'
Dev See merge request illegitimate/illegitimate-bot!164
This commit is contained in:
@@ -40,9 +40,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({
|
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
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 })!,
|
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined,
|
||||||
text: interaction.guild!.name + " | " + devMessage
|
text: interaction.guild!.name + " | " + devMessage
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
|||||||
@@ -40,9 +40,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({
|
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
text: interaction.guild!.name + " | " + devMessage,
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -204,9 +204,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({ forceStatic: false, }) || undefined,
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -286,9 +286,7 @@ export default async function guildTop(
|
|||||||
" | " +
|
" | " +
|
||||||
devMessage +
|
devMessage +
|
||||||
cacheStatusText,
|
cacheStatusText,
|
||||||
icon_url: interaction.guild!.iconURL({
|
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -261,13 +261,6 @@ export default async function beast(
|
|||||||
const hypixelExp = player.networkExp || 0
|
const hypixelExp = player.networkExp || 0
|
||||||
const level = hypixelLevel(hypixelExp)
|
const level = hypixelLevel(hypixelExp)
|
||||||
|
|
||||||
const footerText = interaction.guild
|
|
||||||
? interaction.guild.name
|
|
||||||
: interaction.user.username
|
|
||||||
const footerIcon = interaction.guild
|
|
||||||
? interaction.guild.iconURL({ forceStatic: false })
|
|
||||||
: interaction.user.avatarURL({ forceStatic: false })
|
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
{
|
{
|
||||||
@@ -284,8 +277,8 @@ export default async function beast(
|
|||||||
url: head!,
|
url: head!,
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
text: footerText + " | " + devMessage,
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
icon_url: footerIcon!,
|
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined,
|
||||||
},
|
},
|
||||||
fields: statsFields,
|
fields: statsFields,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -46,12 +46,6 @@ export default async function help(
|
|||||||
}
|
}
|
||||||
|
|
||||||
const embedColor = Number(color.replace("#", "0x"))
|
const embedColor = Number(color.replace("#", "0x"))
|
||||||
const footerText = interaction.guild
|
|
||||||
? interaction.guild.name
|
|
||||||
: interaction.user.username
|
|
||||||
const footerIcon = interaction.guild
|
|
||||||
? interaction.guild.iconURL({ forceStatic: false })
|
|
||||||
: interaction.user.avatarURL({ forceStatic: false })
|
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
@@ -61,11 +55,11 @@ 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({ forceStatic: false }) || "",
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
icon_url: footerIcon!,
|
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined,
|
||||||
text: footerText + " | " + devMessage,
|
text: interaction.guild?.name + " | " + devMessage,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -83,9 +83,9 @@ export = {
|
|||||||
"`",
|
"`",
|
||||||
)
|
)
|
||||||
.setColor(embedColor)
|
.setColor(embedColor)
|
||||||
.setThumbnail(guild.iconURL())
|
.setThumbnail(guild.iconURL({ forceStatic: false }) || "")
|
||||||
.setFooter({
|
.setFooter({
|
||||||
iconURL: guild.iconURL()!,
|
iconURL: guild.iconURL({ forceStatic: false }) || undefined,
|
||||||
text: "ID: " + applicantId,
|
text: "ID: " + applicantId,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -70,10 +70,10 @@ export = {
|
|||||||
"`",
|
"`",
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
thumbnail: {
|
thumbnail: {
|
||||||
url: applicant.avatarURL() || guild!.iconURL()!,
|
url: applicant.avatarURL({ forceStatic: false }) || "",
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
icon_url: guild!.iconURL()!,
|
icon_url: guild!.iconURL({ forceStatic: false }) || undefined,
|
||||||
text: "ID: " + applicant.id,
|
text: "ID: " + applicant.id,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ export = {
|
|||||||
url: head!,
|
url: head!,
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
icon_url: interaction.guild!.iconURL()!,
|
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined,
|
||||||
text: interaction.guild!.name + " | " + devMessage,
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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 })!,
|
icon_url: channel.guild.iconURL({ forceStatic: false }) || undefined,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -22,8 +22,12 @@ export = {
|
|||||||
"Account created: " +
|
"Account created: " +
|
||||||
member.user.createdAt.toLocaleString(),
|
member.user.createdAt.toLocaleString(),
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
|
thumbnail: {
|
||||||
|
url: member.user.avatarURL({ forceStatic: false }) || "",
|
||||||
|
},
|
||||||
footer: {
|
footer: {
|
||||||
text: "ID: " + member.id,
|
text: "ID: " + member.id,
|
||||||
|
icon_url: member.user.avatarURL({ forceStatic: false }) || undefined,
|
||||||
},
|
},
|
||||||
timestamp: new Date().toISOString(),
|
timestamp: new Date().toISOString(),
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -32,6 +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,
|
||||||
},
|
},
|
||||||
timestamp: new Date().toISOString(),
|
timestamp: new Date().toISOString(),
|
||||||
},
|
},
|
||||||
@@ -49,6 +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,
|
||||||
},
|
},
|
||||||
timestamp: new Date().toISOString(),
|
timestamp: new Date().toISOString(),
|
||||||
},
|
},
|
||||||
@@ -70,6 +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,
|
||||||
},
|
},
|
||||||
timestamp: new Date().toISOString(),
|
timestamp: new Date().toISOString(),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user