Skip to main content

BotCommandMetadata

amiudmodz


amiudmodz / proto / BotCommandMetadata

Class: BotCommandMetadata

Defined in: WAProto/index.d.ts:1134

Implements

Constructors

new BotCommandMetadata()

new BotCommandMetadata(p?): BotCommandMetadata

Defined in: WAProto/index.d.ts:1135

Parameters

p?

IBotCommandMetadata

Returns

BotCommandMetadata

Properties

commandDescription?

optional commandDescription: null | string

Defined in: WAProto/index.d.ts:1137

Implementation of

IBotCommandMetadata.commandDescription


commandName?

optional commandName: null | string

Defined in: WAProto/index.d.ts:1136

Implementation of

IBotCommandMetadata.commandName


commandPrompt?

optional commandPrompt: null | string

Defined in: WAProto/index.d.ts:1138

Implementation of

IBotCommandMetadata.commandPrompt

Methods

toJSON()

toJSON(): object

Defined in: WAProto/index.d.ts:1144

Returns

object


create()

static create(properties?): BotCommandMetadata

Defined in: WAProto/index.d.ts:1139

Parameters

properties?

IBotCommandMetadata

Returns

BotCommandMetadata


decode()

static decode(r, l?): BotCommandMetadata

Defined in: WAProto/index.d.ts:1141

Parameters

r

Uint8Array<ArrayBufferLike> | Reader

l?

number

Returns

BotCommandMetadata


encode()

static encode(m, w?): Writer

Defined in: WAProto/index.d.ts:1140

Parameters

m

IBotCommandMetadata

w?

Writer

Returns

Writer


fromObject()

static fromObject(d): BotCommandMetadata

Defined in: WAProto/index.d.ts:1142

Parameters

d

Returns

BotCommandMetadata


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

Defined in: WAProto/index.d.ts:1145

Parameters

typeUrlPrefix?

string

Returns

string


toObject()

static toObject(m, o?): object

Defined in: WAProto/index.d.ts:1143

Parameters

m

BotCommandMetadata

o?

IConversionOptions

Returns

object