Discore
Show / Hide Table of Contents

Method CreateDM

| Improve this Doc View Source

CreateDM(Snowflake)

Opens a DM channel with the specified user.

Declaration
public Task<DiscordDMChannel> CreateDM(Snowflake recipientId)
Parameters
Type Name Description
Snowflake recipientId
Returns
Type Description
Task<DiscordDMChannel>
Exceptions
Type Condition
DiscordHttpApiException
| Improve this Doc View Source

CreateDM(DiscordUser)

Opens a DM channel with the specified user.

Declaration
public Task<DiscordDMChannel> CreateDM(DiscordUser recipient)
Parameters
Type Name Description
DiscordUser recipient
Returns
Type Description
Task<DiscordDMChannel>
Exceptions
Type Condition
ArgumentNullException
DiscordHttpApiException
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX