spookvooper-api/typings/modules/User.d.ts

24 lines
897 B
TypeScript
Raw Normal View History

2020-12-22 05:29:13 +00:00
import { CreditAmount, PaymentEntity } from './types/Types'
2020-12-08 20:50:31 +00:00
import { ConfigUser } from './interfaces/Interfaces'
declare class User {
2020-12-14 00:33:21 +00:00
private readonly accountid
private readonly authkey
constructor (config: ConfigUser);
getUser (): Promise<any>;
getUsername (): Promise<any>;
getBalance (): Promise<any>;
hasDiscordRole (role: string): Promise<any>;
getDiscordRoles (): Promise<any>;
sendCredits (amount: CreditAmount, to: PaymentEntity, reason: string): Promise<any>;
2020-12-22 05:29:13 +00:00
getStockOffers (ticker: string): Promise<any>;
buyStock (ticker: string, amount: number, price: CreditAmount): Promise<any>;
sellStock (ticker: string, amount: number, price: CreditAmount): Promise<any>;
2020-12-14 00:33:21 +00:00
cancelOffer (orderid: number): Promise<any>;
2020-12-08 20:50:31 +00:00
get apikey (): string;
set apikey (apikey: string);
get svid (): string;
set svid (svid: string);
2020-12-22 05:29:13 +00:00
hasFossPp (): boolean;
2020-12-08 20:50:31 +00:00
}
export default User