Kord-Extensions/kord-extensions

Sending a `deferredAck` inside a `ephemeralButton` component does not defer the ACK

Closed this issue · 4 comments

Description

Sending a deferredAck inside a ephemeralButton component, sends the thinking message

Versions

Kord = 1.5.0-SNAPSHOT

Reproduction

Minimum working example: (inside a extension)

ephemeralSlashCommand {
   name = "ephemeral"
   description = "whatever"
   guild(test guild id)
   action root@{
     respond {
     content = "test"
        components {
            ephemeralButton(0) {
                label = "Test Button"
                deferredAck = true
                    action {
                       this@root.edit {
                             content = "Button Clicked"
                        }
                    }
               }
           }
       }
    }
}

Suggestions

The current workaround is to send a publicButton instead of a ephemeral one.

Hello, and thanks for opening an issue! As this is the first time you've created an issue on this repository, we'd just like to offer you a warm welcome to the project, and the following pointers:

  • Most importantly, all issues must adhere to our Code of Conduct. Please give it a quick read if you haven't already.

  • While our team is passionate about the projects we've created here, we're all volunteers. Please don't be offended if it takes time for us to get to your issue - we'll be here as soonas we can be!

  • Please provide as much information as possible when asking a question, reporting a problem, or submitting a feature request. This will help us to address your issue quickly and efficiently. If you forgot to add some information, no worries - feel free to edit the issue and add anything you missed!

    Thanks for contacting us! If you have any further questions, please feel free to join us on Discord in the #dev-kotdis channel (or #kordex-discussion for Kord Extensions projects), or to contact a staff member directly.

Thanks for the issue - I've managed to isolate this to a copy-paste error, which means that the deferredAck property's behaviour is inverted for all ephemeral components. This will be fixed in the next push, but do note that it likely won't build - since I need to wait for some changes to be pushed to address issues in Kord's latest release.

Never mind, life finds a way. When it's built, give 1.5.1-SNAPSHOT a go.

It works now! Thank you.