Merge branch 'dev' into 'main'

Updated footers to a few commands

See merge request illegitimate/illegitimate-bot!109
This commit is contained in:
2023-11-30 17:38:50 +00:00
8 changed files with 16 additions and 16 deletions

View File

@@ -206,7 +206,7 @@ module.exports = {
const hypixelExp = player.networkExp || 0
const level = hypixelLevel(hypixelExp)
const footerText = interaction.guild ? interaction.guild.name : interaction.user.username + " | " + devMessage
const footerText = interaction.guild ? interaction.guild.name : interaction.user.username
const footerIcon = interaction.guild ? interaction.guild.iconURL({ dynamic: true }) : interaction.user.avatarURL({ dynamic: true })
await interaction.editReply({
@@ -220,7 +220,7 @@ module.exports = {
url: head
},
footer: {
text: footerText,
text: footerText + " | " + devMessage,
icon_url: footerIcon
},
fields: statsFields

View File

@@ -55,7 +55,7 @@ module.exports = {
return
}
const footerText = interaction.guild ? interaction.guild.name : interaction.user.username + " | " + devMessage
const footerText = interaction.guild ? interaction.guild.name : interaction.user.username
const footerIcon = interaction.guild ? interaction.guild.iconURL({ dynamic: true }) : interaction.user.avatarURL({ dynamic: true })
await interaction.editReply({
@@ -63,7 +63,7 @@ module.exports = {
description: "This command is currently under development",
color: embedColor,
footer: {
text: footerText,
text: footerText + " | " + devMessage,
icon_url: footerIcon
}
}]

View File

@@ -70,7 +70,7 @@ async function guildInfo(interaction) {
const guildMembersDailyXP = Object.values(guildMembers).map((m) => m.expHistory[Object.keys(m.expHistory)[0]])
const totalGuildMembersDailyXP = guildMembersDailyXP.reduce((a, b) => a + b, 0)
const footerText = interaction.guild ? interaction.guild.name : interaction.user.username + " | " + devMessage
const footerText = interaction.guild ? interaction.guild.name : interaction.user.username
const footerIcon = interaction.guild ? interaction.guild.iconURL({ dynamic: true }) : interaction.user.avatarURL({ dynamic: true })
await interaction.editReply({
@@ -98,7 +98,7 @@ async function guildInfo(interaction) {
],
color: embedColor,
footer: {
text: footerText,
text: footerText + " | " + devMessage,
icon_url: footerIcon
}
}]

View File

@@ -109,7 +109,7 @@ async function guildMember(interaction) {
guildMemberJoinMinutes + ":" +
guildMemberJoinSeconds
const footerText = interaction.guild ? interaction.guild.name : interaction.user.username + " | " + devMessage
const footerText = interaction.guild ? interaction.guild.name : interaction.user.username
const footerIcon = interaction.guild ? interaction.guild.iconURL({ dynamic: true }) : interaction.user.avatarURL({ dynamic: true })
await interaction.editReply({
@@ -137,7 +137,7 @@ async function guildMember(interaction) {
},
],
footer: {
text: footerText,
text: footerText + " | " + devMessage,
icon_url: footerIcon
},
}],

View File

@@ -36,7 +36,7 @@ module.exports = {
})
const embedColor = Number(color.replace("#", "0x"))
const footerText = interaction.guild ? interaction.guild.name : interaction.user.username + " | " + devMessage
const footerText = interaction.guild ? interaction.guild.name : interaction.user.username
const footerIcon = interaction.guild ? interaction.guild.iconURL({ dynamic: true }) : interaction.user.avatarURL({ dynamic: true })
await interaction.editReply({
@@ -50,7 +50,7 @@ module.exports = {
},
footer: {
icon_url: footerIcon,
text: footerText
text: footerText + " | " + devMessage
}
}]
})

View File

@@ -22,7 +22,7 @@ module.exports = {
const embedColor = Number(color.replace("#", "0x"))
const footerText = interaction.guild ? interaction.guild.name : interaction.user.username + " | " + devMessage
const footerText = interaction.guild ? interaction.guild.name : interaction.user.username
const footerIcon = interaction.guild ? interaction.guild.iconURL({ dynamic: true }) : interaction.user.avatarURL({ dynamic: true })
await interaction.editReply({
@@ -30,7 +30,7 @@ module.exports = {
description: "Ping of the bot is " + client.ws.ping + "ms.",
color: embedColor,
footer: {
text: footerText,
text: footerText + " | " + devMessage,
icon_url: footerIcon
},
timestamp: new Date()

View File

@@ -20,7 +20,7 @@ module.exports = {
await interaction.deferReply({ ephemeral: true })
const embedColor = Number(color.replace("#", "0x"))
const footerText = interaction.guild ? interaction.guild.name : interaction.user.username + " | " + devMessage
const footerText = interaction.guild ? interaction.guild.name : interaction.user.username
const footerIcon = interaction.guild ? interaction.guild.iconURL({ dynamic: true }) : interaction.user.avatarURL({ dynamic: true })
await interaction.editReply({
@@ -50,7 +50,7 @@ module.exports = {
}
],
footer: {
text: footerText,
text: footerText + " | " + devMessage,
icon_url: footerIcon
}
}]

View File

@@ -30,7 +30,7 @@ module.exports = {
const newIgn = await getIGN(uuid)
const head = await getHeadURL(ign)
const embedColor = Number(color.replace("#", "0x"))
const footerText = interaction.guild ? interaction.guild.name : interaction.user.username + " | " + devMessage
const footerText = interaction.guild ? interaction.guild.name : interaction.user.username
const footerIcon = interaction.guild ? interaction.guild.iconURL({ dynamic: true }) : interaction.user.avatarURL({ dynamic: true })
if (!uuid) {
@@ -51,7 +51,7 @@ module.exports = {
url: head
},
footer: {
text: footerText,
text: footerText + " | " + devMessage,
icon_url: footerIcon
}
}]