-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
71 lines (60 loc) · 1.46 KB
/
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
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
declare module "eris" {
interface Client {
userCount: number;
}
interface Member {
hoistColor: string;
tag: string;
}
interface User {
tag: string;
}
interface Message {
guild: Guild;
}
interface Role {
higherThan(role: Role): boolean;
isHighest: boolean;
}
interface EmbedAuthor {
name?: string;
icon_url?: string;
url?: string;
}
interface EmbedAsset {
url?: string;
}
interface EmbedFooter {
text?: string;
icon_url?: string;
}
class MessageEmbed {
setAuthor(name: string, iconUrl?: string, url?: string): this;
setColor(color: string | number | string[]): this;
setTitle(title: string): this;
setURL(url: string): this;
setDescription(description: string): this;
setThumbnail(url: string): this;
setImage(url: string): this;
setTimestamp(time?: string | number | Date): this;
setFooter(text: string, iconUrl?: string): this;
addField(name: string | number, value: string | number | string[], inline?: boolean): this;
clearFields(): this;
author?: EmbedAuthor;
color?: string;
title?: string;
url?: string;
description?: string;
thumbnail?: EmbedAsset;
image?: EmbedAsset;
timestamp?: Date | string;
footer?: EmbedFooter;
}
}
declare function erisify(Eris: typeof import("eris"), options?: {
logging?: boolean;
preventErrors?: boolean;
enabled?: string[];
disabled?: string[];
}): void;
export = erisify;