Bugfix: ephemeral in message reply is deprecated

This commit is contained in:
DJj123dj
2025-01-04 09:49:52 +01:00
parent a66d3aad2d
commit 67465bfdf4
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ module.exports = () => {
if (!permsChecker.ticket(interaction.user.id,interaction.guild.id,ticketId)){
permsChecker.sendUserNoPerms(interaction.user)
return interaction.reply({content:":x: "+l.errors.noPermsTitle,ephemeral:true})
return interaction.reply({content:":x: "+l.errors.noPermsTitle,flags:["Ephemeral"]})
}
await interaction.deferReply()
+1 -1
View File
@@ -79,7 +79,7 @@ module.exports = () => {
if (!permsChecker.ticket(interaction.user.id,interaction.guild.id,ticketId)){
permsChecker.sendUserNoPerms(interaction.user)
interaction.reply({content:":x: "+l.errors.noPermsTitle,ephemeral:true})
interaction.reply({content:":x: "+l.errors.noPermsTitle,flags:["Ephemeral"]})
return
}
+1 -1
View File
@@ -51,7 +51,7 @@ module.exports = () => {
if (interaction.isButton() || interaction.isStringSelectMenu() || interaction.isChatInputCommand()){
try{
await interaction.deferReply({ephemeral:config.system.answerInEphemeralOnOpen})
await interaction.deferReply({flags:config.system.answerInEphemeralOnOpen ? ["Ephemeral"] : undefined})
}catch{}
}