Skip to content

Conversation

@EepyElvyra
Copy link
Contributor

@EepyElvyra EepyElvyra commented Dec 15, 2021

About this Pull Request

  • Fixes Error when creating selectoptions

  • Seperates Button and Select when sending

  • Converts options to dict before sending

  • when syncing options are called twice, while choices are a dict the second time not having the ._json attribute
    grafik

  • Also, I added defer to components and fixed the problem that always the original message was updated instead of sending a new

Checklist

  • I've run the pre_push.py script to format and lint the change(s) made.
  • I've checked to make sure this pull request runs on Python 3.6.X.
  • This fixes/solves something from the project's Issues.
    • Issue (if referenceable):
  • This adds something new.
    • This is not a code change.
    • (If required) Relevant documentation has been updated/added.
    • There is/are (a) breaking change(s).

pre-commit-ci bot and others added 19 commits December 13, 2021 17:23
updates:
- [github.com/pre-commit/pre-commit-hooks: v3.2.0 → v4.0.1](pre-commit/pre-commit-hooks@v3.2.0...v4.0.1)
- [github.com/psf/black: 21.8b0 → 21.12b0](psf/black@21.8b0...21.12b0)
- https://gitlab.com/pycqa/flake8https://github.com/PyCQA/flake8
- [github.com/PyCQA/flake8: 3.9.2 → 4.0.1](PyCQA/flake8@3.9.2...4.0.1)
- [github.com/pycqa/isort: 5.9.3 → 5.10.1](PyCQA/isort@5.9.3...5.10.1)
@EepyElvyra EepyElvyra marked this pull request as draft December 15, 2021 14:48
@EepyElvyra EepyElvyra changed the title FIx not working selects FIx not working selects and weird choice behavior Dec 15, 2021
@EepyElvyra EepyElvyra marked this pull request as ready for review December 15, 2021 14:51
@i0bs i0bs mentioned this pull request Dec 15, 2021
7 tasks
modified send and edit to work with defer

fixed some bugs
@EepyElvyra EepyElvyra changed the title FIx not working selects and weird choice behavior FIx not working selects and weird choice behavior; add defer for components and fix responding to components Dec 15, 2021
@EepyElvyra EepyElvyra changed the title FIx not working selects and weird choice behavior; add defer for components and fix responding to components Fix not working selects and weird choice behavior; add defer for components and fix responding to components Dec 16, 2021
Copy link
Contributor

@i0bs i0bs left a comment

Choose a reason for hiding this comment

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

Cleaner approach than using a direct type(value) check. We generally use isinstance() for most type comparisons because we want to apply the actual instance property to a known typing alias, which works well for when we use the typing module.

@i0bs
Copy link
Contributor

i0bs commented Dec 16, 2021

Additionally, resolve merge conflicts with gateway.py being updated (from #376) so once changes are made, the PR may be merged.

@EepyElvyra
Copy link
Contributor Author

should be all done now

Copy link
Contributor

@i0bs i0bs left a comment

Choose a reason for hiding this comment

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

LGTM.

@i0bs
Copy link
Contributor

i0bs commented Dec 16, 2021

Merging this pull request, thank you for your contribution! Welcome to the contributors table. 😃

@i0bs i0bs merged commit 8c2ab12 into interactions-py:unstable Dec 16, 2021
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.

2 participants