Options
All
  • Public
  • Public/Protected
  • All
Menu

discord.bio - v11.0.2

Index

Type aliases

DeepPartial<T>: { [ P in keyof T]?: DeepPartial<T[P]> }

Type parameters

  • T

HTTPRequestMethod: "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "CONNECT" | "OPTIONS" | "TRACE" | "PATCH"

HTTP request methods

RawUser: { avatar: string | null; discriminator: string; id: Snowflake; premiumType: null | 0 | 1 | 2; publicFlags: number; username: string }

Type declaration

  • avatar: string | null

    The avatar hash of the user.

  • discriminator: string

    The discriminator of the user.

  • id: Snowflake

    The user id of the user.

  • premiumType: null | 0 | 1 | 2

    The type of nitro the user has.

    • null = not revealed by the API
    • 0 = nothing
    • 1 = nitro classic
    • 2 = the nitro with boosts
  • publicFlags: number

    Public flags of the suer

  • username: string

    The username of the user.

searchOptions: { filter?: "all" | "search" | "slug-search" | string; page?: number | string; search?: string }

Options when searching for profiles

Type declaration

  • Optional filter?: "all" | "search" | "slug-search" | string

    Filter options:

    • all = search query is ignored
    • search = search for profile, different fields consdiered
    • slug-search = search for profile, only slug is considered

    Set this to slug-search for slug searching, else this will default to 'all' or 'search' based on whether a query is given.

  • Optional page?: number | string

    Page number of results to be viewed

  • Optional search?: string

    The search query.

Variables

bioOptionsDefaults: { enableCaching: boolean; rest: { base_url: string; cdn_url: string }; scrapper: { base_url: string } } = ...

Default options for Bio

Type declaration

  • enableCaching: boolean
  • rest: { base_url: string; cdn_url: string }
    • base_url: string
    • cdn_url: string
  • scrapper: { base_url: string }
    • base_url: string

Generated using TypeDoc