createDM method
Implementation
Future<DiscordChannel> createDM(String recipientId) async {
try {
final data = await discordHttpClient.postCall(
[
"users",
"@me",
"channels",
],
<String, dynamic>{
'recipient_id': recipientId,
},
);
return DiscordChannel.fromJson(data as Map<String, dynamic>);
} catch (e) {
throw DiscordApiException(e.toString());
}
}