UNPKG

db-discord

Version:

db-discord is a library that uses discord guilds and text channels as databases. db-discord relies on discord.js

12 lines (11 loc) 488 B
import { Table, SearchArguments } from "./Table"; import { TableType } from "./db-discord"; import { KeyPairValue } from "./utilities"; export declare class ShortTable<T> extends Table<T> { type: TableType; write(obj: T): Promise<string>; writeExpectSearch(obj: T): Promise<string>; get(id: string): Promise<T>; search(searchArguments: SearchArguments<T>): Promise<KeyPairValue<string, T>[]>; update(id: string, _obj: ((o: T) => T) | T): Promise<{}>; }