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

View model for message components #122

Open
ghost opened this issue Dec 22, 2021 · 2 comments
Open

View model for message components #122

ghost opened this issue Dec 22, 2021 · 2 comments
Assignees
Labels
Type: Enhancement Improvements to existing features. Type: Feature Suggestions and tracking for new features.

Comments

@ghost
Copy link

ghost commented Dec 22, 2021

Summary

As we discussed on Discord, the implementation of a View class, similar to how disnake handles them (examples can be found here)

Preferred Behaviour

With the ability to create a class for commonly used views such as pagination, confirmation etc. (example for confirmation here) it would reduce redundancy while also maintaining ease-of-use.

Suggestions

My suggestion would be a view argument in UserMessageCreateBuilder, so it could look like createMessage(view=Confirm) {...}. Granted, I do not know if that is within scope.

@ghost ghost added the Type: Feature Suggestions and tracking for new features. label Dec 22, 2021
@boring-cyborg

This comment has been minimized.

@gdude2002 gdude2002 changed the title The avility to create components in a class and then passing them as argument to messages View model for message components Dec 22, 2021
@gdude2002 gdude2002 self-assigned this Dec 22, 2021
@gdude2002 gdude2002 added the Type: Enhancement Improvements to existing features. label Dec 22, 2021
@gdude2002
Copy link
Member

Interesting concept - I think this is probably a good way to go given how Kord's APIs work (and that I refuse to maintain a fork of it), though it definitely couldn't be part of createMessage - that's why the components builder doesn't do this already!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Improvements to existing features. Type: Feature Suggestions and tracking for new features.
Projects
None yet
Development

No branches or pull requests

1 participant