Class UserHelpers
- Namespace
- Fluxer.Net
- Assembly
- Fluxer.Net.dll
Http methods for User class.
public static class UserHelpers
- Inheritance
-
objectUserHelpers
Methods
CreateGroupChannelAsync(CurrentUser, HashSet<User>, RequestOptions?)
Create a GroupChannel.
public static Task<GroupChannel> CreateGroupChannelAsync(this CurrentUser user, HashSet<User> users, RequestOptions? options = null)
Parameters
userCurrentUserusersHashSet<User>optionsRequestOptions
Returns
CreateGroupChannelAsync(CurrentUser, HashSet<ulong>, RequestOptions?)
Create a GroupChannel.
public static Task<GroupChannel> CreateGroupChannelAsync(this CurrentUser user, HashSet<ulong> userIds, RequestOptions? options = null)
Parameters
userCurrentUseruserIdsHashSet<ulong>optionsRequestOptions
Returns
GetOrCreateDMChannelAsync(User, RequestOptions?)
Create a DMChannel.
public static Task<DMChannel> GetOrCreateDMChannelAsync(this User user, RequestOptions? options = null)
Parameters
userUseroptionsRequestOptions
Returns
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
userUserguildIdulong?mutualFriendsboolmutualGuildsbooloptionsRequestOptions
Returns
Remarks
Requires mutual friend or guild, this may also fail if hidden profile is enabled.