How to use the detritus-client-rest.Endpoints.Routes function in detritus-client-rest

To help you get started, we’ve selected a few detritus-client-rest examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github detritusjs / client / src / constants.ts View on Github external
[Distributors.DISCORD]: (skuId: string, slug?: null | string) =>
    Endpoints.Routes.URL + `/store/skus/${skuId}` + ((slug) ? `/${slug}` : ''),
  [Distributors.EPIC]: (skuId: string) =>
github detritusjs / client / src / structures / application.ts View on Github external
get platformDiscordUrl(): null | string {
    if (this.primarySkuId) {
      return (
        Endpoints.Routes.URL +
        Endpoints.Routes.APPLICATION_STORE_LISTING_APPLICATION(this.primarySkuId, this.slug)
      );
    }
    return null;
  }
github detritusjs / client / src / structures / user.ts View on Github external
get jumpLink(): string {
    return Endpoints.Routes.URL + Endpoints.Routes.USER(this.id);
  }
github detritusjs / client / src / structures / application.ts View on Github external
get platformDiscordUrl(): null | string {
    if (this.primarySkuId) {
      return (
        Endpoints.Routes.URL +
        Endpoints.Routes.APPLICATION_STORE_LISTING_APPLICATION(this.primarySkuId, this.slug)
      );
    }
    return null;
  }

detritus-client-rest

A minimalistic TypeScript library to interact with all, or most, of Discord's rest endpoints

MIT
Latest version published 3 years ago

Package Health Score

42 / 100
Full package analysis