Class: SilentParser
@tagscript/plugin-discord.SilentParser
Silence the used command outputs.
See
Devs need to check for this property in Response.actions (opens in a new tab) and if true, don't output of the command used.
Hierarchy
-
BaseParser↳
SilentParser
Implements
IParser
Constructors
constructor
• new 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: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/Silent.ts:13
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