Skip to main content
Module

x/replcraft/mod.ts>Transaction

A library to control special structures on the ReplCraft Minecraft server
Latest
class Transaction
implements TransactionOptions
import { Transaction } from "https://deno.land/x/replcraft@v1.1.0/mod.ts";

Constructors

new
Transaction(client: Client, unnamed 1: TransactionOptions)

Properties

private
readonly
client: Client
readonly
amount: number
readonly
nonce: number
readonly
player: Player
readonly
query: string
replied: boolean

Methods

private
respond(status: boolean): Promise<void>

Respond to the transaction request.

accept(): Promise<void>

Accept the transaction request.

deny(): Promise<void>

Deny the transaction request.

tell(message: string): Promise<void>

Tell the player a message privately.