요약
메서드
GetUserInfosByUserIdsAsync(userIds: {any}):{any} |
GetUserFromGlobalUserIdAsync(userId: number):User |
상속된 멤버
API 참조
메서드
GetUserInfosByUserIdsAsync
매개 변수
반환
코드 샘플
UserService:GetUserInfosByUserIdsAsync 예제
local UserService = game:GetService("UserService")
local success, result = pcall(function()
return UserService:GetUserInfosByUserIdsAsync({ 156, 1, 735878936 })
end)
if success then
for _, userInfo in ipairs(result) do
print("아이디:", userInfo.Id)
print("사용자 이름:", userInfo.Username)
print("표시 이름:", userInfo.DisplayName)
end
else
-- 오류가 발생했습니다
end