refrence correct variables

This commit is contained in:
axell 2024-07-06 18:16:01 +02:00 committed by GitHub
parent 7cda0fb5b1
commit 36a6793836
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -245,8 +245,8 @@ namespace Bloxstrap.Integrations
} }
else else
{ {
smallimage = userPfpResponse.Data.ToArray()[0].ImageUrl; smallImage = userPfpResponse.Data.ToArray()[0].ImageUrl;
App.Logger.WriteLine(LOG_IDENT, $"Got user thumbnail as {smallimage}"); App.Logger.WriteLine(LOG_IDENT, $"Got user thumbnail as {smallImage}");
} }
var userInfoResponse = await Http.GetJson<UserInfoResponse>($"https://users.roblox.com/v1/users/{userId}"); var userInfoResponse = await Http.GetJson<UserInfoResponse>($"https://users.roblox.com/v1/users/{userId}");
@ -255,8 +255,8 @@ namespace Bloxstrap.Integrations
App.Logger.WriteLine(LOG_IDENT, "Could not get user info!"); App.Logger.WriteLine(LOG_IDENT, "Could not get user info!");
} else } else
{ {
smallimagetext = userInfoResponse.DisplayName + $" (@{userInfoResponse.Username})"; //example: john doe (@johndoe) smallImagetext = userInfoResponse.DisplayName + $" (@{userInfoResponse.Username})"; //example: john doe (@johndoe)
App.Logger.WriteLine(LOG_IDENT, $"Got user info as {smallimagetext}"); App.Logger.WriteLine(LOG_IDENT, $"Got user info as {smallImagetext}");
} }
} }