-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.d.ts
52 lines (48 loc) · 1.1 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
import { Component, ReactElement } from 'react'
export interface DiscordEmbed {
embed: {
title?: string;
url?: string;
description?: string;
timestamp?: string;
color?: number;
footer?: {
text?: string;
icon_url?: string;
proxy_icon_url?: unknown;
};
image?: {
url?: string;
proxy_url?: unknown;
width?: unknown;
height?: unknown;
};
thumbnail?: {
url?: string;
proxy_url?: unknown;
width?: unknown;
height?: unknown;
};
author?: {
name: string;
url?: string;
icon_url?: string;
proxy_icon_url?: unknown;
};
fields?: {
name: string;
value: string;
inline?: boolean;
}[];
provider?: unknown;
video?: unknown;
type?: unknown;
}
}
export interface EmbedVisualizerProps {
embed: DiscordEmbed;
onError?: (error: string) => void;
}
export declare class EmbedVisualizer extends Component<EmbedVisualizerProps> {}
export declare function parseTitle(input: string): ReactElement;
export declare function parseContent(input: string): ReactElement;