Interface IDMChannel
Represents a generic direct-message channel.
Inherited Members
Namespace: Discord
Assembly: Discord.Net.Core.dll
Syntax
public interface IDMChannel : IMessageChannel, IPrivateChannel, IChannel, ISnowflakeEntity, IEntity<ulong>
Properties
| Improve this Doc View SourceRecipient
Gets the recipient of all messages in this channel.
Declaration
IUser Recipient { get; }
Property Value
| Type | Description |
|---|---|
| IUser | A user object that represents the other user in this channel. |
Methods
| Improve this Doc View SourceCloseAsync(RequestOptions)
Closes this private channel, removing it from your channel list.
Declaration
Task CloseAsync(RequestOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| RequestOptions | options | The options to be used when sending the request. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A task that represents the asynchronous close operation. |