addBotToAttachmentsMenu

Add a bot to the attachments menu. USER-ONLY

Parameters

botId: ID

The identifier of the bot to add to the attachments menu.

isWriteAllowed?: boolean

Whether the bot is allowed to write to the user.

Result

void

Syntax

// Required parameters only.
await client.addBotToAttachmentsMenu(botId);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.addBotToAttachmentsMenu(botId, { isWriteAllowed });