mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-19 16:33:36 +03:00
what if i just make a commit from mobile in discord.dev
This commit is contained in:
parent
25dadf8894
commit
73c276f8ca
2 changed files with 4 additions and 4 deletions
|
@ -90,7 +90,7 @@ public class AboutCommandGroup : CommandGroup
|
|||
guildId, dev.Id, ct);
|
||||
var tag = guildMemberResult.IsSuccess
|
||||
? $"<@{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()}");
|
||||
}
|
||||
|
|
|
@ -15,14 +15,14 @@ public static class MarkdownExtensions
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Formats a string to use Markdown URL formatting.
|
||||
/// Formats a string to use Markdown Hyperlink formatting.
|
||||
/// </summary>
|
||||
/// <param name="text">The input text to format.</param>
|
||||
/// <param name="url">The URL to use in formatting.</param>
|
||||
/// <returns>
|
||||
/// A markdown-formatted string with URL.
|
||||
/// A markdown-formatted Hyperlink string.
|
||||
/// </returns>
|
||||
public static string Url(string text, string url)
|
||||
public static string Hyperlink(string text, string url)
|
||||
{
|
||||
return $"[{text}]({url})";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue