Class RestApplication
Represents a REST-based entity that contains information about a Discord application created via the developer portal.
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.Rest
Assembly: Discord.Net.Rest.dll
Syntax
public class RestApplication : RestEntity<ulong>, IApplication, ISnowflakeEntity, IEntity<ulong>
Fields
| Improve this Doc View Source_iconId
Declaration
protected string _iconId
Field Value
| Type | Description |
|---|---|
| System.String |
Properties
| Improve this Doc View SourceCreatedAt
Gets when the snowflake was created.
Declaration
public DateTimeOffset CreatedAt { get; }
Property Value
| Type | Description |
|---|---|
| System.DateTimeOffset | A System.DateTimeOffset representing when the entity was first created. |
Description
Gets the description of the application.
Declaration
public string Description { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Flags
Declaration
public ulong Flags { get; }
Property Value
| Type | Description |
|---|---|
| System.UInt64 |
IconUrl
Gets the icon URL of the application.
Declaration
public string IconUrl { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Name
Gets the name of the application.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Owner
Gets the partial user object containing info on the owner of the application.
Declaration
public IUser Owner { get; }
Property Value
| Type | Description |
|---|---|
| IUser |
RPCOrigins
Gets the RPC origins of the application.
Declaration
public string[] RPCOrigins { get; }
Property Value
| Type | Description |
|---|---|
| System.String[] |
Methods
| Improve this Doc View SourceToString()
Gets the name of the application.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | Name of the application. |
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
UpdateAsync()
Declaration
public Task UpdateAsync()
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | Unable to update this object from a different application token. |