Skip to content

Commit

Permalink
Fix Variant Name on WH
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisFeline committed Dec 15, 2024
1 parent e8d9ee8 commit 80a76e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# Latest Changelog

- Fixed player names showing their GUID on the tooltips after VRChat's latest update.
- In addition, the GUID is sent on the WebSocket API too.
- OSC Damage event got an overhaul, you can use JavaScript to manipulate the value of this parameter so it can be used as a float in other "things".
- For example, if you set "Damage / 100" as the code and the damage value is '50', this will be evaluated to '0.5' before sending the value.
- Added new WebSocket API event: MASTER_CHANGE
- Chatbox no longer clears on teleport to map if you have the 'Send Chatbox' feature disabled.
- Date list now sorts using Universal Time. This prevents unwanted behaviour when 'Daylight Saving' event occurs.
- Fixed terror names on Webhook embed not showing the correct variant name.
- Fixed new line handling on custom Chatbox messages with JS tags.
4 changes: 2 additions & 2 deletions Utils/Discord/DSWebHook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ internal static void LocalizeContent() {
LABEL_ROUND = LANG.S("SETTINGS.DISCORDWEBHOOK.LABEL_ROUND") ?? "**Round Type**: `{0}`";
LABEL_MAP = LANG.S("SETTINGS.DISCORDWEBHOOK.LABEL_MAP") ?? "**Map**: `{0}`";
LABEL_TERRORS = LANG.S("SETTINGS.DISCORDWEBHOOK.LABEL_TERRORS") ?? "**Terrors in Round**: `{0}`";
LABEL_TERRORS_SPLIT = LANG.S("SETTINGS.DISCORDWEBHOOK.LABEL_TERRORS_SPLIT") ?? "**Terrors in Round**: `{0}`";
LABEL_TERRORS_SPLIT = LANG.S("SETTINGS.DISCORDWEBHOOK.LABEL_TERRORS_SPLIT") ?? "`, `";
LABEL_COUNT = LANG.S("SETTINGS.DISCORDWEBHOOK.LABEL_COUNT") ?? "**Player Count**: `{0}`";
LABEL_NOTE = LANG.S("SETTINGS.DISCORDWEBHOOK.LABEL_NOTE") ?? "**Note**: `{0}`";
}
Expand Down Expand Up @@ -117,7 +117,7 @@ private static async Task Send(string webhookUrl)
if (entry.TD != null && entry.TD.Length > 0)
{
if (EmbedData.Description.Length > 0) EmbedData.Description += "\n";
EmbedData.Description += string.Format(LABEL_TERRORS, string.Join(LABEL_TERRORS_SPLIT, entry.TD.Select(ToNIndex.Instance.GetTerror)));
EmbedData.Description += string.Format(LABEL_TERRORS, string.Join(LABEL_TERRORS_SPLIT, entry.TD.Select(n => n.Name)));
}

if (entry.PlayerCount > 0)
Expand Down

0 comments on commit 80a76e1

Please sign in to comment.