Tagscript

@tagscript/plugin-discord


Class: DateFormatParser

Defined in: tagscript-plugin-discord/src/lib/Parsers/Format.ts:3

Extends

  • BaseParser

Implements

  • IParser

Constructors

new DateFormatParser()

new DateFormatParser(): DateFormatParser

Defined in: tagscript-plugin-discord/src/lib/Parsers/Format.ts:4

Returns

DateFormatParser

Overrides

BaseParser.constructor

Properties

acceptedNames

protected acceptedNames: string[]

Defined in: tagscript/dist/index.d.ts:381

Inherited from

BaseParser.acceptedNames


requiredParameter

protected requiredParameter: boolean

Defined in: tagscript/dist/index.d.ts:382

Inherited from

BaseParser.requiredParameter


requiredPayload

protected requiredPayload: boolean

Defined in: tagscript/dist/index.d.ts:383

Inherited from

BaseParser.requiredPayload

Methods

parse()

parse(ctx): null | string

Defined in: tagscript-plugin-discord/src/lib/Parsers/Format.ts:8

Parses the given tag.

Parameters

ctx

Context

The context of the tag.

Returns

null | string

Implementation of

IParser.parse


toJSON()

toJSON(): object

Defined in: tagscript/dist/index.d.ts:386

Returns

object

acceptedNames

acceptedNames: string[]

requiredParameter

requiredParameter: boolean

requiredPayload

requiredPayload: boolean

Inherited from

BaseParser.toJSON


willAccept()

willAccept(ctx): boolean

Defined in: tagscript/dist/index.d.ts:385

Parameters

ctx

Context

Returns

boolean

Implementation of

IParser.willAccept

Inherited from

BaseParser.willAccept