-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
35 lines (35 loc) · 996 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import EventEmitter from "events";
import sendOwO from "./Classes/sendOwo";
declare class OwOpay extends EventEmitter {
constructor(client: any);
client: any;
on(event: "error", listener: (data: string) => void): this;
on(event: "debug", listener: (data: string) => void): this;
on(event: "moduleLoaded", listener: (data: string) => void): this;
on(event: "sendOwO", listener: (data: sendOwO) => void): this;
/**
* Required Action
*/
loadModule(): Promise<void>;
/**
* Gets language value from language.json
*/
getLanguage(args: string): void;
/**
* Adds cash to cash.json
*/
addCash(user: string, number: number): Promise<boolean>;
/**
* Removes cash to cash.json
*/
removeCash(user: string, number: number): Promise<boolean>;
/**
* Sets cash to cash.json
*/
setCash(user: string, number: number): Promise<boolean>;
/**
* Gets cash to cash.json
*/
getCash(user: string, number: number): Promise<number>;
}
export = OwOpay;