new EmoteParser(fetcher, optionsopt)
- Description:
A parser to replace text with emotes.
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fetcher |
EmoteFetcher | The fetcher to use the cache of. |
||||||||||||||||||||||
options |
object |
<optional> |
{}
|
Options for the parser. Properties
|
Members
fetcher :EmoteFetcher
- Description:
The emote fetcher being used.
- Source:
The emote fetcher being used.
Type:
options :object
- Description:
The parser options.
- Source:
The parser options.
Type:
- object
Methods
parse(text, size) → {string}
- Description:
Parses text.
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
text |
string | Text to parse. |
|
size |
number |
0
|
Size for emotes. |
Returns:
- Type
- string