mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-18 02:41:55 +00:00
fix: add hostname as embed description
This commit is contained in:
@@ -240,6 +240,8 @@ namespace CS2_SimpleAdmin
|
|||||||
string[] fieldValues = [$"[{targetName}]({targetcommunityUrl})", targetSteamId, time, reason, $"[{callerName}]({callercommunityUrl})"];
|
string[] fieldValues = [$"[{targetName}]({targetcommunityUrl})", targetSteamId, time, reason, $"[{callerName}]({callercommunityUrl})"];
|
||||||
bool[] inlineFlags = [true, true, true, false, false];
|
bool[] inlineFlags = [true, true, true, false, false];
|
||||||
|
|
||||||
|
string? hostname = ConVar.Find("hostname")!.StringValue ?? CS2_SimpleAdmin._localizer?["sa_unknown"] ?? "Unknown";
|
||||||
|
|
||||||
var embed = new EmbedBuilder
|
var embed = new EmbedBuilder
|
||||||
{
|
{
|
||||||
Title = penalty switch
|
Title = penalty switch
|
||||||
@@ -260,6 +262,8 @@ namespace CS2_SimpleAdmin
|
|||||||
_ => Color.Default,
|
_ => Color.Default,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Description = $"{hostname}",
|
||||||
|
|
||||||
Timestamp = DateTimeOffset.UtcNow
|
Timestamp = DateTimeOffset.UtcNow
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user