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

@@ -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 })!,
},
},
],