Class: GuildTransformer
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
Parameters
base
Guild
safeValues
SafeValues
<Guild
> = {}
Returns
Inherited from
Defined in
tagscript-plugin-discord/src/lib/Transformer/Base.ts:26
Properties
base
protected
base: Guild
Inherited from
Defined in
tagscript-plugin-discord/src/lib/Transformer/Base.ts:22
safeValues
protected
safeValues: SafeValues
<Guild
> = {}
Inherited from
Defined in
tagscript-plugin-discord/src/lib/Transformer/Base.ts:24
Methods
toJSON()
toJSON(): SafeValues
<Guild
>
Returns
SafeValues
<Guild
>
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