我有一个 Twilio 频道,我正在尝试吸引其受邀用户,但我不确定如何执行此操作:
let messagingClient = this.state.messagingClient;
messagingClient.getUserChannelDescriptors().then(channels => {
let channelsHash = {};
channels.items.map(channelDescriptor => {
var channel = channelDescriptor.getChannel().then((channel) => {
channelsHash[channel.uniqueName] = channel;
console.log(channel.getInvited()) // print invited users
});
});
我会用什么代替channel.getInvited()
?似乎 Twilio 频道确实具有这样的属性,因为这里有一个受邀资源:https ://www.twilio.com/docs/api/chat/rest/invites#action-list