MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / getClient

Function getClient

packages/integration-discord/src/utils/rest.ts:4–6  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

2import { REST } from 'discord.js';
3
4export async function getClient(token: string) {
5 return new REST({ version: restApiVersion }).setToken(token);
6}

Callers 2

processNewThreadFunction · 0.90
processNewMessageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected