UNPKG

@nicat.dcw/discord-roles

Version:

🧃 Light Weight Discord Linked Roles Module with Discord API Interaction

11 lines (9 loc) • 273 B
const store = new Map(); module.exports = async (userId, tokens) => { await store.set(`discord-${userId}`, tokens); } //async function storeDiscordTokens(userId, tokens) { //} async function getDiscordTokens(userId) { return store.get(`discord-${userId}`); }