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

feat: Default payloads #15

Open
KnorpelSenf opened this issue Dec 3, 2021 · 0 comments
Open

feat: Default payloads #15

KnorpelSenf opened this issue Dec 3, 2021 · 0 comments
Labels
hacktoberfest Good issue for hacktoberfest contributors :)
Projects

Comments

@KnorpelSenf
Copy link
Member

KnorpelSenf commented Dec 3, 2021

It's a common thing to create menu ranges where all buttons have the same payload object.

It would be useful if one could do

const range = new MenuRange({ payload: 'default-payload' })

which would then be set as the default value for all buttons on that range. Hence, it is sufficient to pass a string to range.text instead of always having to specify the same payload.

It needs yet to be decided whether or not the default payload should be passed on the menu ranges created for dynamic ranges inside range, but it's likely this this is not a good idea.

@KnorpelSenf KnorpelSenf added this to To do in Coding May 1, 2022
@roziscoding roziscoding added the hacktoberfest Good issue for hacktoberfest contributors :) label Oct 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Good issue for hacktoberfest contributors :)
Projects
No open projects
Coding
To do
Status: To do
Development

No branches or pull requests

2 participants