mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-20 00:43:36 +03:00
Update src/Commands/AboutCommandGroup.cs
Co-authored-by: Octol1ttle <l1ttleofficial@outlook.com> Signed-off-by: Macintosh II <95250141+mctaylors@users.noreply.github.com>
This commit is contained in:
parent
646d0d7765
commit
0e00069b9d
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.ToSnowflake(), 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