Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Linen-dev/linen.dev
/ getToken
Function
getToken
packages/integration-discord/src/utils/token.ts:18–26 ·
view source on GitHub ↗
(bot: number)
Source
from the content-addressed store, hash-verified
16
};
17
18
export
const
getToken = (bot: number) => {
19
switch (bot) {
20
case 2:
21
return
env.DISCORD_TOKEN_2;
22
case 1:
23
default:
24
return
env.DISCORD_TOKEN;
25
}
26
};
Callers
2
initializeBot
Function · 0.90
getTokenByIntegration
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected