Nostrum.Api.get_user_dms

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

Specs

get_user_dms() :: error() | {:ok, [Nostrum.Struct.Channel.dm_channel()]}

Gets a list of our user's DM channels.

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

Examples

Nostrum.Api.get_user_dms()
{:ok, [%Nostrum.Struct.Channel{type: 1} | _]}