Skip to content

[discord] fix "parent" keyword inconsistency (#7341) #7353

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

Merged
merged 1 commit into from
Apr 12, 2025

Conversation

zWolfrost
Copy link
Contributor

@zWolfrost zWolfrost commented Apr 12, 2025

Fixes #7341

The inconsistency stems from the fact that server channels are given in order of creation, which doesn't ensure that parents (categories) are parsed before their containing channels. I sorted the channels so that categories always get parsed first.

I've also handled an exception that occurred when trying to extract a channel with 0 messages.

@mikf mikf merged commit 81ff021 into mikf:master Apr 12, 2025
8 checks passed
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.

[discord] Some channels fail to get "parent"/category
2 participants