diff options
author | 2020-05-31 18:19:36 +0200 | |
---|---|---|
committer | 2020-05-31 18:19:36 +0200 | |
commit | d637053eb19a6bf33e765b25b3dff9963d7b7735 (patch) | |
tree | 32cd27325aa6f9566d2eec3dec18e7496453d3c1 | |
parent | Better channel mentions (diff) |
Remove unnecessary conditional.
Thanks @MarkKoz!
-rw-r--r-- | bot/cogs/clean.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bot/cogs/clean.py b/bot/cogs/clean.py index 571a5ced8..02216a4af 100644 --- a/bot/cogs/clean.py +++ b/bot/cogs/clean.py @@ -166,10 +166,8 @@ class Clean(Cog): return # Build the embed and send it - if len(channels) > 1: - target_channels = ", ".join(channel.mention for channel in channels) - else: - target_channels = f"<#{channels[0].id}>" + target_channels = ", ".join(channel.mention for channel in channels) + message = ( f"**{len(message_ids)}** messages deleted in {target_channels} by **{ctx.author.name}**\n\n" f"A log of the deleted messages can be found [here]({log_url})." |