Skip to content

Commit d8855fe

Browse files
committed
feat: also handle thumbnails in proxy bypass
1 parent 9d4369e commit d8855fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interactions/models/internal/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ async def _send_http_request(
406406
if const.has_client_feature("FOLLOWUP_INTERACTIONS_FOR_IMAGES") and not self.deferred:
407407
# experimental bypass for discords broken image proxy
408408
if embeds := message_payload.get("embeds", {}):
409-
if any(e.get("image") for e in embeds):
409+
if any(e.get("image") for e in embeds) or any(e.get("thumbnail") for e in embeds):
410410
if MessageFlags.EPHEMERAL in message_payload.get("flags", MessageFlags.NONE):
411411
self.ephemeral = True
412412
await self.defer(ephemeral=self.ephemeral)

0 commit comments

Comments
 (0)