Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
2
import
{ REST } from
'discord.js'
;
3
4
export
async
function
getClient(token: string) {
5
return
new
REST({ version: restApiVersion }).setToken(token);
6
}
Callers
2
processNewThread
Function · 0.90
processNewMessage
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected