Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing params for threads without message #117

Merged
merged 2 commits into from
Mar 30, 2022

Conversation

SimonIT
Copy link
Contributor

@SimonIT SimonIT commented Mar 28, 2022

Copy link
Member

@quanticc quanticc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makes more sense to have a dedicated object for the Start Thread without Message endpoint.

And some fields are not mandatory so they need the Possible<T> type. The following fields should change their type:

StartThreadRequest

  • auto_archive_duration
  • rate_limit_per_user

StartThreadWithoutMessageRequest (new interface)

  • auto_archive_duration
  • type
  • invitable
  • rate_limit_per_user

SimonIT added a commit to SimonIT/Discord4J that referenced this pull request Mar 30, 2022
@quanticc quanticc added field/addition A field is being added class/addition A class is being added labels Mar 30, 2022
@quanticc quanticc added this to the 1.7.2 milestone Mar 30, 2022
Copy link
Member

@quanticc quanticc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@quanticc quanticc merged commit 3fcce5d into Discord4J:master Mar 30, 2022
@SimonIT SimonIT deleted the threads-missing-params branch March 30, 2022 12:49
quanticc pushed a commit to Discord4J/Discord4J that referenced this pull request Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
class/addition A class is being added field/addition A field is being added
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants