remove other thing

This commit is contained in:
axell 2024-07-06 14:21:06 +02:00 committed by GitHub
parent 95e58d25c9
commit aac398ef4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -250,12 +250,12 @@ namespace Bloxstrap.Integrations
} }
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}");
if (userInfoResponse is null || !userInfoResponse.Data.Any()) if (userInfoResponse is null || !userInfoResponse.Any())
{ {
App.Logger.WriteLine(LOG_IDENT, "Could not get user info!"); App.Logger.WriteLine(LOG_IDENT, "Could not get user info!");
} else { } else {
App.Logger.WriteLine(LOG_IDENT, "testpoint1"); App.Logger.WriteLine(LOG_IDENT, "testpoint1");
smallimagetext = userInfoResponse.Data.ToArray()[0].DisplayName + $"(@{userInfoResponse.Data.ToArray()[0].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}");
} }
App.Logger.WriteLine(LOG_IDENT, "testpoint2"); App.Logger.WriteLine(LOG_IDENT, "testpoint2");