Commit 2dfe1dc
feat: Added support for emoji aliases like
* Revert "Revert "fix: support emoji aliases like `:smile:` in PartialEmoji.fro…"
This reverts commit 8619b69.
* Update discord/partial_emoji.py
Co-authored-by: Paillat <paillat@pycord.dev>
Signed-off-by: Lala Sabathil <aiko@aitsys.dev>
* Update CHANGELOG.md
Signed-off-by: Lala Sabathil <aiko@aitsys.dev>
* Update CHANGELOG.md
Signed-off-by: Lala Sabathil <aiko@aitsys.dev>
* Update MANIFEST.in
Signed-off-by: Lala Sabathil <lala@pycord.dev>
* 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 <144063653+Lumabots@users.noreply.github.com>
* Update converter.py
* fix(utils): update UNICODE_EMOJIS to use values from EMOJIS_MAP
---------
Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com>
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 <144063653+Lumabots@users.noreply.github.com>
* 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 <144063653+Lumabots@users.noreply.github.com>
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 <aiko@aitsys.dev>
* style(pre-commit): auto fixes from pre-commit.com hooks
* Update discord/partial_emoji.py
Co-authored-by: Paillat <me@paillat.dev>
Signed-off-by: Lala Sabathil <aiko@aitsys.dev>
* Update CHANGELOG.md
Co-authored-by: Lumouille <144063653+Lumabots@users.noreply.github.com>
Signed-off-by: Lala Sabathil <aiko@aitsys.dev>
* style(pre-commit): auto fixes from pre-commit.com hooks
* Update discord/utils.py
Co-authored-by: Lumouille <144063653+Lumabots@users.noreply.github.com>
Signed-off-by: Lala Sabathil <aiko@aitsys.dev>
---------
Signed-off-by: Lala Sabathil <aiko@aitsys.dev>
Signed-off-by: Lala Sabathil <lala@pycord.dev>
Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com>
Co-authored-by: Paillat <paillat@pycord.dev>
Co-authored-by: Lumouille <144063653+Lumabots@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Paillat <me@paillat.dev>
(cherry picked from commit 4ccb0c0):smile: in PartialEmoji.from_str (redo) (Pycord-Development#2815)1 parent 16058a9 commit 2dfe1dc
File tree
5 files changed
+36
-3
lines changed- discord
- ext/commands
5 files changed
+36
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
811 | 812 | | |
812 | 813 | | |
813 | 814 | | |
814 | | - | |
| 815 | + | |
| 816 | + | |
815 | 817 | | |
816 | 818 | | |
817 | 819 | | |
| |||
832 | 834 | | |
833 | 835 | | |
834 | 836 | | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
835 | 845 | | |
836 | 846 | | |
837 | 847 | | |
| |||
1040 | 1050 | | |
1041 | 1051 | | |
1042 | 1052 | | |
1043 | | - | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
1044 | 1058 | | |
1045 | 1059 | | |
1046 | 1060 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
140 | 145 | | |
141 | 146 | | |
142 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
105 | 115 | | |
106 | 116 | | |
107 | 117 | | |
| |||
0 commit comments