From 1d2ae0cfa6395278c05ab5e387f7cb9415664c5c Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Sun, 18 Apr 2021 20:31:11 +0200 Subject: [PATCH] Create discovery_category.ts --- src/types/discovery/discovery_category.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/types/discovery/discovery_category.ts diff --git a/src/types/discovery/discovery_category.ts b/src/types/discovery/discovery_category.ts new file mode 100644 index 000000000..64701227b --- /dev/null +++ b/src/types/discovery/discovery_category.ts @@ -0,0 +1,16 @@ +import { SnakeCasedPropertiesDeep } from "../util.ts"; +import { DiscoveryName } from "./discovery_name.ts"; + +export interface DiscoveryCategory { + /** Numeric id of the category */ + id: number; + /** The name of this category, in mutliple languages */ + name: DiscoveryName; + /** Whether this category can be set as a guild's primary category */ + isPrimary: boolean; +} + +//TODO: add docs link +export type DiscordDiscoveryCategory = SnakeCasedPropertiesDeep< + DiscoveryCategory +>;