Skip to main content

Class Channel

Assembly: Revolt.Net.dll​
View Source​
Declaration
public class Channel : RevoltObject

Properties​

ChannelType​

View Source​
Declaration
[JsonProperty("channel_type")]
public string ChannelType { get; }

Methods​

SendMessageAsync(String, String, MessageReply[], MessageMasquerade)​

View Source​
Declaration
public Task<SelfMessage> SendMessageAsync(string content, string attachmentId = null, MessageReply[] replies = null, MessageMasquerade mask = null)
Returns​

System.Threading.Tasks.Task<Revolt.SelfMessage>

Parameters​
TypeName
System.Stringcontent
System.StringattachmentId
Revolt.MessageReply[]replies
Revolt.MessageMasquerademask

SendFileAsync(String, String, String)​

View Source​
Declaration
public async Task<SelfMessage> SendFileAsync(string content, string fileName, string filePath)
Returns​

System.Threading.Tasks.Task<Revolt.SelfMessage>

Parameters​
TypeName
System.Stringcontent
System.StringfileName
System.StringfilePath

SendFileAsync(String, String, Byte[])​

View Source​
Declaration
public async Task<SelfMessage> SendFileAsync(string content, string fileName, byte[] data)
Returns​

System.Threading.Tasks.Task<Revolt.SelfMessage>

Parameters​
TypeName
System.Stringcontent
System.StringfileName
System.Byte[]data

BeginTypingAsync()​

View Source​
Declaration
public Task BeginTypingAsync()
Returns​

System.Threading.Tasks.Task

EndTypingAsync()​

View Source​
Declaration
public Task EndTypingAsync()
Returns​

System.Threading.Tasks.Task

GetMessagesAsync(Int32, String, String, MessageSort)​

View Source​
Declaration
public Task<Message[]> GetMessagesAsync(int limit, string before = null, string after = null, MessageSort sort = MessageSort.Latest)
Returns​

System.Threading.Tasks.Task<Revolt.Message[]>

Parameters​
TypeName
System.Int32limit
System.Stringbefore
System.Stringafter
Revolt.MessageSortsort

GetMembersAsync()​

View Source​
Declaration
public Task<User[]> GetMembersAsync()
Returns​

System.Threading.Tasks.Task<Revolt.User[]>