createPrivateChannel abstract method
- @POST.new('/users/@me/channels')
- @Body.new() required CreatePrivateChannelRequest body,
Create private channel.
Creates a new private channel (direct message) between the current user and one or more recipients. Returns the newly created channel object.
body - Name not received - field will be skipped.
Implementation
@POST('/users/@me/channels')
Future<ChannelResponse> createPrivateChannel({
@Body() required CreatePrivateChannelRequest body,
});