mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-20 00:43:36 +03:00
am i blind
Signed-off-by: Macintosh II <mctaylxrs@outlook.com>
This commit is contained in:
parent
80129ed4a2
commit
eb11f8bdfb
1 changed files with 1 additions and 5 deletions
|
@ -83,13 +83,9 @@ public class AboutCommandGroup : CommandGroup
|
|||
var builder = new StringBuilder().Append("### ").AppendLine(Messages.AboutTitleDevelopers);
|
||||
foreach (var dev in Developers)
|
||||
{
|
||||
var tag = $"@{dev.Username}";
|
||||
var guildMemberResult = await _guildApi.GetGuildMemberAsync(
|
||||
guildId, dev.Id, ct);
|
||||
if (guildMemberResult.IsSuccess)
|
||||
{
|
||||
tag = $"<@{dev.Id}>";
|
||||
}
|
||||
var tag = guildMemberResult.IsSuccess ? $"<@{dev.Id}>" : $"@{dev.Username}";
|
||||
|
||||
builder.AppendLine($"- {tag} — {$"AboutDeveloper@{dev.Username}".Localized()}");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue