Skip to content

ContextMenuCommandBuilder

Defined in: sdk/js/src/builders/command.ts:155

A user or message context-menu command.

new ContextMenuCommandBuilder(): ContextMenuCommandBuilder

ContextMenuCommandBuilder

name: string = ''

Defined in: sdk/js/src/builders/command.ts:156

CommandLike.name

setDefaultMemberPermissions(bits): this

Defined in: sdk/js/src/builders/command.ts:174

number | bigint

this


setName(name): this

Defined in: sdk/js/src/builders/command.ts:162

1–32 characters; spaces and capitals allowed.

string

this


setNameLocalizations(map): this

Defined in: sdk/js/src/builders/command.ts:170

Record<string, string>

this


setType(type): this

Defined in: sdk/js/src/builders/command.ts:166

2 | 3

this


toWit(): ApplicationCommand

Defined in: sdk/js/src/builders/command.ts:178

ApplicationCommand

CommandLike.toWit