Class SocketUser
Represents a WebSocket-based user.
Assembly: Discord.Net.WebSocket.dll
Syntax
public abstract class SocketUser : SocketEntity<ulong>, IEntity<ulong>, IUser, ISnowflakeEntity, IEntity<ulong>, IMentionable, IPresence
Properties
|
Improve this Doc
View Source
ActiveClients
Declaration
public IReadOnlyCollection<ClientType> ActiveClients { get; }
Property Value
|
Improve this Doc
View Source
Activities
Declaration
public IReadOnlyCollection<IActivity> Activities { get; }
Property Value
Type |
Description |
IReadOnlyCollection<IActivity> |
|
|
Improve this Doc
View Source
AvatarId
Declaration
public abstract string AvatarId { get; }
Property Value
|
Improve this Doc
View Source
CreatedAt
Declaration
public DateTimeOffset CreatedAt { get; }
Property Value
Type |
Description |
DateTimeOffset |
|
|
Improve this Doc
View Source
Discriminator
Declaration
public string Discriminator { get; }
Property Value
|
Improve this Doc
View Source
DiscriminatorValue
Declaration
public abstract ushort DiscriminatorValue { get; }
Property Value
|
Improve this Doc
View Source
GlobalName
Declaration
public abstract string GlobalName { get; }
Property Value
|
Improve this Doc
View Source
IsBot
Declaration
public abstract bool IsBot { get; }
Property Value
|
Improve this Doc
View Source
IsWebhook
Declaration
public abstract bool IsWebhook { get; }
Property Value
|
Improve this Doc
View Source
Mention
Declaration
public string Mention { get; }
Property Value
|
Improve this Doc
View Source
MutualGuilds
Gets mutual guilds shared with this user.
Declaration
public IReadOnlyCollection<SocketGuild> MutualGuilds { get; }
Property Value
|
Improve this Doc
View Source
PublicFlags
Declaration
public UserProperties? PublicFlags { get; }
Property Value
|
Improve this Doc
View Source
Status
Gets the current status of this user.
Declaration
public UserStatus Status { get; }
Property Value
|
Improve this Doc
View Source
Username
Declaration
public abstract string Username { get; }
Property Value
Methods
|
Improve this Doc
View Source
CreateDMChannelAsync(RequestOptions)
Declaration
public async Task<IDMChannel> CreateDMChannelAsync(RequestOptions options = null)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public string GetAvatarUrl(ImageFormat format = ImageFormat.Auto, ushort size = null)
Parameters
Returns
|
Improve this Doc
View Source
GetDefaultAvatarUrl()
Declaration
public string GetDefaultAvatarUrl()
Returns
|
Improve this Doc
View Source
ToString()
Gets the full name of the user (e.g. Example#0001).
Declaration
public override string ToString()
Returns
Type |
Description |
String |
The full name of the user.
|
Implements