🐛 Fix parameters when inviting a user in Slack #1175 & #1130 (#1202)

- User IDs parameter is not allow when creating a channel so it got removed.
- User field is not valid when inviting a user to a channel. Correct name should be users so it got renamed to it.
This commit is contained in:
Ricardo Espinoza
2020-11-24 03:09:00 -05:00
committed by GitHub
parent 3c843f5c74
commit 1b0dda6ddc
2 changed files with 5 additions and 18 deletions

View File

@@ -195,16 +195,6 @@ export const channelFields = [
default: false,
description: 'Create a private channel instead of a public one',
},
{
displayName: 'Users',
name: 'users',
type: 'multiOptions',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: [],
description: `Required for workspace apps. A list of between 1 and 30 human users that will be added to the newly-created conversation`,
},
],
},
/* -------------------------------------------------------------------------- */
@@ -232,9 +222,9 @@ export const channelFields = [
description: 'The ID of the channel to invite user to.',
},
{
displayName: 'User ID',
name: 'userId',
type: 'options',
displayName: 'User IDs',
name: 'userIds',
type: 'multiOptions',
typeOptions: {
loadOptionsMethod: 'getUsers',
},