Table of Contents

Class UserHelpers

Namespace
Fluxer.Net
Assembly
Fluxer.Net.dll

Http methods for User class.

public static class UserHelpers
Inheritance
object
UserHelpers

Methods

CreateGroupChannelAsync(CurrentUser, HashSet<User>, RequestOptions?)

Create a GroupChannel.

public static Task<GroupChannel> CreateGroupChannelAsync(this CurrentUser user, HashSet<User> users, RequestOptions? options = null)

Parameters

user CurrentUser
users HashSet<User>
options RequestOptions

Returns

Task<GroupChannel>

CreateGroupChannelAsync(CurrentUser, HashSet<ulong>, RequestOptions?)

Create a GroupChannel.

public static Task<GroupChannel> CreateGroupChannelAsync(this CurrentUser user, HashSet<ulong> userIds, RequestOptions? options = null)

Parameters

user CurrentUser
userIds HashSet<ulong>
options RequestOptions

Returns

Task<GroupChannel>

GetOrCreateDMChannelAsync(User, RequestOptions?)

Create a DMChannel.

public static Task<DMChannel> GetOrCreateDMChannelAsync(this User user, RequestOptions? options = null)

Parameters

user User
options RequestOptions

Returns

Task<DMChannel>

GetProfileAsync(User, ulong?, bool, bool, RequestOptions?)

Get a user's profile.

public static Task<UserProfileResponse> GetProfileAsync(this User user, ulong? guildId = null, bool mutualFriends = false, bool mutualGuilds = false, RequestOptions? options = null)

Parameters

user User
guildId ulong?
mutualFriends bool
mutualGuilds bool
options RequestOptions

Returns

Task<UserProfileResponse>

UserProfileResponse

Remarks

Requires mutual friend or guild, this may also fail if hidden profile is enabled.