aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar sco1 <[email protected]>2019-01-12 13:22:11 -0500
committerGravatar sco1 <[email protected]>2019-01-12 13:22:11 -0500
commit3fc94a97dc88504c29985fff735b346e2122c4a2 (patch)
treebae1026f4a9c421b54a669f4f572acb46764296d
parentAdd Optional type hints where appropriate (diff)
Condense logic
-rw-r--r--bot/cogs/modlog.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/bot/cogs/modlog.py b/bot/cogs/modlog.py
index 589052b1e..55611c5e4 100644
--- a/bot/cogs/modlog.py
+++ b/bot/cogs/modlog.py
@@ -125,15 +125,12 @@ class ModLog:
embed.colour = colour
- if timestamp_override:
- embed.timestamp = timestamp_override
- else:
- embed.timestamp = datetime.datetime.utcnow()
+ embed.timestamp = timestamp_override or datetime.datetime.utcnow()
if footer_override:
embed.set_footer(text=footer_override)
- if thumbnail is not None:
+ if thumbnail:
embed.set_thumbnail(url=thumbnail)
if ping_everyone: