Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/aether/deps.ts>Bson.Code

A Deno library to interface with the Discord API
Latest
class Bson.Code
Re-export
import { Bson } from "https://deno.land/x/aether@v0.0.3/deps.ts";
const { Code } = Bson;

A class representation of the BSON Code type.

Constructors

new
Code(code: string | Function, scope?: Document)

Properties

_bsontype: string
code: string | Function
optional
scope: Document

Methods

deprecated
toExtendedJSON(): CodeExtended
toJSON(): { code: string | Function; scope?: Document; }

Static Methods

deprecated
fromExtendedJSON(doc: CodeExtended): Code