Skip to content

Commit 3f65134

Browse files
NeloBlivionpre-commit-ci[bot]LulalabyPaillat-devJustaSqu1d
authored
feat: Radio Groups & Checkboxes (#3073)
* components * style(pre-commit): auto fixes from pre-commit.com hooks * Apply suggestions from code review Signed-off-by: Lala Sabathil <aiko@aitsys.dev> * Apply suggestion from @Lulalaby Signed-off-by: Lala Sabathil <aiko@aitsys.dev> * Apply suggestion from @Lulalaby Signed-off-by: Lala Sabathil <aiko@aitsys.dev> * style(pre-commit): auto fixes from pre-commit.com hooks * ui.RadioGroup * ui.CheckboxGroup * , * style(pre-commit): auto fixes from pre-commit.com hooks * ui.Checkbox * style(pre-commit): auto fixes from pre-commit.com hooks * docs and label set methods * style(pre-commit): auto fixes from pre-commit.com hooks * _component_to_item * style(pre-commit): auto fixes from pre-commit.com hooks * options * style(pre-commit): auto fixes from pre-commit.com hooks * imports * style(pre-commit): auto fixes from pre-commit.com hooks * check * all * style(pre-commit): auto fixes from pre-commit.com hooks * fix checkbox * option docs * Checkbox.value * Update discord/ui/radio_group.py Co-authored-by: Paillat <jeremiecotti@ik.me> Signed-off-by: Nelo <41271523+NeloBlivion@users.noreply.github.com> * Update CHANGELOG.md Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Signed-off-by: Nelo <41271523+NeloBlivion@users.noreply.github.com> * Update discord/components.py Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Signed-off-by: Nelo <41271523+NeloBlivion@users.noreply.github.com> * Update discord/components.py Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Signed-off-by: Nelo <41271523+NeloBlivion@users.noreply.github.com> * convert to generate_underlying * values * copyright * RadioGroup.value clarification * typing * enum docs * docs * fix group underlying * update types.components * style(pre-commit): auto fixes from pre-commit.com hooks * change `values` to None if not received through interaction * adjustments * more adjustments * style(pre-commit): auto fixes from pre-commit.com hooks * versions * option setter * s * correct option valiadation * remove type ignores * style(pre-commit): auto fixes from pre-commit.com hooks * adjust custom_id check * style(pre-commit): auto fixes from pre-commit.com hooks --------- Signed-off-by: Lala Sabathil <aiko@aitsys.dev> Signed-off-by: Nelo <41271523+NeloBlivion@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Lala Sabathil <aiko@aitsys.dev> Co-authored-by: Paillat <jeremiecotti@ik.me> Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Co-authored-by: Lala Sabathil <lala@pycord.dev> Co-authored-by: Paillat <paillat@pycord.dev>
1 parent d2e99a7 commit 3f65134

19 files changed

Lines changed: 1350 additions & 46 deletions

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ These changes are available on the `master` branch, but have not yet been releas
1414

1515
- Added `Member.colours` and `Member.colors` properties.
1616
([#3063](https://github.com/Pycord-Development/pycord/pull/3063))
17+
- Added `RadioGroup`, `CheckboxGroup`, and `Checkbox` for modals.
18+
([#3073](https://github.com/Pycord-Development/pycord/pull/3073))
1719
- Added the ability to respond to interactions with suppressed push and desktop
1820
notifications. ([#3062](https://github.com/Pycord-Development/pycord/pull/3062))
1921
- Added `User.collectibles` property.

0 commit comments

Comments
 (0)