Commit 4ccb0c0
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 <[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 (#2819)
* Update converter.py
* fix: enhance PartialEmojiConverter to support direct emoji names
* update doc
* Revert 2814 revert 2774 emoji (#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:` (#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]>:smile: in PartialEmoji.from_str (redo) (#2815)1 parent 58c0dfc commit 4ccb0c0
File tree
6 files changed
+37
-3
lines changed- discord
- ext/commands
6 files changed
+37
-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 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
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 | | |
| |||
851 | 852 | | |
852 | 853 | | |
853 | 854 | | |
854 | | - | |
| 855 | + | |
| 856 | + | |
855 | 857 | | |
856 | 858 | | |
857 | 859 | | |
| |||
872 | 874 | | |
873 | 875 | | |
874 | 876 | | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
875 | 885 | | |
876 | 886 | | |
877 | 887 | | |
| |||
1094 | 1104 | | |
1095 | 1105 | | |
1096 | 1106 | | |
1097 | | - | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
1098 | 1112 | | |
1099 | 1113 | | |
1100 | 1114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
144 | 149 | | |
145 | 150 | | |
146 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
104 | 114 | | |
105 | 115 | | |
106 | 116 | | |
| |||
0 commit comments