aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris <[email protected]>2021-04-14 17:48:49 +0100
committerGravatar Chris <[email protected]>2021-04-14 17:48:49 +0100
commit56ff78ae70986dfbc01878e666a6aaf753739668 (patch)
tree3c92260e9eb3eac034770a6f919d147586ec9841
parentRequire at least one snowflake to be provided. (diff)
Refactor embed to use just one line
-rw-r--r--bot/exts/utils/utils.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/exts/utils/utils.py b/bot/exts/utils/utils.py
index 0fe0cab78..8d9d27c64 100644
--- a/bot/exts/utils/utils.py
+++ b/bot/exts/utils/utils.py
@@ -165,9 +165,7 @@ class Utils(Cog):
if not snowflakes:
raise BadArgument("At least one snowflake must be provided.")
- embed = Embed(
- colour=Colour.blue()
- )
+ embed = Embed(colour=Colour.blue())
embed.set_author(
name=f"Snowflake{'s'[:len(snowflakes)^1]}", # Deals with pluralisation
icon_url="https://github.com/twitter/twemoji/blob/master/assets/72x72/2744.png?raw=true"