Browse Source

Fixed underline function

tags/docs-0.9
Brandon Smith 9 years ago
parent
commit
76d019997e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net/Format.cs

+ 1
- 1
src/Discord.Net/Format.cs View File

@@ -54,7 +54,7 @@ namespace Discord
=> escape ? $"*{Escape(text)}*" : $"*{text}*";
/// <summary> Returns a markdown-formatted string with underline formatting, optionally escaping the contents. </summary>
public static string Underline(string text, bool escape = true)
=> escape ? $"_{Escape(text)}_" : $"_{text}_";
=> escape ? $"__{Escape(text)}__" : $"__{text}__";
/// <summary> Returns a markdown-formatted string with strikeout formatting, optionally escaping the contents. </summary>
public static string Strikeout(string text, bool escape = true)
=> escape ? $"~~{Escape(text)}~~" : $"~~{text}~~";


Loading…
Cancel
Save