forked from Pycord-Development/pycord
-
Notifications
You must be signed in to change notification settings - Fork 1
chore: 🔃 Merge upstream #178
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pycord-Development#2957) (cherry picked from commit 56d13c4)
…ng (Pycord-Development#2955) * feat: add incident management functionality to guilds * fix: remove deprecated type checking configuration for basedpyright * style(pre-commit): auto fixes from pre-commit.com hooks * fix: rename incidents attribute to incidents_data to follow api * style(pre-commit): auto fixes from pre-commit.com hooks * Update discord/http.py Co-authored-by: Copilot <[email protected]> Signed-off-by: Lumouille <[email protected]> * Update discord/guild.py Co-authored-by: Copilot <[email protected]> Signed-off-by: Lumouille <[email protected]> * Update discord/incidents.py Co-authored-by: Soheab <[email protected]> Signed-off-by: Lumouille <[email protected]> * refactor(incidents): simplify datetime parsing using parse_time utility * removal of guild * style(pre-commit): auto fixes from pre-commit.com hooks * Update discord/guild.py Co-authored-by: Copilot <[email protected]> Signed-off-by: Lumouille <[email protected]> * fix(incidents): require data parameter in IncidentsData constructor * fix(guild): rename incidents attribute to incidents_data for clarity * Update guild.py Co-authored-by: Soheab <[email protected]> Signed-off-by: Lumouille <[email protected]> --------- Signed-off-by: Lumouille <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Copilot <[email protected]> Co-authored-by: Soheab <[email protected]> (cherry picked from commit 0ccf2f1)
…d-Development#2952) * 🐛 Handle python 3.12+ `TypeAliasType` in `Option` parsing * 📝 CHANGELOG.md --------- Signed-off-by: Paillat <[email protected]> (cherry picked from commit 72b6e05)
…cutions (Pycord-Development#2771) Co-authored-by: plun1331 <[email protected]> Co-authored-by: JustaSqu1d <[email protected]> Co-authored-by: DA344 <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> (cherry picked from commit 65b8b61)
…lopment#2937) * 📝 Document `PrimaryGuild` and `User.primary_guild` * 🩹 Import `PrimaryGuild` in `__init__.py` * 📝 Requested changes (cherry picked from commit 40656fd)
* copyright * Update discord/incidents.py Co-authored-by: Paillat <[email protected]> Signed-off-by: Lala Sabathil <[email protected]> --------- Signed-off-by: Lala Sabathil <[email protected]> Co-authored-by: Lala Sabathil <[email protected]> Co-authored-by: Paillat <[email protected]> (cherry picked from commit a0f8e75)
…-Development#2967) 🚑 Fix `typing.TypeAliasType` not present in python <3.12 (cherry picked from commit 5a97fea)
…d docs for incident data) (Pycord-Development#2968) * missing docs and CHANGELOG * style(pre-commit): auto fixes from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Paillat <[email protected]> (cherry picked from commit bffa7bd)
…opment#2966) * :fix: Async staticmethod autocompletes not awaited * 📝 CHANGELOG.md (cherry picked from commit aef54eb)
…table as autocomplete (Pycord-Development#2914) * ✨ Allow for `functools.partials` and such as autocomplete * 📝 CHANGELOG.md * 🏷️ Better typing * 🚚 Add partial autocomplete example * 🩹 Make CI pass * 📝 Move docstring to getter * 🏷️ Boring typing stuff * ✏️ Fix writing * chore: 👽 Update base max filesize to `10` Mb (Pycord-Development#2671) * 👽 Update base max filesize to `10` Mb * 📝 CHANGELOG.md * 📝 Requested changes * 📝 Grammar * ♻️ Merge the 2 examples * ⚰️ remove conflicting autocomplete attribute from `Option` * 🐛 Fix missing setting autocomplete * Copilot Signed-off-by: Paillat <[email protected]> * 📝 CHANGELOG.md Signed-off-by: Paillat <[email protected]> * Update CHANGELOG.md Signed-off-by: Paillat <[email protected]> * 📝 Update CHANGELOG.md * 🐛 Missing description kwarg in autocomplete example --------- Signed-off-by: Paillat <[email protected]> Signed-off-by: Paillat <[email protected]> Signed-off-by: Paillat <[email protected]> Signed-off-by: Lala Sabathil <[email protected]> Co-authored-by: Lala Sabathil <[email protected]> (cherry picked from commit b190b7f)
* ✨ Add bypass slowmode perm * ✨ CHANGELOG.md --------- Signed-off-by: Lala Sabathil <[email protected]> Co-authored-by: Lala Sabathil <[email protected]> (cherry picked from commit 218e065)
…nd other qol things (Pycord-Development#2730) * 🏷️ Type stuff * ♻️ Refactor weird checks and don't redefine filter every time * ♻️ Extract name validation logic to helper method `_validate_name_prefix` * ♻️ Rename `elem, value` to `attr_name, attr_value` * ♻️ Extract attributes processing to `_process_attributes` and simplify its logic * 🐛 Fix wrong order broke static listeners * ♻️ Use a list comprehension for __cog_listeners__ * ♻️ Extract command update logic to `_update_command` * ♻️ Avoid repeating staticmethod check * ♻️ Import `Generator` & `Mapping` from `collections.abc` instead of `typing` Deprecated since python 3.9, py-cord supports 3.9+ * 🏷️ Fix ignore comments * 📝 Change comment wording --------- Signed-off-by: Paillat <[email protected]> Co-authored-by: Lala Sabathil <[email protected]> (cherry picked from commit 30912d6)
* Implements positional flags * style(pre-commit): auto fixes from pre-commit.com hooks * Documentation for positional argument in commands.Flag * style(pre-commit): auto fixes from pre-commit.com hooks * Apply suggestions from code review Co-authored-by: Dorukyum <[email protected]> Co-authored-by: JustaSqu1d <[email protected]> Signed-off-by: Lala Sabathil <[email protected]> * chore: Update typing import in flags.py The typing import in flags.py has been updated to include the Optional module. This change ensures that the __commands_flag_positional__ attribute can accept a value of None. * style(pre-commit): auto fixes from pre-commit.com hooks * style(pre-commit): auto fixes from pre-commit.com hooks * Apply suggestion from @Paillat-dev Signed-off-by: Paillat <[email protected]> --------- Signed-off-by: Lala Sabathil <[email protected]> Signed-off-by: Lala Sabathil <[email protected]> Signed-off-by: Dorukyum <[email protected]> Signed-off-by: Paillat <[email protected]> Signed-off-by: Paillat <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Lala Sabathil <[email protected]> Co-authored-by: Dorukyum <[email protected]> Co-authored-by: JustaSqu1d <[email protected]> Co-authored-by: Lala Sabathil <[email protected]> Co-authored-by: Paillat <[email protected]> Co-authored-by: Paillat <[email protected]> (cherry picked from commit 9f265b0)
Signed-off-by: Lala Sabathil <[email protected]> (cherry picked from commit d4f968c)
Signed-off-by: Lala Sabathil <[email protected]> (cherry picked from commit ca91b3e)
…velopment#2970) * fix: make sure the member's inner user is updated when fetched * chore: add changelog * style(pre-commit): auto fixes from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> (cherry picked from commit 87a9dcd)
* Add mention property to BaseEmoji class Introduces a mention property to BaseEmoji, providing a formatted string for mentioning emojis in messages. Also fixes formatting in AppEmoji's __repr__ method. * chore: changelog --------- Co-authored-by: Lala Sabathil <[email protected]> (cherry picked from commit 55efab4)
…pment#2973) Revert "feat: Add mention property to BaseEmoji class (Pycord-Development#2972)" This reverts commit 55efab4. (cherry picked from commit c6109a5)
* feat: emoji mention (Pycord-Development#2974) * Add mention property to BaseEmoji class Introduces a mention property to BaseEmoji, providing a formatted string for mentioning emojis in messages. Also fixes formatting in AppEmoji's __repr__ method. * chore: changelog --------- Co-authored-by: Lumouille <[email protected]> * style(pre-commit): auto fixes from pre-commit.com hooks --------- Co-authored-by: Lumouille <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> (cherry picked from commit 8cec195)
(cherry picked from commit 10d9a3b)
…figuration (Pycord-Development#2979) (cherry picked from commit d184428)
|
Thanks for opening this pull request! This pull request can be checked-out with: git fetch origin pull/178/head:pr-178
git checkout pr-178This pull request can be installed with: pip install git+https://github.com/Pycord-Development/pycord-next@refs/pull/178/head |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Cherry picked until d184428 included
Information
examples, ...).
Checklist
type: ignorecomments were used, a comment is also left explaining why.