Class RevoltRestClientUsers
Assembly: Revolt.Net.dll​
View Source​
public class RevoltRestClientUsers
Properties​
Client​
View Source​
public RevoltClient Client { get; }
Methods​
FetchUserAsync(String)​
View Source​
public Task<User> FetchUserAsync(string id)
Returns​
System.Threading.Tasks.Task<Revolt.User>
Parameters​
| Type | Name |
|---|---|
System.String | id |
FetchSelfAsync()​
View Source​
public Task<User> FetchSelfAsync()
Returns​
System.Threading.Tasks.Task<Revolt.User>
EditSelfAsync(EditUserRequest, RevoltRestClientUsers.EditSelf_Remove)​
View Source​
public Task EditSelfAsync(EditUserRequest user, RevoltRestClientUsers.EditSelf_Remove remove)
Returns​
System.Threading.Tasks.Task
Parameters​
| Type | Name |
|---|---|
| Revolt.EditUserRequest | user |
| Revolt.RevoltRestClientUsers.EditSelf_Remove | remove |
ChangeUsernameAsync(String, String)​
View Source​
public Task ChangeUsernameAsync(string username, string password)
Returns​
System.Threading.Tasks.Task
Parameters​
| Type | Name |
|---|---|
System.String | username |
System.String | password |
FetchProfileAsync(String)​
View Source​
public Task<Profile> FetchProfileAsync(string id)
Returns​
System.Threading.Tasks.Task<Revolt.Profile>
Parameters​
| Type | Name |
|---|---|
System.String | id |
FetchMutualFriendsAsync(String)​
View Source​
public Task<MutualFriends> FetchMutualFriendsAsync(string id)
Returns​
System.Threading.Tasks.Task<Revolt.MutualFriends>
Parameters​
| Type | Name |
|---|---|
System.String | id |
FetchDirectMessageChannelsAsync()​
View Source​
public Task<DirectMessageChannel[]> FetchDirectMessageChannelsAsync()
Returns​
System.Threading.Tasks.Task<Revolt.Channels.DirectMessageChannel[]>
OpenDirectMessageChannelAsync(String)​
View Source​
public Task<DirectMessageChannel> OpenDirectMessageChannelAsync(string userId)
Returns​
System.Threading.Tasks.Task<Revolt.Channels.DirectMessageChannel>
Parameters​
| Type | Name |
|---|---|
System.String | userId |
FetchRelationshipsAsync()​
View Source​
public Task<Relationship[]> FetchRelationshipsAsync()
Returns​
System.Threading.Tasks.Task<Revolt.Relationship[]>
FetchRelationshipAsync(String)​
View Source​
public Task<Relationship> FetchRelationshipAsync(string id)
Returns​
System.Threading.Tasks.Task<Revolt.Relationship>
Parameters​
| Type | Name |
|---|---|
System.String | id |
FriendAsync(String)​
Send or accept a friend request.
View Source​
public Task<Relationship> FriendAsync(string id)
Returns​
System.Threading.Tasks.Task<Revolt.Relationship>
Parameters​
| Type | Name | Description |
|---|---|---|
System.String | id | User Id. |
UnfriendAsync(String)​
Deny a friend request or unfriend someone.
View Source​
public Task<Relationship> UnfriendAsync(string id)
Returns​
System.Threading.Tasks.Task<Revolt.Relationship>
Parameters​
| Type | Name | Description |
|---|---|---|
System.String | id | User Id. |
BlockAsync(String)​
Block someone.
View Source​
public Task<Relationship> BlockAsync(string id)
Returns​
System.Threading.Tasks.Task<Revolt.Relationship>
Parameters​
| Type | Name | Description |
|---|---|---|
System.String | id | User Id. |
UnblockAsync(String)​
Unblock someone.
View Source​
public Task<Relationship> UnblockAsync(string id)
Returns​
System.Threading.Tasks.Task<Revolt.Relationship>
Parameters​
| Type | Name | Description |
|---|---|---|
System.String | id | User Id. |