Skip to content

Commit 01a823a

Browse files
authored
Merge pull request #1885 from python-discord/fix-files-being-sent-in-webhooks
Use MISSING sentinal rather than None for no files
2 parents 81754e6 + a91b51d commit 01a823a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot/exts/moderation/incidents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ async def make_embed(incident: discord.Message, outcome: Signal, actioned_by: di
105105
else:
106106
embed.set_author(name="[Failed to relay attachment]", url=attachment.proxy_url) # Embed links the file
107107
else:
108-
file = None
108+
file = discord.utils.MISSING
109109

110110
return embed, file
111111

0 commit comments

Comments
 (0)