try to fix invite list to prevent invite expansion

This commit is contained in:
13xforever 2020-02-16 01:20:06 +05:00
parent ffb8bbea21
commit 6f6f9e7450

View File

@ -59,7 +59,7 @@ namespace CompatBot.Commands
if (!string.IsNullOrEmpty(item.InviteCode))
link = linkPrefix + item.InviteCode;
//discord expands invite links even if they're inside the code block for some reason
table.Add(item.Id.ToString(), item.GuildId.ToString(), "\u200d" + link, guildName.Sanitize());
table.Add(item.Id.ToString(), item.GuildId.ToString(), link + StringUtils.InvisibleSpacer, guildName.Sanitize());
}
var result = new StringBuilder()
.AppendLine("Whitelisted discord servers:")