aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Boris Muratov <[email protected]>2021-10-17 17:13:46 +0300
committerGravatar GitHub <[email protected]>2021-10-17 17:13:46 +0300
commit01a823afe9f9c307b6256352b4c5d0a2fb9f7c93 (patch)
treee180dd65e3639b0d4800115645cf83032d2909cd
parentMerge pull request #1844 from python-discord/new-appeals-process (diff)
parentUse MISSING sentinal rather than None for no files (diff)
Merge pull request #1885 from python-discord/fix-files-being-sent-in-webhooks
Use MISSING sentinal rather than None for no files
-rw-r--r--bot/exts/moderation/incidents.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/moderation/incidents.py b/bot/exts/moderation/incidents.py
index 097fa36f1..e265e29d3 100644
--- a/bot/exts/moderation/incidents.py
+++ b/bot/exts/moderation/incidents.py
@@ -105,7 +105,7 @@ async def make_embed(incident: discord.Message, outcome: Signal, actioned_by: di
else:
embed.set_author(name="[Failed to relay attachment]", url=attachment.proxy_url) # Embed links the file
else:
- file = None
+ file = discord.utils.MISSING
return embed, file