Skip to main content

Class RevoltClientChannels

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

Properties​

Client​

View Source​
Declaration
public RevoltClient Client { get; }

Methods​

Get(String)​

Gets a channel from cache by id, if not cached, fetches it.

View Source​
Declaration
public Channel Get(string id)
Returns​

Revolt.Channels.Channel

Parameters​
TypeName
System.Stringid

GetCached(String)​

View Source​
Declaration
public Channel GetCached(string id)
Returns​

Revolt.Channels.Channel

Parameters​
TypeName
System.Stringid

SendMessageAsync(String, String, List<String>, MessageReply[], MessageMasquerade)​

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

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

Parameters​
TypeName
System.StringchannelId
System.Stringcontent
System.Collections.Generic.List<System.String>attachmentIds
Revolt.MessageReply[]replies
Revolt.MessageMasquerademask

BeginTypingAsync(String)​

View Source​
Declaration
public Task BeginTypingAsync(string channelId)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
System.StringchannelId

EndTypingAsync(String)​

View Source​
Declaration
public Task EndTypingAsync(string channelId)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
System.StringchannelId

LeaveAsync(String)​

Closes DM channel or leaves group channel

View Source​
Declaration
public Task LeaveAsync(string channelId)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
System.StringchannelId

AddGroupMemberAsync(String, String)​

View Source​
Declaration
public Task AddGroupMemberAsync(string channelId, string userId)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
System.StringchannelId
System.StringuserId

RemoveGroupMemberAsync(String, String)​

View Source​
Declaration
public Task RemoveGroupMemberAsync(string channelId, string userId)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
System.StringchannelId
System.StringuserId

EditMessageAsync(String, String, String)​

View Source​
Declaration
public Task EditMessageAsync(string channelId, string messageId, string newContent)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
System.StringchannelId
System.StringmessageId
System.StringnewContent

DeleteMessageAsync(String, String)​

View Source​
Declaration
public Task DeleteMessageAsync(string channelId, string id)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
System.StringchannelId
System.Stringid

GetMessagesAsync(String, Int32, String, String, MessageSort)​

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

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

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

GetMembersAsync(String)​

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

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

Parameters​
TypeName
System.Stringid