Updated footers to a few commands
This commit is contained in:
@@ -206,7 +206,7 @@ module.exports = {
|
|||||||
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 + " | " + 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 })
|
const footerIcon = interaction.guild ? interaction.guild.iconURL({ dynamic: true }) : interaction.user.avatarURL({ dynamic: true })
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
@@ -220,7 +220,7 @@ module.exports = {
|
|||||||
url: head
|
url: head
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
text: footerText,
|
text: footerText + " | " + devMessage,
|
||||||
icon_url: footerIcon
|
icon_url: footerIcon
|
||||||
},
|
},
|
||||||
fields: statsFields
|
fields: statsFields
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ module.exports = {
|
|||||||
return
|
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 })
|
const footerIcon = interaction.guild ? interaction.guild.iconURL({ dynamic: true }) : interaction.user.avatarURL({ dynamic: true })
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
@@ -63,7 +63,7 @@ module.exports = {
|
|||||||
description: "This command is currently under development",
|
description: "This command is currently under development",
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
footer: {
|
footer: {
|
||||||
text: footerText,
|
text: footerText + " | " + devMessage,
|
||||||
icon_url: footerIcon
|
icon_url: footerIcon
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ async function guildInfo(interaction) {
|
|||||||
const guildMembersDailyXP = Object.values(guildMembers).map((m) => m.expHistory[Object.keys(m.expHistory)[0]])
|
const guildMembersDailyXP = Object.values(guildMembers).map((m) => m.expHistory[Object.keys(m.expHistory)[0]])
|
||||||
const totalGuildMembersDailyXP = guildMembersDailyXP.reduce((a, b) => a + b, 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 })
|
const footerIcon = interaction.guild ? interaction.guild.iconURL({ dynamic: true }) : interaction.user.avatarURL({ dynamic: true })
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
@@ -98,7 +98,7 @@ async function guildInfo(interaction) {
|
|||||||
],
|
],
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
footer: {
|
footer: {
|
||||||
text: footerText,
|
text: footerText + " | " + devMessage,
|
||||||
icon_url: footerIcon
|
icon_url: footerIcon
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ async function guildMember(interaction) {
|
|||||||
guildMemberJoinMinutes + ":" +
|
guildMemberJoinMinutes + ":" +
|
||||||
guildMemberJoinSeconds
|
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 })
|
const footerIcon = interaction.guild ? interaction.guild.iconURL({ dynamic: true }) : interaction.user.avatarURL({ dynamic: true })
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
@@ -137,7 +137,7 @@ async function guildMember(interaction) {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
footer: {
|
footer: {
|
||||||
text: footerText,
|
text: footerText + " | " + devMessage,
|
||||||
icon_url: footerIcon
|
icon_url: footerIcon
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ module.exports = {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const embedColor = Number(color.replace("#", "0x"))
|
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 })
|
const footerIcon = interaction.guild ? interaction.guild.iconURL({ dynamic: true }) : interaction.user.avatarURL({ dynamic: true })
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
@@ -50,7 +50,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
icon_url: footerIcon,
|
icon_url: footerIcon,
|
||||||
text: footerText
|
text: footerText + " | " + devMessage
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ module.exports = {
|
|||||||
|
|
||||||
const embedColor = Number(color.replace("#", "0x"))
|
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 })
|
const footerIcon = interaction.guild ? interaction.guild.iconURL({ dynamic: true }) : interaction.user.avatarURL({ dynamic: true })
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
@@ -30,7 +30,7 @@ module.exports = {
|
|||||||
description: "Ping of the bot is " + client.ws.ping + "ms.",
|
description: "Ping of the bot is " + client.ws.ping + "ms.",
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
footer: {
|
footer: {
|
||||||
text: footerText,
|
text: footerText + " | " + devMessage,
|
||||||
icon_url: footerIcon
|
icon_url: footerIcon
|
||||||
},
|
},
|
||||||
timestamp: new Date()
|
timestamp: new Date()
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ module.exports = {
|
|||||||
await interaction.deferReply({ ephemeral: true })
|
await interaction.deferReply({ ephemeral: true })
|
||||||
|
|
||||||
const embedColor = Number(color.replace("#", "0x"))
|
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 })
|
const footerIcon = interaction.guild ? interaction.guild.iconURL({ dynamic: true }) : interaction.user.avatarURL({ dynamic: true })
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
@@ -50,7 +50,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
footer: {
|
footer: {
|
||||||
text: footerText,
|
text: footerText + " | " + devMessage,
|
||||||
icon_url: footerIcon
|
icon_url: footerIcon
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ module.exports = {
|
|||||||
const newIgn = await getIGN(uuid)
|
const newIgn = await getIGN(uuid)
|
||||||
const head = await getHeadURL(ign)
|
const head = await getHeadURL(ign)
|
||||||
const embedColor = Number(color.replace("#", "0x"))
|
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 })
|
const footerIcon = interaction.guild ? interaction.guild.iconURL({ dynamic: true }) : interaction.user.avatarURL({ dynamic: true })
|
||||||
|
|
||||||
if (!uuid) {
|
if (!uuid) {
|
||||||
@@ -51,7 +51,7 @@ module.exports = {
|
|||||||
url: head
|
url: head
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
text: footerText,
|
text: footerText + " | " + devMessage,
|
||||||
icon_url: footerIcon
|
icon_url: footerIcon
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
|||||||
Reference in New Issue
Block a user