Method CreateDM
| Improve this Doc View SourceCreateDM(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 |
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 |