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