Removed all commands from dms

This commit is contained in:
2023-12-31 11:29:39 +01:00
parent b5eb58a4f1
commit 1abd1a7e9c
10 changed files with 32 additions and 89 deletions

View File

@@ -191,13 +191,6 @@ async function guildInfo(
averageGuildMembersWeeklyXPUnformatted,
)
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({
embeds: [
{
@@ -240,8 +233,8 @@ async function guildInfo(
],
color: embedColor,
footer: {
text: footerText + " | " + devMessage,
icon_url: footerIcon!,
text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined,
},
},
],

View File

@@ -167,13 +167,6 @@ async function guildMember(
":" +
guildMemberJoinSeconds
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({
embeds: [
{
@@ -210,8 +203,8 @@ async function guildMember(
},
],
footer: {
text: footerText + " | " + devMessage,
icon_url: footerIcon!,
text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL({ forceStatic: false })!,
},
},
],

View File

@@ -263,12 +263,6 @@ async function guildTop(
}
})
const footerText = interaction.guild
? interaction.guild.name
: interaction.user.username
const footerIcon = interaction.guild
? interaction.guild.iconURL({ forceStatic: false })
: interaction.user.avatarURL({ forceStatic: false })
const cacheStatusText = cacheStatus ? " | [Cache]" : ""
await interaction.editReply({
@@ -285,8 +279,8 @@ async function guildTop(
color: embedColor,
fields: newList,
footer: {
text: footerText + " | " + devMessage + cacheStatusText,
icon_url: footerIcon!,
text: interaction.guild!.name + " | " + devMessage + cacheStatusText,
icon_url: interaction.guild!.iconURL({ forceStatic: false })!,
},
},
],