new EmoteParser(fetcher, optionsopt)
- Source:
A parser to replace text with emotes.
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
- Source:
The emote fetcher being used.
Type:
options :Object
- Source:
The parser options.
Type:
- Object
Methods
parse(text, size) → {string}
- Source:
Parses text.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
text |
string | Text to parse. |
|
size |
number |
0
|
Size for emotes. |
Returns:
- Type
- string