From f7b4bbf41019962ba5babd1f814467391f3256de Mon Sep 17 00:00:00 2001 From: RogueException Date: Sun, 19 Jun 2016 18:53:40 -0300 Subject: [PATCH] Removed double namespace in Format.cs --- src/Discord.Net/Format.cs | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/src/Discord.Net/Format.cs b/src/Discord.Net/Format.cs index fec9114a3..8b1d06bf8 100644 --- a/src/Discord.Net/Format.cs +++ b/src/Discord.Net/Format.cs @@ -1,27 +1,23 @@ namespace Discord { - namespace Discord + public static class Format { - public static class Format - { - /// Returns a markdown-formatted string with bold formatting. - public static string Bold(string text) => $"**{text}**"; - /// Returns a markdown-formatted string with italics formatting. - public static string Italics(string text) => $"*{text}*"; - /// Returns a markdown-formatted string with underline formatting. - public static string Underline(string text) => $"__{text}__"; - /// Returns a markdown-formatted string with strikethrough formatting. - public static string Strikethrough(string text) => $"~~{text}~~"; + /// Returns a markdown-formatted string with bold formatting. + public static string Bold(string text) => $"**{text}**"; + /// Returns a markdown-formatted string with italics formatting. + public static string Italics(string text) => $"*{text}*"; + /// Returns a markdown-formatted string with underline formatting. + public static string Underline(string text) => $"__{text}__"; + /// Returns a markdown-formatted string with strikethrough formatting. + public static string Strikethrough(string text) => $"~~{text}~~"; - /// Returns a markdown-formatted string with strikeout formatting. - public static string Code(string text, string language = null) - { - if (language != null || text.Contains("\n")) - return $"```{language ?? ""}\n{text}\n```"; - else - return $"`{text}`"; - } + /// Returns a markdown-formatted string with strikeout formatting. + public static string Code(string text, string language = null) + { + if (language != null || text.Contains("\n")) + return $"```{language ?? ""}\n{text}\n```"; + else + return $"`{text}`"; } } - }