Class: FilesParser
@tagscript/plugin-discord.FilesParser
This parser allows sending files along with message using file url.
Hierarchy
-
BaseParser
↳
FilesParser
Implements
IParser
Constructors
constructor
• new FilesParser()
Overrides
BaseParser.constructor
Defined in
tagscript-plugin-discord/src/lib/Parsers/Files.ts:7
Properties
acceptedNames
• Protected
acceptedNames: string
[]
Inherited from
BaseParser.acceptedNames
Defined in
tagscript/dist/index.d.ts:380
requiredParameter
• Protected
requiredParameter: boolean
Inherited from
BaseParser.requiredParameter
Defined in
tagscript/dist/index.d.ts:381
requiredPayload
• Protected
requiredPayload: boolean
Inherited from
BaseParser.requiredPayload
Defined in
tagscript/dist/index.d.ts:382
Methods
parse
▸ parse(ctx
): string
Parameters
Name | Type |
---|---|
ctx | Context |
Returns
string
Implementation of
IParser.parse
Defined in
tagscript-plugin-discord/src/lib/Parsers/Files.ts:11
willAccept
▸ willAccept(ctx
): boolean
Parameters
Name | Type |
---|---|
ctx | Context |
Returns
boolean
Implementation of
IParser.willAccept
Inherited from
BaseParser.willAccept
Defined in
tagscript/dist/index.d.ts:384