How can i use game.Players:GetBanHistoryAsync()?

I understand you input a Id and it gives you a instance called ‘banhistorypage’ but how do you use it? :GetChildren doesnt work, its not a table, its a instance and i wanna know how can i access the ban histories, get the reasons and so on

1 Like

The API reference exists for developers who are unsure of how to utilize a Roblox Studio API. Following its related articles highlights all the necessary and relevant details for utilization:

Players:GetBanHistoryAsync

image

BanHistoryPages

image

image

Pages

1 Like

Thank you, i didnt realize it is the same as pages

Every object that is suffixed by “Pages” is a descendant of the Pages class

1 Like

Can i also ask, how many tables is in one :getPages table

The Roblox Studio API often allows developers to set the page size themselves, but Players:GetBanHistoryAsync does not. The API reference for this method states that it utilizes the user restrictions cloud API as its core, so you can make a tentative guess at what the page size might be based on the related API endpoint limits:

image

If you’re developing an inspection tool, using Roblox’s generator approach to processing the content of a Pages object is optimal

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.