Skip to main content
Module

x/coward/deps.ts

🐔 Coward is a Deno module for easy interaction with the Discord API.
Latest
import * as coward from "https://deno.land/x/coward@v0.3.2/deps.ts";

Functions

Set background color using 24bit rgb. color can be a number in range 0x000000 to 0xffffff or an Rgb.

Set background color using paletted 8bit colors. https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit

Connect to given websocket endpoint url. Endpoint must be acceptable for URL.

Creates a Promise with the reject and resolve functions placed as methods on the promise object itself. It allows you to do:

Set text color using 24bit rgb. color can be a number in range 0x000000 to 0xffffff or an Rgb.

Set text color using paletted 8bit colors. https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit

Takes a list of classes or object literals and adds their methods to the class calling it.