Class RestSelfUser
Represents the logged-in REST-based user.
Inheritance
System.Object
RestSelfUser
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()
Assembly: Discord.Net.Rest.dll
Syntax
public class RestSelfUser : RestUser, IUpdateable, ISelfUser, IUser, ISnowflakeEntity, IEntity<ulong>, IMentionable, IPresence
Properties
|
Improve this Doc
View Source
Email
Declaration
public string Email { get; }
Property Value
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
Flags
Declaration
public UserProperties Flags { get; }
Property Value
|
Improve this Doc
View Source
IsMfaEnabled
Declaration
public bool IsMfaEnabled { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsVerified
Declaration
public bool IsVerified { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Locale
Declaration
public string Locale { get; }
Property Value
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
PremiumType
Declaration
public PremiumType PremiumType { get; }
Property Value
Methods
|
Improve this Doc
View Source
ModifyAsync(Action<SelfUserProperties>, RequestOptions)
Declaration
public Task ModifyAsync(Action<SelfUserProperties> func, RequestOptions options = null)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Exceptions
| Type |
Condition |
| System.InvalidOperationException |
Unable to modify this object using a different token.
|
|
Improve this Doc
View Source
UpdateAsync(RequestOptions)
Declaration
public override Task UpdateAsync(RequestOptions options = null)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Overrides
Exceptions
| Type |
Condition |
| System.InvalidOperationException |
Unable to update this object using a different token.
|
Implements