Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/denocordts/src/cache/mod.ts>Cache

An Object Oriented Discord API wrapper for Deno.
Latest
class Cache
import { Cache } from "https://deno.land/x/denocordts@1.2.0/src/cache/mod.ts";

Constructors

new
Cache(client: Base)

Properties

channels: Collection<string, Channel>
emojis: Collection<string, Emoji>
guilds: Collection<string, Guild>
members: Collection<string, GuildMember>
roles: Collection<string, Role>
users: Collection<string, User>

Methods

Add a channel to the cache.

addEmojiToCache(emojiId: string, emoji: GuildEmoji)

Add an emoji to the cache.

addGuildToCache(guildId: string, guildPayload: APIGuild)

Add a guild to the cache.

addRoleToCache(roleId: string, role: Role)

Add a role to the cache.

addUserToCache(userId: string, userPayload: Camelize<UserClass>)

Add a User to the cache.

getChannel(channelId: string)
getEmoji(emojiId: string)
getGuild(guildId: string)
getRole(roleId: string)
getUser(userId: string)