Class: GuildTransformer
Defined in: tagscript-plugin-discord/src/lib/Transformer/Guild.ts:54
Transformer for Discord Guild.
Properties:
Example
Remarks
Some properties like emojiCount, stickerCount, bots, humans depends on cache so it might be inaccurate.
You need to use StrictVarsParser parser to use this transformer.
Extends
- BaseTransformer<- Guild>
Constructors
new GuildTransformer()
new GuildTransformer(base, safeValues): GuildTransformer
Defined in: tagscript-plugin-discord/src/lib/Transformer/Base.ts:26
Parameters
base
Guild
safeValues
SafeValues<Guild> = {}
Returns
Inherited from
Properties
base
protected base: Guild
Defined in: tagscript-plugin-discord/src/lib/Transformer/Base.ts:22
Inherited from
safeValues
protected safeValues: SafeValues<Guild> = {}
Defined in: tagscript-plugin-discord/src/lib/Transformer/Base.ts:24
Inherited from
Methods
toJSON()
toJSON(): SafeValues<Guild>
Defined in: tagscript-plugin-discord/src/lib/Transformer/Base.ts:44
Returns
SafeValues<Guild>
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/Guild.ts:55
Returns
void