summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-26 22:38:15 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-26 22:38:15 +0200
commit00b39155aac54171146801b3795aea6a69866490 (patch)
tree827b93c895e8bbf03c4a60d98dd48e763b89888e
parent:sparkles: add MessageComponent (diff)
downloadserver-00b39155aac54171146801b3795aea6a69866490.tar.xz
:sparkles: add Application
-rw-r--r--src/models/Application.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/models/Application.ts b/src/models/Application.ts

index 4c519ff2..fae6e8db 100644 --- a/src/models/Application.ts +++ b/src/models/Application.ts
@@ -1,3 +1,26 @@ +import { Team } from "./Team"; + +export interface Application { + id: string; + name: string; + icon: string | null; + description: string; + rpc_origins: string[] | null; + bot_public: boolean; + bot_require_code_grant: boolean; + terms_of_service_url: string | null; + privacy_policy_url: string | null; + owner_id: string; + summary: string | null; + verify_key: string; + team: Team | null; + guild_id: string; // if this application is a game sold on Discord, this field will be the guild to which it has been linked + primary_sku_id: string | null; // if this application is a game sold on Discord, this field will be the id of the "Game SKU" that is created, if exists + slug: string | null; // if this application is a game sold on Discord, this field will be the URL slug that links to the store page + cover_image: string | null; // the application's default rich presence invite cover image hash + flags: number; // the application's public flags +} + export interface ApplicationCommand { id: string; application_id: string;