aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-12-25 12:13:05 -0800
committerGravatar MarkKoz <[email protected]>2020-02-12 10:07:46 -0800
commitf0c6a34be439788de18872c6edbc1d94256bda14 (patch)
treef5629307c8bb537de5ca5af876ee86f037964f4d
parentSync: fix passing context instead of message to _confirm() (diff)
Sync: fix overwriting message with None after editing it
-rw-r--r--bot/cogs/sync/syncers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/sync/syncers.py b/bot/cogs/sync/syncers.py
index 1465730c1..5652872f7 100644
--- a/bot/cogs/sync/syncers.py
+++ b/bot/cogs/sync/syncers.py
@@ -63,7 +63,7 @@ class Syncer(abc.ABC):
message = await channel.send(f"<@&{constants.Roles.core_developer}> {msg_content}")
else:
- message = await message.edit(content=f"{message.author.mention} {msg_content}")
+ await message.edit(content=f"{message.author.mention} {msg_content}")
# Add the initial reactions.
for emoji in allowed_emoji: