Skip to content

Secret

Implementation of a basic secret object in Luau, primarily used to store bot tokens so that they can’t be accidentally leaked into the console through a print

local a
a = secret.new("SOMETHING_SECRET")
print(a) --> "Secret(SOMETHIN--------)"
a = secret.new(12222)
print(a) --> "Secret(number)"

Properties

The Secret instance has no set properties!

Methods

The Secret instance has no set methods!

Functions

new

Secret . new (

     value: T
)  -> ()

Creates a new Secret