Implement User#dmChannel: Fixup

This commit is contained in:
Szymon Uglis 2020-11-22 12:04:26 +01:00 committed by Szymon Uglis
parent b1f9578b1f
commit 8e394c935a
No known key found for this signature in database
GPG key ID: 112376C5BEE91FE2

View file

@ -1102,7 +1102,7 @@ class _HttpEndpoints implements IHttpEndpoints {
@override
Future<DMChannel> createDMChannel(Snowflake userId) async {
final response = await _httpClient._execute(BasicRequest._new("/users/@me/channels", body: {
final response = await _httpClient._execute(BasicRequest._new("/users/@me/channels", method: "POST", body: {
"recipient_id": userId.toString()
}));