Show / Hide Table of Contents

Interface ISocketMessageChannel

Inherited Members
IMessageChannel.GetMessageAsync(UInt64, CacheMode, RequestOptions)
IMessageChannel.GetMessagesAsync(Int32, CacheMode, RequestOptions)
IMessageChannel.GetMessagesAsync(UInt64, Direction, Int32, CacheMode, RequestOptions)
IMessageChannel.GetMessagesAsync(IMessage, Direction, Int32, CacheMode, RequestOptions)
IMessageChannel.DeleteMessagesAsync(IEnumerable<IMessage>, RequestOptions)
IMessageChannel.DeleteMessagesAsync(IEnumerable<UInt64>, RequestOptions)
IMessageChannel.TriggerTypingAsync(RequestOptions)
IMessageChannel.EnterTypingState(RequestOptions)
IChannel.Name
IChannel.IsNsfw
IChannel.GetUsersAsync(CacheMode, RequestOptions)
IChannel.GetUserAsync(UInt64, CacheMode, RequestOptions)
ISnowflakeEntity.CreatedAt
IEntity<UInt64>.Id
Namespace: Discord.WebSocket
Assembly: cs.temp.dll.dll
Syntax
public interface ISocketMessageChannel : IMessageChannel, IChannel, ISnowflakeEntity, IEntity<ulong>

Properties

CachedMessages

Gets all messages in this channel's cache.

Declaration
IReadOnlyCollection<SocketMessage> CachedMessages { get; }
Property Value
Type Description
IReadOnlyCollection<SocketMessage>

Methods

GetCachedMessage(UInt64)

Declaration
SocketMessage GetCachedMessage(ulong id)
Parameters
Type Name Description
System.UInt64 id
Returns
Type Description
SocketMessage

GetCachedMessages(IMessage, Direction, Int32)

Gets a collection of messages in this channel.

Declaration
IReadOnlyCollection<SocketMessage> GetCachedMessages(IMessage fromMessage, Direction dir, int limit = 100)
Parameters
Type Name Description
IMessage fromMessage
Direction dir
System.Int32 limit
Returns
Type Description
IReadOnlyCollection<SocketMessage>

GetCachedMessages(Int32)

Gets the last N messages from this message channel.

Declaration
IReadOnlyCollection<SocketMessage> GetCachedMessages(int limit = 100)
Parameters
Type Name Description
System.Int32 limit
Returns
Type Description
IReadOnlyCollection<SocketMessage>

GetCachedMessages(UInt64, Direction, Int32)

Gets a collection of messages in this channel.

Declaration
IReadOnlyCollection<SocketMessage> GetCachedMessages(ulong fromMessageId, Direction dir, int limit = 100)
Parameters
Type Name Description
System.UInt64 fromMessageId
Direction dir
System.Int32 limit
Returns
Type Description
IReadOnlyCollection<SocketMessage>

GetPinnedMessagesAsync(RequestOptions)

Gets a collection of pinned messages in this channel.

Declaration
Task<IReadOnlyCollection<RestMessage>> GetPinnedMessagesAsync(RequestOptions options = null)
Parameters
Type Name Description
RequestOptions options
Returns
Type Description
Task<IReadOnlyCollection<RestMessage>>

SendFileAsync(Stream, String, String, Boolean, RequestOptions)

Sends a file to this text channel, with an optional caption.

Declaration
Task<RestUserMessage> SendFileAsync(Stream stream, string filename, string text = null, bool isTTS = false, RequestOptions options = null)
Parameters
Type Name Description
Stream stream
System.String filename
System.String text
System.Boolean isTTS
RequestOptions options
Returns
Type Description
Task<RestUserMessage>

SendMessageAsync(String, Boolean, Embed, RequestOptions)

Sends a message to this message channel.

Declaration
Task<RestUserMessage> SendMessageAsync(string text, bool isTTS = false, Embed embed = null, RequestOptions options = null)
Parameters
Type Name Description
System.String text
System.Boolean isTTS
Embed embed
RequestOptions options
Returns
Type Description
Task<RestUserMessage>
Back to top Discord.Net (c) 2015-2017