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

x/denocordts/deps.ts>Collection#randomKey

An Object Oriented Discord API wrapper for Deno.
Latest
method Collection.prototype.randomKey
import { Collection } from "https://deno.land/x/denocordts@1.2.0/deps.ts";

Obtains unique random key(s) from this collection. This relies on Collection#keyArray, and thus the caching mechanism applies here as well.

Returns

K

A single key if no amount is provided or an array

Parameters

amount: number