Search Results for

    Show / Hide Table of Contents

    Class DiscordApplication

    Represents an OAuth2 application.

    Inheritance
    System.Object
    SnowflakeObject
    DiscordMessageApplication
    DiscordApplication
    Inherited Members
    DiscordMessageApplication.Description
    DiscordMessageApplication.Name
    SnowflakeObject.Id
    SnowflakeObject.CreationTimestamp
    Namespace: DisCatSharp.Entities
    Assembly: DisCatSharp.dll
    Syntax
    public sealed class DiscordApplication : DiscordMessageApplication, IEquatable<DiscordApplication>

    Properties

    | Improve this Doc View Source

    CoverImageHash

    Gets the hash of the application's cover image.

    Declaration
    public string CoverImageHash { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    CoverImageUrl

    Gets this application's cover image URL.

    Declaration
    public override string CoverImageUrl { get; }
    Property Value
    Type Description
    System.String
    Overrides
    DiscordMessageApplication.CoverImageUrl
    | Improve this Doc View Source

    CustomInstallUrl

    A custom url for the Add To Server button.

    Declaration
    public string CustomInstallUrl { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Flags

    Gets the application's flags.

    Declaration
    public ApplicationFlags Flags { get; }
    Property Value
    Type Description
    ApplicationFlags
    | Improve this Doc View Source

    GuildId

    If this application is a game sold on Discord, this field will be the guild to which it has been linked

    Declaration
    public ulong? GuildId { get; }
    Property Value
    Type Description
    System.Nullable<System.UInt64>
    | Improve this Doc View Source

    Icon

    Gets the application's icon.

    Declaration
    public override string Icon { get; }
    Property Value
    Type Description
    System.String
    Overrides
    DiscordMessageApplication.Icon
    | Improve this Doc View Source

    IconHash

    Gets the application's icon hash.

    Declaration
    public string IconHash { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    InstallParams

    Install parameters for adding the application to a guild.

    Declaration
    public DiscordApplicationInstallParams InstallParams { get; }
    Property Value
    Type Description
    DiscordApplicationInstallParams
    | Improve this Doc View Source

    IsHook

    Whether the application is hooked.

    Declaration
    public bool IsHook { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsPublic

    Gets whether this bot application is public.

    Declaration
    public bool? IsPublic { get; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>
    | Improve this Doc View Source

    Owners

    Gets the application's owners.

    Declaration
    public IEnumerable<DiscordUser> Owners { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<DiscordUser>
    | Improve this Doc View Source

    PrimarySkuId

    If this application is a game sold on Discord, this field will be the id of the "Game SKU" that is created, if exists

    Declaration
    public ulong? PrimarySkuId { get; }
    Property Value
    Type Description
    System.Nullable<System.UInt64>
    | Improve this Doc View Source

    PrivacyPolicyUrl

    Gets the privacy policy url of the application.

    Declaration
    public string PrivacyPolicyUrl { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    RequiresCodeGrant

    Gets whether this application's bot user requires code grant.

    Declaration
    public bool? RequiresCodeGrant { get; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>
    | Improve this Doc View Source

    RpcOrigins

    Gets the application's allowed RPC origins.

    Declaration
    public IReadOnlyList<string> RpcOrigins { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<System.String>
    | Improve this Doc View Source

    Slug

    If this application is a game sold on Discord, this field will be the URL slug that links to the store page

    Declaration
    public string Slug { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Summary

    Gets the application's summary.

    Declaration
    public string Summary { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Tags

    The application tags. Not used atm.

    Declaration
    public IReadOnlyList<string> Tags { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<System.String>
    | Improve this Doc View Source

    Team

    Gets the team which owns this application.

    Declaration
    public DiscordTeam Team { get; }
    Property Value
    Type Description
    DiscordTeam
    | Improve this Doc View Source

    TeamName

    Gets the team name of the application.

    Declaration
    public string TeamName { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    TermsOfServiceUrl

    Gets the terms of service url of the application.

    Declaration
    public string TermsOfServiceUrl { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Type

    Gets the application type. Mostly null.

    Declaration
    public string Type { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    VerifyKey

    Gets the hex encoded key for verification in interactions and the GameSDK's GetTicket

    Declaration
    public string VerifyKey { get; }
    Property Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    Equals(DiscordApplication)

    Checks whether this DiscordApplication is equal to another DiscordApplication.

    Declaration
    public bool Equals(DiscordApplication e)
    Parameters
    Type Name Description
    DiscordApplication e

    DiscordApplication to compare to.

    Returns
    Type Description
    System.Boolean

    Whether the DiscordApplication is equal to this DiscordApplication.

    | Improve this Doc View Source

    Equals(Object)

    Checks whether this DiscordApplication is equal to another object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj

    Object to compare to.

    Returns
    Type Description
    System.Boolean

    Whether the object is equal to this DiscordApplication.

    Overrides
    System.Object.Equals(System.Object)
    | Improve this Doc View Source

    GenerateBotOAuth(Permissions)

    Generates an oauth url for the application.

    Declaration
    public string GenerateBotOAuth(Permissions permissions = Permissions.None)
    Parameters
    Type Name Description
    Permissions permissions

    The permissions.

    Returns
    Type Description
    System.String

    OAuth Url

    | Improve this Doc View Source

    GetAssetsAsync()

    Retrieves this application's assets.

    Declaration
    public async Task<IReadOnlyList<DiscordApplicationAsset>> GetAssetsAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<DiscordApplicationAsset>>

    This application's assets.

    | Improve this Doc View Source

    GetAvatarUrl(ImageFormat, UInt16)

    Gets the application's cover image URL, in requested format and size.

    Declaration
    public string GetAvatarUrl(ImageFormat fmt, ushort size = 1024)
    Parameters
    Type Name Description
    ImageFormat fmt

    Format of the image to get.

    System.UInt16 size

    Maximum size of the cover image. Must be a power of two, minimum 16, maximum 2048.

    Returns
    Type Description
    System.String

    URL of the application's cover image.

    | Improve this Doc View Source

    GetHashCode()

    Gets the hash code for this DiscordApplication.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    The hash code for this DiscordApplication.

    Overrides
    System.Object.GetHashCode()

    Operators

    | Improve this Doc View Source

    Equality(DiscordApplication, DiscordApplication)

    Gets whether the two DiscordApplication objects are equal.

    Declaration
    public static bool operator ==(DiscordApplication e1, DiscordApplication e2)
    Parameters
    Type Name Description
    DiscordApplication e1

    First application to compare.

    DiscordApplication e2

    Second application to compare.

    Returns
    Type Description
    System.Boolean

    Whether the two applications are equal.

    | Improve this Doc View Source

    Inequality(DiscordApplication, DiscordApplication)

    Gets whether the two DiscordApplication objects are not equal.

    Declaration
    public static bool operator !=(DiscordApplication e1, DiscordApplication e2)
    Parameters
    Type Name Description
    DiscordApplication e1

    First application to compare.

    DiscordApplication e2

    Second application to compare.

    Returns
    Type Description
    System.Boolean

    Whether the two applications are not equal.

    Extension Methods

    ReflectionUtilities.ToDictionary<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top © 2021-2022 Aiko IT Systems