@tagscript/plugin-discord • Docs
Class: UserTransformer
Transformer for Discord User.
Properties:
Remarks
You need to use StrictVarsParser
parser to use this transformer.
Example
Extends
Constructors
new UserTransformer()
new UserTransformer(base
, safeValues
): UserTransformer
Parameters
• base: User
• safeValues: SafeValues
<User
> = {}
Returns
Inherited from
Defined in
tagscript-plugin-discord/src/lib/Transformer/Base.ts:26
Properties
base
protected
base: User
Inherited from
Defined in
tagscript-plugin-discord/src/lib/Transformer/Base.ts:22
safeValues
protected
safeValues: SafeValues
<User
> = {}
Inherited from
Defined in
tagscript-plugin-discord/src/lib/Transformer/Base.ts:24
Methods
toJSON()
toJSON(): SafeValues
<User
>
Returns
Inherited from
Defined in
tagscript-plugin-discord/src/lib/Transformer/Base.ts:44
transform()
transform(tag
): null
| string
Transforms the given tag.
Parameters
• tag: Lexer
The tag that triggered the transformer.
Returns
null
| string
Inherited from
Defined in
tagscript-plugin-discord/src/lib/Transformer/Base.ts:36
updateSafeValues()
protected
updateSafeValues(): void
Returns
void
Overrides
BaseTransformer
.updateSafeValues