Classes
Methods
# static formatPublicURL(id) → {string}
Formats public URL (for client)
Parameters:
| Name | Type | Description |
|---|---|---|
id |
SnowflakeString
|
string
# async static fromDatabase(data, ctx)
Parameters:
| Name | Type | Description |
|---|---|---|
data |
DBFile
|
DBFileFull
|
|
ctx |
RequestContext
|
# async static load(id, ctx) → {Promise.<User>}
Parameters:
| Name | Type | Description |
|---|---|---|
id |
SnowflakeResolvable
|
|
ctx |
RequestContext
|
Promise.<User>
# async static newFile(param0) → {Promise.<File>}
Parameters:
| Name | Type | Description |
|---|---|---|
param0 |
object
|
file data |
file
Promise.<File>
# static search(ctx, options) → {Promise.<Collection.<SnowflakeString, File>>}
Searches files
Parameters:
| Name | Type | Description |
|---|---|---|
ctx |
RequestContext
|
|
options |
any
|
Promise.<Collection.<SnowflakeString, File>>
# static searchCount(ctx, options) → {Promise.<number>}
Returns the number of files that match the search
Parameters:
| Name | Type | Description |
|---|---|---|
ctx |
RequestContext
|
|
options |
any
|
Promise.<number>