-- Compiled with @isentinel/roblox-ts v4.0.11 local TS = _G[script] local _main = TS.import(script, TS.getModule(script, "@lisachandra", "core").utils.main) local catcher = _main.catcher local waitForDocument = _main.waitForDocument local formatTable = TS.import(script, TS.getModule(script, "@lisachandra", "core").utils.string).formatTable local _centurion = TS.import(script, TS.getModule(script, "@rbxts", "centurion").out) local CenturionType = _centurion.CenturionType local Command = _centurion.Command local Guard = _centurion.Guard local Register = _centurion.Register local Players = TS.import(script, TS.getModule(script, "@rbxts", "services")).Players local adminOrDeveloper = TS.import(script, script.Parent.Parent, "guards").adminOrDeveloper local DocumentCommand do DocumentCommand = setmetatable({}, { __tostring = function() return "DocumentCommand" end, }) DocumentCommand.__index = DocumentCommand function DocumentCommand.new(...) local self = setmetatable({}, DocumentCommand) return self:constructor(...) or self end function DocumentCommand:constructor() end function DocumentCommand:document(context, userId) local _exp = waitForDocument(userId) local _arg0 = TS.async(function(document) local data = document:get_data() context:reply(formatTable(data, "Long")) local player = Players:GetPlayerByUserId(userId) if player ~= nil then player:Kick("Kicked by admin.") else task.defer(function() document:unload() end) end end) _exp:andThen(_arg0):catch(catcher()) end local _decorator = Command({ arguments = { { type = CenturionType.Number, description = "The user id of the player.", name = "user", } }, description = "Get document information for a player.", name = "document", }) local _descriptor = Guard(adminOrDeveloper)(DocumentCommand, "document", { value = DocumentCommand.document, }) if _descriptor then DocumentCommand.document = _descriptor.value end local _descriptor_1 = _decorator(DocumentCommand, "document", { value = DocumentCommand.document, }) if _descriptor_1 then DocumentCommand.document = _descriptor_1.value end DocumentCommand = Register()(DocumentCommand) or DocumentCommand end return { DocumentCommand = DocumentCommand, }