matt review changes (better code readability)

This commit is contained in:
axell 2024-07-06 17:58:13 +02:00 committed by GitHub
parent 0715cc0b03
commit 2d41955d2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}");
}