SoulFire TypeScript SDK 2.10.3
    Preparing search index...

    Type Alias BotContainerButtonClickRequest

    BotContainerButtonClickRequest: Message<
        "soulfire.v1.BotContainerButtonClickRequest",
    > & { botId: string; buttonId: number; instanceId: string }

    Request to click a container-specific action button. Used for stonecutter recipes, enchantment selection, villager trades, beacon effects, etc.

    Type Declaration

    • botId: string

      The profile UUID of the bot clicking the button.

      from field: string bot_id = 2;

    • buttonId: number

      The button ID to click. Valid values depend on container type:

      • Stonecutter: 0-99 (recipe index)
      • Enchanting table: 0-2 (enchantment slot)
      • Loom: 0-99 (pattern index)
      • Villager: 0 to (offer count - 1)
      • Beacon: mob effect registry ID, -1 for confirm
      • Crafter: 0-8 (slot toggle index)
      • Lectern: 1=prev page, 2=next page, 3=take book

      from field: int32 button_id = 3;

    • instanceId: string

      The UUID of the SoulFire instance containing the bot.

      from field: string instance_id = 1;

    from message soulfire.v1.BotContainerButtonClickRequest