mirror of
https://github.com/RPCS3/discord-bot.git
synced 2025-03-03 23:37:03 +00:00
try to fix invite list to prevent invite expansion
This commit is contained in:
parent
ffb8bbea21
commit
6f6f9e7450
@ -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:")
|
||||
|
Loading…
x
Reference in New Issue
Block a user