From 76d019997ef642d47a00508e6281f95059cb7f8a Mon Sep 17 00:00:00 2001 From: Brandon Smith Date: Sat, 5 Sep 2015 16:28:27 -0300 Subject: [PATCH] Fixed underline function --- src/Discord.Net/Format.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net/Format.cs b/src/Discord.Net/Format.cs index 65ce691a4..9edc1753f 100644 --- a/src/Discord.Net/Format.cs +++ b/src/Discord.Net/Format.cs @@ -54,7 +54,7 @@ namespace Discord => escape ? $"*{Escape(text)}*" : $"*{text}*"; /// Returns a markdown-formatted string with underline formatting, optionally escaping the contents. public static string Underline(string text, bool escape = true) - => escape ? $"_{Escape(text)}_" : $"_{text}_"; + => escape ? $"__{Escape(text)}__" : $"__{text}__"; /// Returns a markdown-formatted string with strikeout formatting, optionally escaping the contents. public static string Strikeout(string text, bool escape = true) => escape ? $"~~{Escape(text)}~~" : $"~~{text}~~";