Bugfix: ephemeral in message reply is deprecated
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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{}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user