Skip to content

Commit a91b51d

Browse files
committed
Use MISSING sentinal rather than None for no files
Fixes #1884 Fixes BOT-1NY Discord.py 2.0 changed how this works, webhooks now look for the MISSING sentinal, rather than None to determine whether files are being passed. This was updated in this commit: Rapptz/discord.py@a6f7213
1 parent 81754e6 commit a91b51d

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)