groupDMAddRecipient method

Future groupDMAddRecipient(
  1. String channelId, {
  2. required String userId,
  3. required String accessToken,
  4. required String nick,
})

Implementation

Future groupDMAddRecipient(
  String channelId, {
  required String userId,
  required String accessToken,
  required String nick,
}) {
  var endpoint = '/channels/$channelId/recipients/$userId';
  return _http.request(
    endpoint,
    converter: _http.asNull,
    method: 'put',
    body: {
      'access_token': accessToken,
      'nick': nick,
    },
  );
}