diff options
author | 2021-10-17 17:13:46 +0300 | |
---|---|---|
committer | 2021-10-17 17:13:46 +0300 | |
commit | 01a823afe9f9c307b6256352b4c5d0a2fb9f7c93 (patch) | |
tree | e180dd65e3639b0d4800115645cf83032d2909cd | |
parent | Merge pull request #1844 from python-discord/new-appeals-process (diff) | |
parent | Use 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.py | 2 |
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 |