Have control over when to upload your assets on ROBLOX.
  • TypeScript 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2021-08-03 21:17:08 +01:00
lib Minor type change 2021-08-03 21:17:08 +01:00
src Minor type change 2021-08-03 21:17:08 +01:00
test Cleanup 2021-06-09 23:12:07 +01:00
.gitignore Redirect asset upload to audio upload 2021-06-26 16:59:04 +01:00
LICENSE Initial commit 2021-04-02 12:26:33 +01:00
package-lock.json Redirect asset upload to audio upload 2021-06-26 16:59:04 +01:00
package.json Minor type change 2021-08-03 21:17:08 +01:00
README.md Forgot the comma 2021-06-09 23:13:17 +01:00
tsconfig.json Initial Commit 2021-04-02 15:27:41 +01:00

RAssets

A simple Typescript wrapper to upload assets. See test/index.ts for examples.

getCSRF

This function allows you to get the CSRF token for a specific cookie.

await RAssets.getCSRF("cookie")

getRequestVerificationToken

This function allows you to get the __RequestVerificationToken for a specific cookie

await RAssets.getRequestVerificationToken("cookie")

uploadAudio

This function allows you to upload an audio

const uploadAudio = await RAssets.uploadAudio(cookie, {
    name: "test",
    file: testAudio.toString("base64"),
    paymentSource: "User"
})

upload

This function allows you to upload any asset (working) using the "hidden" api endpoint - http://data.roblox.com/Data/Upload.ashx. If you specify an assetid that you own, you may even overwrite that asset

const uploadAsset = await RAssets.upload(cookie, {
    file: testModel,
    assetType: "Model",
    name: "test",
    description: "test",
    ispublic: true,
    allowcomments: true
})