Class SocketUnknownUser
Represents a WebSocket-based user that is yet to be recognized by the client.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Discord.WebSocket
Assembly: Discord.Net.WebSocket.dll
Syntax
public class SocketUnknownUser : SocketUser, IUser, ISnowflakeEntity, IEntity<ulong>, IMentionable, IPresence
Remarks
A user may not be recognized due to the user missing from the cache or failed to be recognized properly.
Properties
| Improve this Doc View SourceAvatarId
Gets the identifier of this user's avatar.
Declaration
public override string AvatarId { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
| Improve this Doc View SourceDiscriminatorValue
Gets the per-username unique ID for this user.
Declaration
public override ushort DiscriminatorValue { get; }
Property Value
| Type | Description |
|---|---|
| System.UInt16 |
Overrides
| Improve this Doc View SourceIsBot
Gets a value that indicates whether this user is identified as a bot.
Declaration
public override bool IsBot { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
Overrides
Remarks
This property retrieves a value that indicates whether this user is a registered bot application (indicated by the blue BOT tag within the official chat client).
IsWebhook
Gets a value that indicates whether this user is a webhook user.
Declaration
public override bool IsWebhook { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
Overrides
| Improve this Doc View SourceUsername
Gets the username for this user.
Declaration
public override string Username { get; }
Property Value
| Type | Description |
|---|---|
| System.String |