Skip to content

Commit bb81225

Browse files
committed
Linting & Changelog
1 parent a4684fe commit bb81225

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ however, insignificant breaking changes do not guarantee a major version bump, s
3535
- Sending files in threads (non-images) now work. ([GH #2926](https://github.com/kyb3r/modmail/issues/2926))
3636
- Deleting messages no longer shows a false error. ([GH #2910](https://github.com/kyb3r/modmail/issues/2910), [Jerrie-Aries](https://github.com/kyb3r/modmail/issues/2910#issuecomment-753557313))
3737
- Display an error on [Lottie](https://airbnb.io/lottie/#/) stickers, instead of failing the send.
38+
- `?perms get` now shows role/user names. ([PR #2927](https://github.com/kyb3r/modmail/pull/2927))
3839

3940
### Internal
4041

core/thread.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -898,11 +898,14 @@ async def send(
898898
if is_image_url(url, convert_size=False)
899899
]
900900
images.extend(image_urls)
901-
images.extend((
902-
str(i.image_url) if isinstance(i.image_url, discord.Asset) else i.image_url,
903-
f"{i.name} Sticker",
904-
True
905-
) for i in message.stickers)
901+
images.extend(
902+
(
903+
str(i.image_url) if isinstance(i.image_url, discord.Asset) else i.image_url,
904+
f"{i.name} Sticker",
905+
True,
906+
)
907+
for i in message.stickers
908+
)
906909

907910
embedded_image = False
908911

@@ -912,13 +915,15 @@ async def send(
912915
additional_count = 1
913916

914917
for url, filename, is_sticker in images:
915-
if not prioritize_uploads or ((url is None or is_image_url(url)) and not embedded_image and filename):
918+
if not prioritize_uploads or (
919+
(url is None or is_image_url(url)) and not embedded_image and filename
920+
):
916921
if url is not None:
917922
embed.set_image(url=url)
918923
if filename:
919924
if is_sticker:
920925
if url is None:
921-
description = 'Unable to retrieve sticker image'
926+
description = "Unable to retrieve sticker image"
922927
else:
923928
description = "\u200b"
924929
embed.add_field(name=filename, value=description)

0 commit comments

Comments
 (0)