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