Nostrum.Api.create_dm

You're seeing just the function create_dm, go back to Nostrum.Api module for more information.

Specs

Create a new DM channel with a user.

If successful, returns {:ok, dm_channel}. Otherwise, returns a Nostrum.Api.error/0.

Examples

Nostrum.Api.create_dm(150061853001777154)
{:ok, %Nostrum.Struct.Channel{type: 1}}