getDmChannel

open suspend fun getDmChannel(): DmChannel(source)

Requests to get or create a DmChannel between this bot and the user.

This property is not resolvable through cache and will always use the RestClient instead.

This method will throw a RestRequestException if a user does not allow you to send DM's to them, use getDmChannelOrNull instead to retrieve the DmChannel safely.

Throws

if something went wrong during the request.