Commit aa4b497
feat: allow editing for guild role icons (#1558)
* chore: Version bump
Signed-off-by: LordOfPolls <dev@lordofpolls.com>
* Implemented role icon edit
* added role icon editing to the edit method
* Update misc_utils.py
* ci: correct from checks.
* fixed formatting, added return formatting indicator
* Noticed that interactions.client.utils.serializer
already had the functions I added to misc_utils. Undid those changes and tidied up the code in role.py to reflect the already existing converter. Added an error raise if both icon and unicode emojis are used in one edit (the api requires only one is provided.)
* Cleaned up the docstring and moved the icon serialization
cleaned up the docstring to better align with requirements, moved the icon serialization so the payload's code is a bit easier to follow at a glance.
* Added UPLOADABLE_TYPE per comment
---------
Signed-off-by: LordOfPolls <dev@lordofpolls.com>
Co-authored-by: Katelyn Gigante <clockwork.singularity@gmail.com>
Co-authored-by: LordOfPolls <dev@lordofpolls.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent 2d3c2c0 commit aa4b497
File tree
3 files changed
+14
-3
lines changed- interactions
- client/utils
- models/discord
3 files changed
+14
-3
lines changedFile mode changed.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | | - | |
| 8 | + | |
10 | 9 | | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
190 | 192 | | |
191 | 193 | | |
192 | 194 | | |
| |||
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
| 202 | + | |
| 203 | + | |
200 | 204 | | |
201 | 205 | | |
202 | 206 | | |
203 | 207 | | |
204 | 208 | | |
205 | 209 | | |
206 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
207 | 216 | | |
208 | 217 | | |
209 | 218 | | |
210 | 219 | | |
211 | 220 | | |
212 | 221 | | |
213 | 222 | | |
| 223 | + | |
| 224 | + | |
214 | 225 | | |
215 | 226 | | |
216 | 227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments