Skip to main content

Class RevoltRestClientUsers

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

Properties​

Client​

View Source​
Declaration
public RevoltClient Client { get; }

Methods​

FetchUserAsync(String)​

View Source​
Declaration
public Task<User> FetchUserAsync(string id)
Returns​

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

Parameters​
TypeName
System.Stringid

FetchSelfAsync()​

View Source​
Declaration
public Task<User> FetchSelfAsync()
Returns​

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

EditSelfAsync(EditUserRequest, RevoltRestClientUsers.EditSelf_Remove)​

View Source​
Declaration
public Task EditSelfAsync(EditUserRequest user, RevoltRestClientUsers.EditSelf_Remove remove)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
Revolt.EditUserRequestuser
Revolt.RevoltRestClientUsers.EditSelf_Removeremove

ChangeUsernameAsync(String, String)​

View Source​
Declaration
public Task ChangeUsernameAsync(string username, string password)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
System.Stringusername
System.Stringpassword

FetchProfileAsync(String)​

View Source​
Declaration
public Task<Profile> FetchProfileAsync(string id)
Returns​

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

Parameters​
TypeName
System.Stringid

FetchMutualFriendsAsync(String)​

View Source​
Declaration
public Task<MutualFriends> FetchMutualFriendsAsync(string id)
Returns​

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

Parameters​
TypeName
System.Stringid

FetchDirectMessageChannelsAsync()​

View Source​
Declaration
public Task<DirectMessageChannel[]> FetchDirectMessageChannelsAsync()
Returns​

System.Threading.Tasks.Task<Revolt.Channels.DirectMessageChannel[]>

OpenDirectMessageChannelAsync(String)​

View Source​
Declaration
public Task<DirectMessageChannel> OpenDirectMessageChannelAsync(string userId)
Returns​

System.Threading.Tasks.Task<Revolt.Channels.DirectMessageChannel>

Parameters​
TypeName
System.StringuserId

FetchRelationshipsAsync()​

View Source​
Declaration
public Task<Relationship[]> FetchRelationshipsAsync()
Returns​

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

FetchRelationshipAsync(String)​

View Source​
Declaration
public Task<Relationship> FetchRelationshipAsync(string id)
Returns​

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

Parameters​
TypeName
System.Stringid

FriendAsync(String)​

Send or accept a friend request.

View Source​
Declaration
public Task<Relationship> FriendAsync(string id)
Returns​

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

Parameters​
TypeNameDescription
System.StringidUser Id.

UnfriendAsync(String)​

Deny a friend request or unfriend someone.

View Source​
Declaration
public Task<Relationship> UnfriendAsync(string id)
Returns​

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

Parameters​
TypeNameDescription
System.StringidUser Id.

BlockAsync(String)​

Block someone.

View Source​
Declaration
public Task<Relationship> BlockAsync(string id)
Returns​

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

Parameters​
TypeNameDescription
System.StringidUser Id.

UnblockAsync(String)​

Unblock someone.

View Source​
Declaration
public Task<Relationship> UnblockAsync(string id)
Returns​

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

Parameters​
TypeNameDescription
System.StringidUser Id.