1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-20 00:43:36 +03:00

what if i just make a commit from mobile in discord.dev

This commit is contained in:
Macintxsh 2023-12-18 11:43:27 +03:00 committed by GitHub
parent 25dadf8894
commit 73c276f8ca
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -90,7 +90,7 @@ public class AboutCommandGroup : CommandGroup
guildId, dev.Id, ct); guildId, dev.Id, ct);
var tag = guildMemberResult.IsSuccess var tag = guildMemberResult.IsSuccess
? $"<@{dev.Id}>" ? $"<@{dev.Id}>"
: MarkdownExtensions.Url($"@{dev.Username}", $"https://github.com/{dev.Username}"); : MarkdownExtensions.Hyperlink($"@{dev.Username}", $"https://github.com/{dev.Username}");
builder.AppendBulletPointLine($"{tag} — {$"AboutDeveloper@{dev.Username}".Localized()}"); builder.AppendBulletPointLine($"{tag} — {$"AboutDeveloper@{dev.Username}".Localized()}");
} }

View file

@ -15,14 +15,14 @@ public static class MarkdownExtensions
} }
/// <summary> /// <summary>
/// Formats a string to use Markdown URL formatting. /// Formats a string to use Markdown Hyperlink formatting.
/// </summary> /// </summary>
/// <param name="text">The input text to format.</param> /// <param name="text">The input text to format.</param>
/// <param name="url">The URL to use in formatting.</param> /// <param name="url">The URL to use in formatting.</param>
/// <returns> /// <returns>
/// A markdown-formatted string with URL. /// A markdown-formatted Hyperlink string.
/// </returns> /// </returns>
public static string Url(string text, string url) public static string Hyperlink(string text, string url)
{ {
return $"[{text}]({url})"; return $"[{text}]({url})";
} }