getDmChannelOrNull

open suspend fun getDmChannelOrNull(): DmChannel?(source)

Requests to get or create a DmChannel between this bot and the user, returns null if the user does not allow DMs.

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

Throws

if something went wrong during the request.