From 2d41955d2a82b1459bb3820ab7d16e4e2d1c1520 Mon Sep 17 00:00:00 2001 From: axell Date: Sat, 6 Jul 2024 17:58:13 +0200 Subject: [PATCH] matt review changes (better code readability) --- Bloxstrap/Integrations/DiscordRichPresence.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Bloxstrap/Integrations/DiscordRichPresence.cs b/Bloxstrap/Integrations/DiscordRichPresence.cs index 6459be0..840b1d5 100644 --- a/Bloxstrap/Integrations/DiscordRichPresence.cs +++ b/Bloxstrap/Integrations/DiscordRichPresence.cs @@ -190,8 +190,8 @@ namespace Bloxstrap.Integrations } string icon = "roblox"; - string smallimagetext = "Roblox"; - string smallimage = "roblox"; + string smallImageText = "Roblox"; + string smallImage = "roblox"; long placeId = _activityWatcher.ActivityPlaceId; string userId = _activityWatcher.ActivityUserId; @@ -253,7 +253,8 @@ namespace Bloxstrap.Integrations if (userInfoResponse is null) { App.Logger.WriteLine(LOG_IDENT, "Could not get user info!"); - } else { + } else + { smallimagetext = userInfoResponse.DisplayName + $" (@{userInfoResponse.Username})"; //example: john doe (@johndoe) App.Logger.WriteLine(LOG_IDENT, $"Got user info as {smallimagetext}"); }