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

Improve GuildChannel#getPosition and Guild#getChannels #2320

Merged
merged 1 commit into from Nov 20, 2022

Conversation

MinnDevelopment
Copy link
Member

@MinnDevelopment MinnDevelopment commented Nov 1, 2022

Pull Request Etiquette

Changes

  • Internal code
  • Library interface (affecting end-user code)
  • Documentation
  • Other: _____

Closes Issue: NaN

Description

This improves how getPosition and GuildChannel#compareTo work. Here is the updated code output for (guild.channels + guild.threadChannels).sorted(), which includes threads to show comparing works between them and normal channels as expected:

image

@MinnDevelopment MinnDevelopment added type: enhancement type: semi-breaking this might change internals in a non-comptible way labels Nov 1, 2022
Copy link
Member

@DV8FromTheWorld DV8FromTheWorld left a comment

Choose a reason for hiding this comment

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

Nice

@MinnDevelopment MinnDevelopment merged commit 0988601 into master Nov 20, 2022
@MinnDevelopment MinnDevelopment deleted the patch-channel-position branch November 20, 2022 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement type: semi-breaking this might change internals in a non-comptible way
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants