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

Return null when nullably fetching a guild channel that is part of another guild #276

Open
BartArys opened this issue May 5, 2021 · 0 comments

Comments

@BartArys
Copy link
Contributor

BartArys commented May 5, 2021

GuildBehavior.getChannelOfOrNull throws an IllegalArgumentException when resolving a channel that is not part of the guild.

Considering OrNull has the connotation of being a generally "safe" way to poll for data, this behaviour seems counterintuitive to this mindset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant