We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bb4693 commit f329d3cCopy full SHA for f329d3c
src/discord.ts
@@ -6,7 +6,7 @@ import { toJSON } from './commands'
6
export const initCient = (harmonyOptions: Harmony['options']) => {
7
const client = new Client({ intents: harmonyOptions.intents })
8
9
- client.login(process.env.HARMONY_TOKEN)
+ client.login(process.env.HARMONY_CLIENT_TOKEN)
10
11
return client
12
}
@@ -36,7 +36,8 @@ export const registerSlashCommands = async (
36
harmony: Harmony,
37
commands: HarmonyCommand<true>[]
38
) => {
39
- const rest = new REST().setToken(process.env.HARMONY_TOKEN || '')
+ if (commands.length === 0) return
40
+ const rest = new REST().setToken(process.env.HARMONY_CLIENT_TOKEN || '')
41
42
await rest.put(
43
Routes.applicationCommands(
0 commit comments