Skip to content

Conversation

@i0bs
Copy link
Contributor

@i0bs i0bs commented Jan 24, 2022

About

This pull request is about bringing all of the commits from the unstable branch and adding them to stable for stable parity.

Checklist

  • I've ran pre-commit to format and lint the change(s) made.
  • I've checked to make sure the change(s) work on 3.8.6 and higher.
  • This fixes/solves an Issue.
    • (If existent):
  • I've made this pull request for/as: (check all that apply)
    • Documentation
    • Breaking change
    • New feature/enhancement
    • Bugfix

i0bs and others added 30 commits December 18, 2021 21:17
(f) fixed the logic of the sub-function for defining parameters for t…
* test #1

* test #2

* test #3

* test #4

* test #5

* test #6

* test #7

* test #8

* test #9

* test #10

* test #11

* test #12

* almost final

* final formatted
…on HTTP logic, suppress unnecessary print logic
…rations.

* Optimize #393 into few lines

* Formatted
* added delete to message

started edit of message

fixed but when editing components in componentcontext

* undo change in context

* Update interactions/api/models/message.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/message.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* remove components from editing

* completed edit, began send

* commiting in order to be able to mere changes.

* re add gitignore

* added new functions

* change tts check in message.reply

* Added new functions

ban

remove_ban

kick

* new functions:

add_member_roles

remove_member_roles

* fixed wrong func name

- unban() -> remove_ban()

* Update interactions/api/models/channel.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/gateway.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/guild.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/message.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/message.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/role.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/role.pyi

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/channel.pyi

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/channel.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/channel.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/guild.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/guild.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/guild.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* changed httpclient in messge.pyi

* Update interactions/api/models/guild.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/guild.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/guild.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/guild.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/message.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/guild.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/message.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/member.pyi

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/member.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/guild.pyi

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* Update interactions/api/models/guild.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* added things

* changed docstring

* added more helper methods in guild.py

* channel create and edit

* added modify to channel

* role delete and modify

* added send (dm) for members

* reformatted .pyi files

* changed names of methods and implemented guild.member

* corrected role functions

* fixed embed sending in channel

* made fixes, added slots. In this commit all helper methods are functioning!

* whoops, forgot removing a print statement

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.0.1 → v4.1.0](pre-commit/pre-commit-hooks@v4.0.1...v4.1.0)

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>
Co-authored-by: James Walston <officialdeltadev@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Thomas Petersson <thomaspet@unimicro.no>
* fix: checks for component sending

* more checks

* fix select

* fixed in send() as well

* fix ActionRow sending & multiple

* fix checking

* fix List[Button | SelectMenu] sending

* fix typo

* implement list list components sending

* testing

* test

* final commit pog

* fix typehints for components=

* implement interchangeable lists and ActionRows, and remove unused import

* fix: url buttons not sending

* fix: docstring and typehints

* fix: docstring and typehints again
* fixed typos

* added modify_member to guild

* fixed bug

* changed documentation

* added modify to member

* added add_to_thread

* added add_member to channel

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* re-added add_member

* Update interactions/api/models/channel.py

Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* make requested changes

* added client to context attributes

* im dumb

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: James Walston <41456914+goverfl0w@users.noreply.github.com>
FayeDel and others added 29 commits January 16, 2022 13:58
docs: replace interactions.Client variable for lib/client referencing.
* (f) fix SelectMenu and addition add values in message component

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* (f) fix check_sub_auto

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…PClient. (#433)

* refactor:

- raise error if HTTPClient is not defined in helper methods to have a clearer error
- add explanation of that error and fix to faq
- began channel.purge

* thing

* Update faq.rst

* Update channel.py

* Update guild.py

* Update member.py

* Update message.py

* Update role.py

* give context.message the HTTPClient
fix removal of message contents when editing
Move code quality and documentation dependencies into an the [dev] extra. Prevents
unnecessarily force-installing these libraries for downstream users and potentially
creating version conflicts in their projects.
- fixed a bug (prevented iterating the NoneType)
* docs:
- fix guild.py

* docs:
- fix channel.py

* docs:
- fix member.py

* docs:
- fix message.py

* docs:
- fix role.py

* docs:
- fix gateway.py

* docs:
- fix http.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Also add back the response on error.
* fix: set default logging handlers to NullHandlers

* fix: replace log instancing with new handler funct

* ref: pre-commit hook

* fix: pass errors and higher by default

* fix: add docstring and fix typo

* fix: reference conflicts with formatter

* pre-commit: fix complaint from isort
)

* fix!:

- prevent removal of message contents when editing messages

- fix editing components without deferring

* Update context.py

* style: correct tab usage.

* style: correct tab usage.

* pre-commit: allow black formatting.

Co-authored-by: fl0w <41456914+goverfl0w@users.noreply.github.com>
@i0bs i0bs merged commit eeafc56 into stable Jan 24, 2022
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.