-
Notifications
You must be signed in to change notification settings - Fork 31
feat: update /interaction/select-menu #54
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: update /interaction/select-menu #54
Conversation
- Correct a couple spelling mistakes - added a bit more detail to some of the comments and wording to better get the points across and provide more detail - also removed an errant `command_sync_flags` I was using during testing the code examples
- Using the tabs feature, added a second StringSelect example that uses the @disnake.ui.string_select decorator inside a view rather than subclassing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks for adding this!
Got a couple (mostly tiny) nits and adjustments; sorry for the amount of comments c:
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
This is cleaner Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
Ah. The extra */} must have been added from running the pre-commit. I didn't even notice Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
Altered example to disable each of the view's components by looping over them rather than using indexing
|
I'm not even sure if I'm doing this correctly. Thanks for bearing with me as I'm learning git/github. Mostly only ever deal with my own repos so I haven't been too worried about how certain things work here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not even sure if I'm doing this correctly. Thanks for bearing with me as I'm learning git/github. Mostly only ever deal with my own repos so I haven't been too worried about how certain things work here.
No worries, it's all good c:
For what it's worth, you can batch commit suggestions on GitHub which reduces noise a bit, but it's not strictly required as the commits all get squashed into one when merging the PR anyway.
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: DLCHAMP <36091350+dlchamp@users.noreply.github.com>
- Moved options into decorator and added comments to provide information describing how to define dynamic options when using the `string_select` decorator - Added Note to provide detailed info on using a list or dict as other available methods to define `SelectOptions`
|
@dlchamp please run pre-commit on all files once again, and commit any relevant changes. |
This reverts commit cdf0b6d.
Reverted last commit to remove the built documentation files. Sorry. Pre-commit ran and this only includes the changes made to `select-menus.mdx`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a major addition to the guide, so thank you for the contribution!
The images in the guide so far have been extremely opinionated (having default role colors, using a "Disnake Bot" account, etc.) and might be changed in the future. But I approve of the example and implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the one remaining comment, lgtm! Thank you for taking the time to add all of this.
Updated image to keep with current examples using "Disnake Bot", default role color, and Disnake logo as the bot icon
Updated the image to fall inline with other examples using "Disnake Bot" with the Disnake logo and default role colors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you so much for the contribution. We'll start working on the merge.
|
@dlchamp do you want to withdraw this contribution? The changes had been reviewed and approved for merge already. |
No. I was looking at adding to some other parts of the guide and deleted the branch local without realizing it would delete the branch here as well. My mistake. Restored. |
Description
Updates the page at /interactions/select-menu with relevant code examples and information about using the various select menus within disnake.
Relevant Issues
Closes #53