-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
running with a typescript application
"typescript": "^4.6.2"
import TwitchApi from 'node-twitch';
const twitch = new TwitchApi({
client_id: environment.TWITCH_AUTH.client_id,
client_secret: environment.TWITCH_AUTH.client_secret,
});
const user = await twitch.getUsers([name]);I get this error when the method gets called
file:///F:/bot/src/commands/utility/twitch.command.ts:25
const twitch = new TwitchApi({
^
TypeError: TwitchApi is not a constructor
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels