java-slack-sdk icon indicating copy to clipboard operation
java-slack-sdk copied to clipboard

AdminInviteRequestsListRequest missing an optional argument

Open Dunkhell opened this issue 1 year ago • 1 comments

  • [ ] bolt (Bolt for Java)
  • [ ] bolt-{sub modules} (Bolt for Java - optional modules)
  • [x] slack-api-client (Slack API Clients)
  • [x] slack-api-model (Slack API Data Models)
  • [ ] slack-api-*-kotlin-extension (Kotlin Extensions for Slack API Clients)
  • [ ] slack-app-backend (The primitive layer of Bolt for Java)

Requirements

There is an optional argument missing in AdminInviteRequestsListRequest - cursor. Would be super handy if it was added in the nearest iteration of the SDK

Dunkhell avatar Feb 26 '24 09:02 Dunkhell

Hey @Dunkhell 👋 Could you share how you're trying to use this argument? I'm finding it as a request attribute and it should also be sent with the request. The following snippet is compiling alright for me too, but I might be missing something!

var requests = slack.methods(token).adminInviteRequestsList(req -> req
        .cursor("5c3e53d5")
        .teamId("T0123456"));

zimeg avatar Feb 26 '24 23:02 zimeg

Oh dang, I updated the SDK to 1.38.1 before trying it just like you have and it didn't show for me. I've reinstalled the SDK after your message and it shows for me now, probably some cache issue on my part, sorry for that false report.

Thanks for clarifying

Dunkhell avatar Feb 27 '24 11:02 Dunkhell

@Dunkhell No worries at all! Caching is just one of those things 😄 Going to close this but please let me know if you find any other edges!

zimeg avatar Feb 27 '24 19:02 zimeg