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​
| Type | Name |
|---|---|
System.String | content |
System.String | attachmentId |
Revolt.MessageReply[] | replies |
| Revolt.MessageMasquerade | mask |
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​
| Type | Name |
|---|---|
System.String | content |
System.String | fileName |
System.String | filePath |
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​
| Type | Name |
|---|---|
System.String | content |
System.String | fileName |
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​
| Type | Name |
|---|---|
System.Int32 | limit |
System.String | before |
System.String | after |
| Revolt.MessageSort | sort |
GetMembersAsync()​
View Source​
Declaration
public Task<User[]> GetMembersAsync()
Returns​
System.Threading.Tasks.Task<Revolt.User[]>