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

Quickfix for new channel types #461

Merged
merged 1 commit into from Mar 30, 2019

Conversation

Bastian
Copy link
Member

@Bastian Bastian commented Mar 30, 2019

This commit only adds very basic support for the new channel types.
News channels get treated as normal server text channels and store channels get completely ignored.

It also cleans up the switch-statements a little bit by using the enum instead of hard-coding the integer values.

Better support will be added when we get more information from Discord in discord/discord-api-docs#881.

@Bastian Bastian added the medium priority An issue or pull request with a medium priority label Mar 30, 2019
@Bastian Bastian added this to the Next Version milestone Mar 30, 2019
This commit only adds very basic support for these new channel types.
News channels get treated as normal server text channels and store
channels get completely ignored.
Copy link
Member

@Saladoc Saladoc left a comment

Choose a reason for hiding this comment

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

Will handle the news channels fine, as long as people don't try to set a slow mode.

Should we include in the warning that some operations will not work on a news channel?

@Bastian
Copy link
Member Author

Bastian commented Mar 30, 2019

I don't think that's necessary, as this is only a temporary solution.
The worst that can happen is that the CompletableFuture fails exceptionally, which you should always be prepared for anyway.

@Bastian Bastian merged commit 61802fa into Javacord:development Mar 30, 2019
@Bastian Bastian deleted the new-channeltypes-quickfix branch March 30, 2019 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium priority An issue or pull request with a medium priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants