Firebot icon indicating copy to clipboard operation
Firebot copied to clipboard

[Bug] Deprecated twurple property

Open iamdadmin opened this issue 3 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

In

backend\twitch-api\resource\channels.js

Line 21: const response = await client.channels.getChannelInfo(broadcasterId);

getChannelInfo is deprecated, fix suggested by twurple as follows

(method) HelixChannelApi.getChannelInfo(user: UserIdResolvable): Promise<HelixChannel | null>
Retrieves the channel data for the given user.

@param user — The user you want to get channel info for.

@deprecated — Use getChannelInfoById instead.

The signature '(user: UserIdResolvable): Promise<HelixChannel | null>' of 'client.channels.getChannelInfo' is deprecated.ts(6387)
HelixChannelApi.d.ts(57, 8): The declaration was marked as deprecated here.

Expected Behavior

No response

Steps To Reproduce

No response

Version

5.52.0

What operating system are you using Firebot on?

Windows 10

Relevant log output

No response

Contact Details (Optional)

No response

iamdadmin avatar Jun 25 '22 12:06 iamdadmin