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 916e146 commit f050a8bCopy full SHA for f050a8b
src/harmonix.ts
@@ -32,6 +32,16 @@ export const createHarmonix = async (
32
resolveHarmonixEvent(evt, harmonix.options)
33
)
34
35
+ if (!process.env.HARMONIX_CLIENT_TOKEN) {
36
+ throw new Error(
37
+ 'Client token is required. Please provide it in the environment variable HARMONIX_CLIENT_TOKEN.'
38
+ )
39
+ }
40
+ if (!harmonix.options.clientId && !process.env.HARMONIX_CLIENT_ID) {
41
42
+ 'Client ID is required. You can provide it in the configuration file or in the environment variable HARMONIX_CLIENT_ID.'
43
44
45
harmonix.client = initCient(harmonix.options)
46
registerCommands(
47
harmonix,
0 commit comments