Tagscript

Class: SilentParser

Silence the used command outputs.

See

Devs need to check for this property in Response.actions and if true, don't output of the command used.

Extends

  • BaseParser

Implements

  • IParser

Constructors

new SilentParser()

new SilentParser(): SilentParser

Returns

SilentParser

Overrides

BaseParser.constructor

Defined in

tagscript-plugin-discord/src/lib/Parsers/Silent.ts:9

Properties

acceptedNames

protected acceptedNames: string[]

Inherited from

BaseParser.acceptedNames

Defined in

tagscript/dist/index.d.ts:381


requiredParameter

protected requiredParameter: boolean

Inherited from

BaseParser.requiredParameter

Defined in

tagscript/dist/index.d.ts:382


requiredPayload

protected requiredPayload: boolean

Inherited from

BaseParser.requiredPayload

Defined in

tagscript/dist/index.d.ts:383

Methods

parse()

parse(ctx): string

Parses the given tag.

Parameters

ctx: Context

The context of the tag.

Returns

string

Implementation of

IParser.parse

Defined in

tagscript-plugin-discord/src/lib/Parsers/Silent.ts:13


toJSON()

toJSON(): object

Returns

object

acceptedNames

acceptedNames: string[]

requiredParameter

requiredParameter: boolean

requiredPayload

requiredPayload: boolean

Inherited from

BaseParser.toJSON

Defined in

tagscript/dist/index.d.ts:386


willAccept()

willAccept(ctx): boolean

Parameters

ctx: Context

Returns

boolean

Implementation of

IParser.willAccept

Inherited from

BaseParser.willAccept

Defined in

tagscript/dist/index.d.ts:385

On this page