Tagscript

DateFormatParser

TagScript


Class: DateFormatParser

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

Extends

  • BaseParser

Implements

  • IParser

Constructors

Constructor

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/manifest-UlUsUErx.d.mts:9

Inherited from

BaseParser.acceptedNames


requiredParameter

protected requiredParameter: boolean

Defined in: tagscript/dist/manifest-UlUsUErx.d.mts:10

Inherited from

BaseParser.requiredParameter


requiredPayload

protected requiredPayload: boolean

Defined in: tagscript/dist/manifest-UlUsUErx.d.mts:11

Inherited from

BaseParser.requiredPayload

Methods

parse()

parse(ctx): string | null

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

Parses the given tag.

Returning null or undefined means this parser did not handle the tag, and the interpreter moves on to the next one that accepted it.

Parameters

ctx

Context

The context of the tag.

Returns

string | null

Implementation of

IParser.parse


toJSON()

toJSON(): object

Defined in: tagscript/dist/manifest-UlUsUErx.d.mts:14

Returns

object

acceptedNames

acceptedNames: string[]

requiredParameter

requiredParameter: boolean

requiredPayload

requiredPayload: boolean

Inherited from

BaseParser.toJSON


willAccept()

willAccept(ctx): boolean

Defined in: tagscript/dist/manifest-UlUsUErx.d.mts:13

Parameters

ctx

Context

Returns

boolean

Implementation of

IParser.willAccept

Inherited from

BaseParser.willAccept

On this page