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

Application commands improvements #374

Merged
merged 8 commits into from
Aug 28, 2021
Merged

Conversation

HopeBaron
Copy link
Member

No description provided.

PotatoPresident and others added 3 commits August 27, 2021 21:45
* Fix NPE on ThreadChannelDelete (#373)

* Add missing component options

Co-authored-by: shilu <[email protected]>
* Fix NPE on ThreadChannelDelete (#373)

* add some missing typesafe option getters

Co-authored-by: shilu <[email protected]>
Comment on lines +122 to +130
val users: Map<String, User> get() = filterOptions()

val members: Map<String, Member> get() = filterOptions()

val channels: Map<String, ResolvedChannel> get() = filterOptions()

val roles: Map<String, Role> get() = filterOptions()

val mentionables: Map<String, Entity> get() = filterOptions()
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't these keys represent Snowflakes?

Copy link
Member Author

Choose a reason for hiding this comment

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

those could be shorthanded from resolved. I think last time we talked about this we said that not all resolved values are in options

Copy link
Member Author

Choose a reason for hiding this comment

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

it would work fine, each of those should be a part of options

@HopeBaron HopeBaron merged commit df1875d into 0.8.x Aug 28, 2021
@HopeBaron HopeBaron deleted the application-commands-improvements branch October 7, 2021 09:52
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

Successfully merging this pull request may close these issues.

4 participants