Plugins
Plugin Discord
classes
Deleteparser

Class: DeleteParser

@tagscript/plugin-discord.DeleteParser

Delete the triggered message.

See

Devs need to check for this property in Response.actions (opens in a new tab) and if true, delete the message.

Hierarchy

  • BaseParser

    DeleteParser

Implements

  • IParser

Constructors

constructor

new DeleteParser()

Overrides

BaseParser.constructor

Defined in

tagscript-plugin-discord/src/lib/Parsers/Delete.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

NameType
ctxContext

Returns

string

Implementation of

IParser.parse

Defined in

tagscript-plugin-discord/src/lib/Parsers/Delete.ts:13


willAccept

willAccept(ctx): boolean

Parameters

NameType
ctxContext

Returns

boolean

Implementation of

IParser.willAccept

Inherited from

BaseParser.willAccept

Defined in

tagscript/dist/index.d.ts:384