@tagscript/plugin-discord • Docs
Class: DateFormatParser
Extends
BaseParser
Implements
IParser
Constructors
new DateFormatParser()
new DateFormatParser(): DateFormatParser
Returns
Overrides
BaseParser.constructor
Defined in
tagscript-plugin-discord/src/lib/Parsers/Format.ts:4
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
): null
| string
Parses the given tag.
Parameters
• ctx: Context
The context of the tag.
Returns
null
| string
Implementation of
IParser.parse
Defined in
tagscript-plugin-discord/src/lib/Parsers/Format.ts:8
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