Help about roblox ban api

Hi there !

I’d need help about roblox ban api. I want to make a system (admin panel) where there is an history, issue is I want to know what moderator banned who but I can’t get any ways to find the moderator or a variable that does that. Does anyone know how I could do it ?

store the moderator in the private reason as json
e.g:

2 Likes

If you use BanAsync you can get the history of who banned a player in the creator hub:

(this only works if the user was banned via the creator hub btw)
using BanAsync in-experience would simply make it say “Game Script”
image

1 Like

Wow, that’s terrible. Seems like a basic feature roblox should’ve implemented from the start.

1 Like


The issue is, I need it to be inside a GUI

I’ll try doing that, thank you ^^

How would Roblox know which player told the server to call Players:BanAsync, or did a player request it at all? The devs should be taking care of that, although a parameter for “banned by” in the BanAsync wouldn’t hurt imo.

1 Like

You should have the option to supply ModeratorUserId just as you can supply PrivateReason.
It’s a core property and shouldn’t have to use a custom made json table comment to be implemented.

1 Like