The client that instantiated this.
The text to search within.
The array of message entities.
Retrieves all blockquote entities from the message.
An array of objects representing blockquote entities.
Retrieves all bold entities from the message.
An array of objects representing bold entities.
Retrieves all bot command entities from the message.
An array of objects representing bot command entities.
Retrieves all cashtag entities from the message.
An array of objects representing cashtag entities.
The client that instantiated this
Retrieves all code entities from the message.
An array of objects representing code entities.
Retrieves all custom emoji entities from the message.
An array of objects representing custom emoji entities.
Retrieves all email entities from the message.
An array of objects representing email entities.
Retrieves all hashtag entities from the message.
An array of objects representing hashtag entities.
Retrieves all italic entities from the message.
An array of objects representing italic entities.
Retrieves all mention entities from the message.
An array of objects representing mention entities.
Retrieves all phone number entities from the message.
An array of objects representing phone number entities.
Retrieves all pre entities from the message.
An array of objects representing pre entities.
Retrieves all spoiler entities from the message.
An array of objects representing spoiler entities.
Retrieves all strikethrough entities from the message.
An array of objects representing strikethrough entities.
Retrieves all text link entities from the message.
An array of objects representing text link entities.
Retrieves all text mention entities from the message.
An array of objects representing text mention entities.
Retrieves all underline entities from the message.
An array of objects representing underline entities.
Retrieves all URL entities from the message.
An array of objects representing URL entities.
Protected
_cloneProtected
_patchProtected
_updateSearches for a specific type of entity in the message.
The type of entity to search for.
An array of objects representing the found entities.
Flatten an object. Any properties that are collections will get converted to an array of keys.
Optional
propsRecursive: booleanOptional. If true, calls toJSON method on nested objects.
Rest
...props: Record<string, string | boolean>[]Optional. Specific properties to include/exclude, or rename.
Flattened object.
Creates an instance of the MessageEntities class.