Create a collection.
The title of this collection.
Optional
options:
CreateCollectionOptions
Collection creation options.
Get the meta information of a collection.
The ID of the collection.
Delete a file.
The ID of the file.
The deletion token of the file.
The response message. (Success message.)
Upload a file.
The file to upload.
Optional
options:
FileOptions
File options.
Optional
subdomain:
string
Subdomain to upload to.
The uploaded file.
Delete a link.
The ID of the link.
The deletion token of the link.
The response message. (Success message.)
Check if a subdomain exists.
The subdomain to check.
If the subdomain currently exists or not.
Get a list of all subdomains. WARNING: The returned list includes NSFW domain names.
A list of subdomains.
Delete a paste.
The ID of the paste.
The deletion token of the paste.
The response message. (Success message.)
Convert an sxcu file to a useable object.
Path of the file to convert.
The converted object.
Create an error code.
Error message.
Error code.
Extracts the token or id from a url or path.
Url to extract the token from.
The token.
Get the data associated with a snowflake. This will attempt to parse the snowflake even if it is a number. However, numbers are unlikely to return accurate results.
The snowflake to parse.
The snowflake's data.
A wrapper for promisifyRateLimit that uses an endpoint's rate limit as the first argument. Note that if rate limit data for said endpoint isn't available then it will instantly resolve.
Endpoint to promisify the rate limit of.
A wrapper for promisifyRateLimit that uses the global rate limit as the first argument. Note that if the global rate limit isn't available then it will instantly resolve.
Returns a promise that resolves once the rate limit is over. This will return instantly unless the rate limit has been exceeded.
The rate limit to promisify.
Create an API request.
Options for this request.
Attempt to resolve an error from "thing".
Thing to attempt to convert to an error.
Toggle the request queue. The request queue enables all requests to automatically respect rate limits. It's important to note that this only handles rate limit errors, nothing else. The request queue does NOT keep the current process running indefinitely.
If the queue should be enabled or not.
Optional
retryEnabled:
boolean
If true, rate limit errors will automatically be retried. Default is false.
Categorize imports into their respective categories. This does not include types.