Methods
.clear() → Promise<void>
Remove all key/value pairs from storage for this Guild
.exists(key: string) → Promise<boolean>
Check if a value exists in storage for this Guild
Parameters:
Name | Type | Description |
---|---|---|
key |
|
The key in storage to check |
.get(key: string) → Promise<any>
Get a value from storage for this Guild
Parameters:
Name | Type | Description |
---|---|---|
key |
|
The key in storage to get |
.init() → Promise<void>
.keys() → Promise<string[]>
Get the names of all keys in this storage for this Guild
.remove(key: string) → Promise<void>
Remove a value from storage for this Guild
Parameters:
Name | Type | Description |
---|---|---|
key |
|
The key in storage to remove |
.set(key: string, value: any) → Promise<void>
Set a value in storage for this Guild
Parameters:
Name | Type | Description |
---|---|---|
key |
|
The key in storage to set |
value |
|
The value to set |