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

x/denocordts/deps.ts>Collection#get

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

Identical to Map.get(). Gets an element with the specified key, and returns its value, or undefined if the element does not exist.

Parameters

key: K
  • The key to get from this collection

Returns

V | undefined