Class: MemberTransformer
Defined in: tagscript-plugin-discord/src/lib/Transformer/GuildMember.ts:47
Transformer for Discord GuildMember.
Properties:
Remarks
You need to use StrictVarsParser
parser to use this transformer.
Example
Extends
BaseTransformer
<GuildMember
>
Constructors
new MemberTransformer()
new MemberTransformer(base
, safeValues
): MemberTransformer
Defined in: tagscript-plugin-discord/src/lib/Transformer/Base.ts:26
Parameters
base
GuildMember
safeValues
SafeValues
<GuildMember
> = {}
Returns
Inherited from
Properties
base
protected
base: GuildMember
Defined in: tagscript-plugin-discord/src/lib/Transformer/Base.ts:22
Inherited from
safeValues
protected
safeValues: SafeValues
<GuildMember
> = {}
Defined in: tagscript-plugin-discord/src/lib/Transformer/Base.ts:24
Inherited from
Methods
toJSON()
toJSON(): SafeValues
<GuildMember
>
Defined in: tagscript-plugin-discord/src/lib/Transformer/Base.ts:44
Returns
SafeValues
<GuildMember
>
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/GuildMember.ts:48
Returns
void