This repository has been archived by the owner on Jun 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathd.ts
77 lines (76 loc) · 2.58 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
interface Config {
/** Bot token */
token: string;
/** Bot client secret */
clientsecret: string;
/** Guild to stalk */
guild: string;
/** Staff guild */
staffguild: string;
/** Twitter API */
twitter: {
consumer_key: string,
consumer_secret: string,
access_token_key: string,
access_token_secret: string,
/** Channel to post to */
channel: string,
/** Users to watch */
users: number[]
};
colors: {
green: string,
red: string,
yellow: string
};
/** Channel for QOTW submissions to be approved in */
QOTWsubmissions: string;
/** Channel for passed QOTW submissions to be posted */
QOTW: string;
/**
* Feedback channel
* @deprecated
*/
feedbackchannel: string;
/** Channels to send feedback into */
feedbackchannels: {
[x: string]: string[]
};
/** Channel for voting */
voteschannel: string;
/** Channel for passed proposals */
passedproposalschannel: string;
/** Channel for failed proposals */
failedproposalschannel: string;
/** Status identifiers */
statuses: {
[x: string]: string[]
};
/** Level identifiers */
levels: {
[x: string]: string
};
}
declare module "humanize-duration" {
function humanize(miliseconds: number, options?: {
/** Language for unit display (accepts an ISO 639-1 code from one of the supported languages). */
language?: string,
/** String to display between the previous unit and the next value. */
delimiter?: string,
/** String to display between each value and unit. */
spacer?: string,
/** Number representing the maximum number of units to display for the duration. */
largest?: number,
/** Array of strings to define which units are used to display the duration (if needed). Can be one, or a combination of any, of the following: `['y', 'mo', 'w', 'd', 'h', 'm', 's', 'ms']` */
units?: string[],
/** Boolean value. Use true to round the smallest unit displayed (can be combined with `largest` and `units`). */
round?: boolean
/** String to substitute for the decimal point in a decimal fraction. */
decimal?: string,
/** String to include before the final unit. You can also set `serialComma` to `false` to eliminate the final comma. */
conjunction?: string,
/** Customize the value used to calculate each unit of time. */
unitMeasures?: { [x: string]: string }
}): string;
export = humanize;
}