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

Changed Guild#DefaultChannel to resolve the first accessible channel #777

Merged
merged 2 commits into from
Aug 28, 2017

Conversation

foxbot
Copy link
Member

@foxbot foxbot commented Jul 31, 2017

Resolves #776

Notable changes:

  • RestGuild#DefaultChannelId is now obsolete and will throw a NotSupportedException.

The above change has not been rolled out on Discord's backend yet, so this merge request will remain blocked until it can be tested.

Resolves #776

This change is inline with discord/discord-api-docs#329

RestGuild#DefaultChannelId is now obsolete and will throw a
NotSupportedException.
Copy link
Member

@FiniteReality FiniteReality left a comment

Choose a reason for hiding this comment

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

Personally, I think this should be a major version bump due to the breaking change in RestGuild.DefaultChannelId, but the code looks good otherwise.

EDIT: see latest commit

Adding an exception here would be a breaking change, so this was agreed
to fall back to the previous behavior, which would just return the guild
ID.
@foxbot foxbot removed the blocked label Aug 28, 2017
@foxbot foxbot merged commit 1ffcd4b into dev Aug 28, 2017
@foxbot foxbot deleted the issues/776 branch August 28, 2017 21:10
FiniteReality pushed a commit to FiniteReality/Discord.Net that referenced this pull request May 5, 2018
…iscord-net#777)

* Changed Guild#DefaultChannel to resolve the first accessible channel

Resolves discord-net#776

This change is inline with discord/discord-api-docs#329

RestGuild#DefaultChannelId is now obsolete and will throw a
NotSupportedException.

* RestGuild#DefaultChannelId will fall back to the guild ID

Adding an exception here would be a breaking change, so this was agreed
to fall back to the previous behavior, which would just return the guild
ID.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants