diff --git a/bot.py b/bot.py index c6dd15580b..4a50ace6b9 100644 --- a/bot.py +++ b/bot.py @@ -1745,8 +1745,11 @@ def format_channel_name(self, author, exclude_channel=None, force_null=False): name = "null" name = new_name = ( - "".join(l for l in name if l not in string.punctuation and l.isprintable()) or "null" - ) + "" if author.discriminator == "0" else f"-{author.discriminator}" + ("".join(l for l in name if l not in string.punctuation and l.isprintable()) or "null") + + "" + if author.discriminator == "0" + else f"-{author.discriminator}" + ) counter = 1 existed = set(c.name for c in guild.text_channels if c != exclude_channel)