Commit 52a069b
chore: Merge upstream (#62)
* chore: 📝 update license format in pyproject.toml (Pycord-Development#2824)
* 📝 update license format in pyproject.toml
* chore: reference license file
Signed-off-by: Lala Sabathil <[email protected]>
* fix: classifer is invalid now
Signed-off-by: Lala Sabathil <[email protected]>
---------
Signed-off-by: Lala Sabathil <[email protected]>
Co-authored-by: Lala Sabathil <[email protected]>
(cherry picked from commit 1c65fc8)
* docs: 📝 Fix malformed hyperlink in CHANGELOG.md number 2 (Pycord-Development#2806)
* 📝 Fix hyperlink in CHANGELOG.md
* Update CHANGELOG.md
Signed-off-by: Lala Sabathil <[email protected]>
* style(pre-commit): auto fixes from pre-commit.com hooks
---------
Signed-off-by: Lala Sabathil <[email protected]>
Co-authored-by: Lala Sabathil <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Dorukyum <[email protected]>
(cherry picked from commit 1214a70)
* feat: components v2 & `View` improvements (Pycord-Development#2707)
Signed-off-by: UK <[email protected]>
Signed-off-by: Lala Sabathil <[email protected]>
Signed-off-by: plun1331 <[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: Paillat <[email protected]>
Co-authored-by: Ice Wolfy <[email protected]>
Co-authored-by: plun1331 <[email protected]>
Co-authored-by: JustaSqu1d <[email protected]>
(cherry picked from commit a5aa21f)
* fix: 4006 voice crashes and upgrade to voice v8 (Pycord-Development#2812)
Signed-off-by: Lala Sabathil <[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]>
(cherry picked from commit 2ae01b7)
* fix: 🐛 Fix missing self. attribution in File component (Pycord-Development#2843)
* 🐛 Fix missing self. attribution in File
* 📝 CHANGELOG.md
(cherry picked from commit 0102b7d)
* fix: 🐛 Fix issue in cv2 example (Pycord-Development#2842)
:bug: Fix error in on_timeout, should use .parent not .message
(cherry picked from commit 9bef192)
* docs: 📝 update docstrings for Asset and Attachment classes to clarify hash return values (Pycord-Development#2832)
:memo: update docstrings for Asset and Attachment classes to clarify hash return values
(cherry picked from commit 35c7dc1)
* fix: 🐛 Issue in `@option` where some annotations could not be used along with `channel_types` (Pycord-Development#2835)
* 🐛 Option: Always set `input_type` to `SlashCommandOptionType.channel` when `channel_types` is set
* 📝 CHANGELOG.md
* style(pre-commit): auto fixes from pre-commit.com hooks
---------
Signed-off-by: Paillat <[email protected]>
Signed-off-by: Lala Sabathil <[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]>
(cherry picked from commit 213b639)
* feat: allow conversion to Member in MentionableConverter (Pycord-Development#2775)
* Update CHANGELOG.md
Signed-off-by: Lumouille <[email protected]>
* fix member not being converted
Signed-off-by: Lumouille <[email protected]>
* fix member not being converted
Signed-off-by: Lumouille <[email protected]>
* style(pre-commit): auto fixes from pre-commit.com hooks
* Update CHANGELOG.md
Signed-off-by: Lumouille <[email protected]>
* Update CHANGELOG.md
Signed-off-by: Lumouille <[email protected]>
* Update CHANGELOG.md
Co-authored-by: plun1331 <[email protected]>
Signed-off-by: Lumouille <[email protected]>
* refactor(bridge): remove redundant constructor in BridgeOption
* feat(bridge): enhance BridgeOption initialization with converter support
* Update discord/ext/bridge/core.py
Co-authored-by: Dorukyum <[email protected]>
Signed-off-by: Lumouille <[email protected]>
* improved code quality
---------
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: plun1331 <[email protected]>
Co-authored-by: Dorukyum <[email protected]>
(cherry picked from commit a82f562)
* feat: ✨ Add missing feature flags to `Guild.edit` (Pycord-Development#2672)
* ✨ Add missing `Guild` feature flags
* ✨ Add `Guild.activity_feed_enabled` to know whether the activity feed is enabled for the guild.
* 📝 Docs
* 📝 CHANGELOG.md
* chore: 👽 Update base max filesize to `10` Mb (Pycord-Development#2671)
* 👽 Update base max filesize to `10` Mb
* 📝 CHANGELOG.md
* 📝 Requested changes
* ⚡ Compute `features` only once
* Remove variable
* ♻️ change `raid_alerts` to `enable_raid_alerts`
* 🚑 Forgot to rename `enable_raid_alerts`
* ♻️ change `enable_raid_alerts` to `disable_raid_alerts`
Signed-off-by: Dorukyum <[email protected]>
* fix docstring
Signed-off-by: Dorukyum <[email protected]>
---------
Signed-off-by: Paillat <[email protected]>
Signed-off-by: Dorukyum <[email protected]>
Co-authored-by: Dorukyum <[email protected]>
(cherry picked from commit 3bb7163)
# Conflicts:
# discord/guild.py
# discord/types/guild.py
* feat(translations): add turkish
Signed-off-by: Lala Sabathil <[email protected]>
(cherry picked from commit a990e74)
* docs: Update localizations from Crowdin (Pycord-Development#2846)
Co-authored-by: Crowdin Bot <[email protected]>
(cherry picked from commit dd7d5a6)
* feat(commands): add support for typing.Literal[...] as command choices (Pycord-Development#2782)
* fix: add support for Literal type in typing annotations for Discord choices
* Update CHANGELOG.md
* Update CHANGELOG.md
Signed-off-by: Lumouille <[email protected]>
* Update CHANGELOG.md
Co-authored-by: JustaSqu1d <[email protected]>
Signed-off-by: Lumouille <[email protected]>
* refactor: move condition to method
* docs: update changelog
* fix: ensure all literal values are of the same type in SlashCommand options
* Update discord/commands/core.py
Co-authored-by: Paillat <[email protected]>
Signed-off-by: Lumouille <[email protected]>
* Update discord/commands/core.py
Co-authored-by: Paillat <[email protected]>
Signed-off-by: Lumouille <[email protected]>
* style(pre-commit): auto fixes from pre-commit.com hooks
---------
Signed-off-by: Lumouille <[email protected]>
Co-authored-by: JustaSqu1d <[email protected]>
Co-authored-by: Dorukyum <[email protected]>
Co-authored-by: Paillat <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit 4392105)
* fix: retain original File item urls for editing (Pycord-Development#2847)
* fix file component patching
* style(pre-commit): auto fixes from pre-commit.com hooks
* component typing
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit bda1dfe)
* feat: ✨ Add support for role gradient colors in Role (Pycord-Development#2818)
* ✨ Add support for enhanced role colors in `Role`
* ✨ add RoleColours support to `Role.edit`
* ✨ add RoleColours support to role creation in `Guild` and define default colors in `RoleColours`
* ✨ add support for RoleColours in role creation and editing
* ✨ update role attributes to use RoleColours and enhance color properties
* 📝 CHANGELOG.md
* 📝 add documentation for RoleColours and its attributes
* ✏️ fix version annotation for primary color method in role.py
* ✨ add holographic role support in RoleColours
* 📝 update tertiary color documentation to specify allowed value
* ✨ Finish implementing holographic support
* 🗑️ Add deprecation warnings for singular colour properties in Role and Guild
(cherry picked from commit 975a0d9)
* feat: ✨ add Nameplate class and integration (Pycord-Development#2817)
* ✨ add Nameplate class and integration in user model
* 🏷️ feat: add nameplate attribute to User class
* ✨ add NameplatePalette enum and enhance Nameplate class with asset retrieval
* 📝 add nameplate attribute to User class documentation
* 📝 CHANGELOG.md
* 📝 add versionadded directive for Nameplate class and NameplatePalette enum
* 📝 update Nameplate class documentation to include undocumented members
* ✏️ Fix typo in NameplatePalette
* 📝 standardize nameplate color attributes to lowercase and document each color in enums
* 📝 refine Nameplate class docstring for clarity
* Update discord/collectibles.py
Signed-off-by: Paillat <[email protected]>
* ♻️ remove NameplatePalette enum and change palette type to str
---------
Signed-off-by: Paillat <[email protected]>
Signed-off-by: Paillat <[email protected]>
(cherry picked from commit 58c0dfc)
* feat: Added support for emoji aliases like `:smile:` in PartialEmoji.from_str (redo) (Pycord-Development#2815)
* Revert "Revert "fix: support emoji aliases like `:smile:` in PartialEmoji.fro…"
This reverts commit 8619b69.
* Update discord/partial_emoji.py
Co-authored-by: Paillat <[email protected]>
Signed-off-by: Lala Sabathil <[email protected]>
* Update CHANGELOG.md
Signed-off-by: Lala Sabathil <[email protected]>
* Update CHANGELOG.md
Signed-off-by: Lala Sabathil <[email protected]>
* Update MANIFEST.in
Signed-off-by: Lala Sabathil <[email protected]>
* feat: allow usage of unicode emoji in PartialEmojiConverter (Pycord-Development#2819)
* Update converter.py
* fix: enhance PartialEmojiConverter to support direct emoji names
* update doc
* Revert 2814 revert 2774 emoji (Pycord-Development#2820)
* Add Unicode emoji support to PartialEmojiConverter
PartialEmojiConverter now recognizes standard Unicode emojis using a new UNICODE_EMOJIS set loaded from emojis.json. The emoji mapping and set are moved to discord.utils for reuse, and references in partial_emoji.py are updated accordingly.
* style(pre-commit): auto fixes from pre-commit.com hooks
* Update converter.py
Signed-off-by: Lumouille <[email protected]>
* Update converter.py
* fix(utils): update UNICODE_EMOJIS to use values from EMOJIS_MAP
---------
Signed-off-by: Lumouille <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* added back support of smile and `:smile:` (Pycord-Development#2822)
* Add Unicode emoji support to PartialEmojiConverter
PartialEmojiConverter now recognizes standard Unicode emojis using a new UNICODE_EMOJIS set loaded from emojis.json. The emoji mapping and set are moved to discord.utils for reuse, and references in partial_emoji.py are updated accordingly.
* style(pre-commit): auto fixes from pre-commit.com hooks
* Update converter.py
Signed-off-by: Lumouille <[email protected]>
* Update converter.py
* fix(utils): update UNICODE_EMOJIS to use values from EMOJIS_MAP
* fix(partial_emoji): simplify emoji name extraction by using removeprefix and removesuffix
* style(pre-commit): auto fixes from pre-commit.com hooks
---------
Signed-off-by: Lumouille <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Update discord/partial_emoji.py
Signed-off-by: Lala Sabathil <[email protected]>
* style(pre-commit): auto fixes from pre-commit.com hooks
* Update discord/partial_emoji.py
Co-authored-by: Paillat <[email protected]>
Signed-off-by: Lala Sabathil <[email protected]>
* Update CHANGELOG.md
Co-authored-by: Lumouille <[email protected]>
Signed-off-by: Lala Sabathil <[email protected]>
* style(pre-commit): auto fixes from pre-commit.com hooks
* Update discord/utils.py
Co-authored-by: Lumouille <[email protected]>
Signed-off-by: Lala Sabathil <[email protected]>
---------
Signed-off-by: Lala Sabathil <[email protected]>
Signed-off-by: Lala Sabathil <[email protected]>
Signed-off-by: Lumouille <[email protected]>
Co-authored-by: Paillat <[email protected]>
Co-authored-by: Lumouille <[email protected]>
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 4ccb0c0)
* Update readthedocs.yml
Signed-off-by: Lala Sabathil <[email protected]>
(cherry picked from commit bf26465)
* chore(ci): update execute-whitelist-action
Signed-off-by: Lala Sabathil <[email protected]>
(cherry picked from commit 7c598bc)
* feat: added Interaction.attachment_size_limit (Pycord-Development#2854)
Signed-off-by: hich4t <[email protected]>
Co-authored-by: Paillat <[email protected]>
Co-authored-by: Lala Sabathil <[email protected]>
(cherry picked from commit b43969a)
* feat: Replaced useless `cached_property` with `property` and moved to `functools.cached_property` (Pycord-Development#2769)
* feat: Replaced useless `cached_property` with `property` and moved to `functools.cached_property`
* style(pre-commit): auto fixes from pre-commit.com hooks
* chore: switch to `functools.cached_property` for intensive code
* style(pre-commit): auto fixes from pre-commit.com hooks
* Update context.py
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: Paillat <[email protected]>
(cherry picked from commit 7ab3af9)
* fix: support new voice encryption modes (Pycord-Development#2651)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ice Wolfy <[email protected]>
Co-authored-by: Paillat <[email protected]>
(cherry picked from commit 8e2185c)
* ⬆️ Upgrade deps
* 🚨 Fix ruff warnings and format code
* 🩹 Fix import
---------
Signed-off-by: Lala Sabathil <[email protected]>
Signed-off-by: Paillat <[email protected]>
Signed-off-by: Lala Sabathil <[email protected]>
Signed-off-by: Lumouille <[email protected]>
Signed-off-by: Paillat <[email protected]>
Signed-off-by: Paillat <[email protected]>
Signed-off-by: hich4t <[email protected]>
Co-authored-by: Lala Sabathil <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Dorukyum <[email protected]>
Co-authored-by: UK <[email protected]>
Co-authored-by: DA344 <[email protected]>
Co-authored-by: Lala Sabathil <[email protected]>
Co-authored-by: Lumouille <[email protected]>
Co-authored-by: plun1331 <[email protected]>
Co-authored-by: Nyuw~ <[email protected]>
Co-authored-by: Crowdin Bot <[email protected]>
Co-authored-by: JustaSqu1d <[email protected]>
Co-authored-by: hich4t <[email protected]>
Co-authored-by: Riccardo Vaccari <[email protected]>File tree
558 files changed
+55547
-13951
lines changed- .github/workflows
- discord
- commands
- ext
- bridge
- commands
- pages
- sinks
- types
- ui
- webhook
- docs
- api
- build/locales
- .doctrees
- api
- ext
- bridge
- commands
- pages
- api
- ext
- bridge
- commands
- pages
- locales
- de/LC_MESSAGES
- api
- ext
- bridge
- commands
- pages
- tasks
- en/LC_MESSAGES
- api
- ext
- commands
- pages
- es/LC_MESSAGES
- api
- ext
- bridge
- commands
- pages
- tasks
- fr/LC_MESSAGES
- api
- ext
- bridge
- commands
- pages
- tasks
- hi/LC_MESSAGES
- api
- ext
- bridge
- commands
- pages
- tasks
- it/LC_MESSAGES
- api
- ext
- bridge
- commands
- pages
- tasks
- ja/LC_MESSAGES
- api
- ext
- bridge
- commands
- pages
- tasks
- ko/LC_MESSAGES
- api
- ext
- bridge
- commands
- pages
- tasks
- pt_BR/LC_MESSAGES
- api
- ext
- bridge
- commands
- pages
- tasks
- ru/LC_MESSAGES
- api
- ext
- bridge
- commands
- pages
- tasks
- tr/LC_MESSAGES
- api
- ext
- bridge
- commands
- pages
- tasks
- zh_CN/LC_MESSAGES
- api
- ext
- bridge
- commands
- pages
- tasks
- examples/views
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
558 files changed
+55547
-13951
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 21 | + | |
33 | 22 | | |
34 | 23 | | |
35 | 24 | | |
36 | 25 | | |
37 | 26 | | |
38 | 27 | | |
39 | | - | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
58 | 64 | | |
59 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
60 | 72 | | |
61 | 73 | | |
62 | 74 | | |
| |||
113 | 125 | | |
114 | 126 | | |
115 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
116 | 131 | | |
117 | 132 | | |
118 | 133 | | |
119 | 134 | | |
120 | 135 | | |
121 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
122 | 143 | | |
123 | 144 | | |
124 | 145 | | |
| |||
138 | 159 | | |
139 | 160 | | |
140 | 161 | | |
| 162 | + | |
| 163 | + | |
141 | 164 | | |
142 | 165 | | |
143 | 166 | | |
| |||
150 | 173 | | |
151 | 174 | | |
152 | 175 | | |
153 | | - | |
154 | | - | |
| 176 | + | |
| 177 | + | |
155 | 178 | | |
156 | 179 | | |
157 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1545 | 1545 | | |
1546 | 1546 | | |
1547 | 1547 | | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
1548 | 1552 | | |
1549 | 1553 | | |
1550 | 1554 | | |
| |||
1605 | 1609 | | |
1606 | 1610 | | |
1607 | 1611 | | |
1608 | | - | |
| 1612 | + | |
| 1613 | + | |
1609 | 1614 | | |
| 1615 | + | |
1610 | 1616 | | |
1611 | 1617 | | |
1612 | 1618 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
571 | | - | |
| 571 | + | |
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
576 | | - | |
| 576 | + | |
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
600 | | - | |
| 600 | + | |
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
605 | | - | |
| 605 | + | |
606 | 606 | | |
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
612 | | - | |
| 612 | + | |
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
617 | | - | |
| 617 | + | |
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
414 | | - | |
| 414 | + | |
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
803 | 803 | | |
804 | 804 | | |
805 | 805 | | |
806 | | - | |
| 806 | + | |
807 | 807 | | |
808 | 808 | | |
809 | 809 | | |
810 | 810 | | |
811 | 811 | | |
812 | | - | |
| 812 | + | |
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
| |||
0 commit comments