Skip to content

Libraries

Named script source that scripts require, shared between plugins.

Get it with Api.libraries().

get(name: string, language: string): string
add(name: string, language: string, source: string): void

For a language like “lua” or “js”. Good till the thread’s next call into Wraith.

Fails with LibraryError.

Until the plugin goes. The same name and language replaces it.

Fails with LibraryError.

Names are letters, digits, _, - and ., up to 64.

What can go wrong, besides Cancelled, Unsupported and Gone.

Code Error
1 InvalidName
2 NotFound
3 NoSource There is one, but not for that language
4 Taken Someone else has one by that name and language
5 TooBig
6 Failed

Made with ♥ by Asgard