node-slack-sdk icon indicating copy to clipboard operation
node-slack-sdk copied to clipboard

web-api v7: `admin.users.invite` API leads to runtime error

Open filmaj opened this issue 5 months ago • 1 comments

Got a report from Slack Community that admin.users.invite API is having some troubles in the latest revision:

I did find one issue with the admin.users.invite api on the @slack/web-api@7 - it seems like the type of the function requires channel_ids to be an array of string but once calling the API the api is throwing an error. After some investigation I understood that although the type is array of string, the api itself requires it to be a string separated with commas. using @ts-ignore solve the issue for me :slightly_smiling_face: Other than that the migration was great (And I’m a heavy user of your APIs :wink:) Thanks guys!

Haven't reproduced this myself but worth checking

filmaj avatar Jan 29 '24 18:01 filmaj