Class KuracordUser
Implements
Inherited Members
Namespace: KSharpPlus.Entities.User
Assembly: KSharpPlus.dll
Syntax
public class KuracordUser : SnowflakeObject
Properties
| Improve this Doc View SourceAvatarUrl
Gets the user's avatar URL.
Declaration
public string AvatarUrl { get; }
Property Value
Type | Description |
---|---|
String |
Biography
Gets the user's biography.
Declaration
public string Biography { get; }
Property Value
Type | Description |
---|---|
String |
Disabled
Gets whether the user is disabled. Only for the current user.
Declaration
public bool? Disabled { get; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
Discriminator
Gets the user's 4-digit discriminator.
Declaration
public string Discriminator { get; }
Property Value
Type | Description |
---|---|
String |
Gets the user's email address. Only for the current user.
Declaration
public string Email { get; }
Property Value
Type | Description |
---|---|
String |
Flags
Gets the user's flags.
Declaration
public UserFlags? Flags { get; }
Property Value
Type | Description |
---|---|
Nullable<UserFlags> |
GuildsMember
Gets user's guilds. Only for the current user.
Declaration
public IReadOnlyList<KuracordMember>? GuildsMember { get; }
Property Value
Type | Description |
---|---|
Nullable<IReadOnlyList<KuracordMember>> |
IsBot
Gets whether the user is a bot.
Declaration
public bool IsBot { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsCurrent
Gets whether this user is the Client which created this object.
Declaration
public bool IsCurrent { get; }
Property Value
Type | Description |
---|---|
Boolean |
Mention
Gets the user's mention string.
Declaration
public string Mention { get; }
Property Value
Type | Description |
---|---|
String |
PremiumType
Gets the user's premium type. Only for the current user.
Declaration
public PremiumType? PremiumType { get; }
Property Value
Type | Description |
---|---|
Nullable<PremiumType> |
Token
Gets the user's token. This field will not be null only if the user was get from RegisterUserAsync(String, String, String, Boolean) method.
Declaration
public string Token { get; }
Property Value
Type | Description |
---|---|
String |
Username
Gets this user's username.
Declaration
public string Username { get; }
Property Value
Type | Description |
---|---|
String |
Verified
Gets whether the user is verified. Only for the current user.
Declaration
public bool? Verified { get; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
Methods
| Improve this Doc View SourceEquals(KuracordUser)
Checks whether this KuracordUser is equal to another KuracordUser.
Declaration
public bool Equals(KuracordUser e)
Parameters
Type | Name | Description |
---|---|---|
KuracordUser | e | KuracordUser to compare to. |
Returns
Type | Description |
---|---|
Boolean | Whether the KuracordUser is equal to this KuracordUser. |
Equals(Object)
Checks whether this KuracordUser is equal to another object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | Object to compare to. |
Returns
Type | Description |
---|---|
Boolean | Whether the object is equal to this KuracordUser. |
Overrides
| Improve this Doc View SourceGetHashCode()
Gets the hash code for this KuracordUser.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | The hash code for this KuracordUser. |
Overrides
| Improve this Doc View SourceToString()
Returns a string representation of this user.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | String representation of this user. |
Overrides
Operators
| Improve this Doc View SourceEquality(KuracordUser, KuracordUser)
Gets whether the two KuracordUser objects are equal.
Declaration
public static bool operator ==(KuracordUser e1, KuracordUser e2)
Parameters
Type | Name | Description |
---|---|---|
KuracordUser | e1 | First user to compare. |
KuracordUser | e2 | Second user to compare. |
Returns
Type | Description |
---|---|
Boolean | Whether the two users are equal. |
Inequality(KuracordUser, KuracordUser)
Gets whether the two KuracordUser objects are not equal.
Declaration
public static bool operator !=(KuracordUser e1, KuracordUser e2)
Parameters
Type | Name | Description |
---|---|---|
KuracordUser | e1 | First user to compare. |
KuracordUser | e2 | Second user to compare. |
Returns
Type | Description |
---|---|
Boolean | Whether the two users are not equal. |