Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Oauth2Application

Oauth2 Application Structure

Hierarchy

Index

Constructors

constructor

Properties

_keys

_keys: BaseSet<string> = keysOauth2Application

Optional bot

botPublic

botPublic: boolean = false

botRequireCodeGrant

botRequireCodeGrant: boolean = false

client

client: ShardClient

Optional coverImage

coverImage: string | null

description

description: string = ""

flags

flags: number = 0

Optional guildId

guildId: undefined | string

icon

icon: null | string = null

id

id: string = ""

name

name: string = ""

owner

Optional primarySkuId

primarySkuId: undefined | string

Optional redirectUris

redirectUris: Array<string>

Optional rpcApplicationState

rpcApplicationState: undefined | number

Optional rpcOrigins

rpcOrigins: Array<string>

Optional secret

secret: undefined | string

Optional slug

slug: undefined | string

Optional storeApplicationState

storeApplicationState: undefined | number

summary

summary: string = ""

Optional team

team: Team

verifyKey

verifyKey: string = ""

Accessors

coverImageUrl

  • get coverImageUrl(): null | string
  • Returns null | string

createdAt

  • get createdAt(): Date
  • Returns Date

createdAtUnix

  • get createdAtUnix(): number
  • Returns number

iconUrl

  • get iconUrl(): null | string
  • Returns null | string

isOnDiscord

  • get isOnDiscord(): boolean
  • Returns boolean

jumpLink

  • get jumpLink(): null | string
  • Returns null | string

oauth2Url

  • get oauth2Url(): string
  • Returns string

platformDiscordUrl

  • get platformDiscordUrl(): null | string
  • Returns null | string

shardId

  • get shardId(): number
  • Returns number

Methods

[inspect.custom]

  • [inspect.custom](): object

_getFromSnake

  • _getFromSnake(key: string): any
  • Parameters

    • key: string

    Returns any

_setFromSnake

  • _setFromSnake(key: string, value: any): any
  • Parameters

    • key: string
    • value: any

    Returns any

coverImageUrlFormat

  • coverImageUrlFormat(format?: null | string, query?: UrlQuery): null | string
  • Parameters

    • Optional format: null | string
    • Optional query: UrlQuery

    Returns null | string

createAsset

  • Parameters

    • options: CreateOauth2ApplicationAsset

    Returns Promise<Oauth2ApplicationAsset>

createStoreAsset

  • Parameters

    • options: CreateStoreApplicationAsset

    Returns Promise<StoreApplicationAsset>

deleteAsset

  • deleteAsset(assetId: string): Promise<any>
  • Parameters

    • assetId: string

    Returns Promise<any>

deleteStoreAsset

  • deleteStoreAsset(assetId: string): Promise<any>
  • Parameters

    • assetId: string

    Returns Promise<any>

difference

  • difference(key: string, value: any): [boolean, any]
  • Parameters

    • key: string
    • value: any

    Returns [boolean, any]

differences

fetchAssets

  • Returns Promise<BaseCollection<string, Oauth2ApplicationAsset>>

fetchNews

  • Returns Promise<BaseCollection<string, ApplicationNews>>

fetchStoreAssets

  • Returns Promise<BaseCollection<string, StoreApplicationAsset>>

iconUrlFormat

  • iconUrlFormat(format?: null | string, query?: UrlQuery): null | string
  • Parameters

    • Optional format: null | string
    • Optional query: UrlQuery

    Returns null | string

joinGuild

  • joinGuild(options?: JoinGuild): Promise<any>
  • Parameters

    • Default value options: JoinGuild = {}

    Returns Promise<any>

merge

mergeValue

  • mergeValue(key: string, value: any): void
  • Parameters

    • key: string
    • value: any

    Returns void

oauth2UrlFormat

  • oauth2UrlFormat(options?: UrlQuery): string
  • Parameters

    Returns string

toJSON

  • toJSON(): object
  • Returns object

Generated using TypeDoc