Service · inherits Instance
ModerationService
Server-side service for submitting player captures to content moderation review and receiving the results asynchronously.
About ModerationService
ModerationService lets server-side experience code submit user-generated
captures (screenshots taken with CaptureService.CaptureScreenshot
and videos recorded with CaptureService.StartVideoCaptureAsync) to
Roblox's content moderation pipeline and receive the review results
asynchronously.
Methods 3
BindReviewableContentEventProcessor
(priority: int, callback: Function) → RBXScriptConnectionRegisters a server-side processor, ordered bypriority, that is invoked for each moderation review event on reviewable content.Binds a callback that the server invokes for each moderation review event produced for content registered through
CreateReviewableContentAsync().Once at least one processor is bound, review events are delivered to the bound processors in
priorityorder. Thecallbackfunction receives a single table with the following fields:Id— The reviewable-content ID the event refers to.State— The review state (ReviewableContentState).Ref— The optional caller-supplied reference string passed toCreateReviewableContentAsync(), present only when one was supplied.ModerationResult— Present when a moderation result is available, a table with aCategory(ModerationResultCategory) and, when a violation is detected, aLabelsarray ofModerationResultLabelvalues.
Processors run as a chain: if a processor returns
true, the event is acknowledged, deleted from the backend, and removed from the pending set, and no further processors run for that event. If it returnsfalse(or does not return a boolean), the next processor runs; if no processor returnstrue, the event is left unacknowledged and redelivered on a later poll.CreateReviewableContentAsync
(config: Dictionary) → stringYieldsRegisters user-generated captures for moderation review and triggers the owning clients to upload them, returning the reviewable-content ID.Registers one or more captures as a single unit of reviewable content and starts its moderation review. This is a yielding function that must be called on the server and is restricted to allow-listed universes; calling it from a universe that is not permitted to use this API raises an error.
The
configtable accepts:Id— An optional caller-chosen ID for the reviewable content. Supplying an ID that already exists raises an error.Ref— An optional reference string echoed back on the events delivered to processors bound withBindReviewableContentEventProcessor().Content— A list of items (currently limited to one), each containing either anImageor aVideotable with aUserId(the owning player) and aContentKeyobtained fromCreateReviewableContentKey().
The method registers the content with the backend and returns the reviewable content ID. Review results are later delivered to bound processors as the moderation review completes.
CreateReviewableContentKey
(content: Content) → stringReturns an opaque key that identifies a screenshot or video capture for use withCreateReviewableContentAsync().Produces an opaque key that describes a single capture so it can be submitted to
CreateReviewableContentAsync().The
contentmust reference a supported capture (a temporary content URI produced byCaptureService.CaptureScreenshot, aScreenshotCaptureobject, or aVideoCaptureobject). Any other content raises an error.
ModerationService also has every member of Instance. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.