createDM

suspend fun createDM(createDM: CreateDM): Channel(source)

Open a DM channel between the current user and another.

Does not create a brand new Channel if existing DMs already exist between these two users.

Should be used primarily in response to a user action, abuse of this API can lead to a bot being blocked from creating new DMs.

Return

The DM channel.

Parameters

createDM

The user to create a DM with.

Throws