createDM method

Future<Channel> createDM(
  1. String recipientId
)

Implementation

Future<Channel> createDM(String recipientId) {
  var endpoint = '/users/@me/channels';
  return _http.request(
    endpoint,
    method: 'post',
    converter: Channel.fromJson,
    body: {'recipient_id': recipientId},
  );
}