Create discovery_category.ts

This commit is contained in:
ITOH
2021-04-18 20:31:11 +02:00
parent 2aafb75e96
commit 1d2ae0cfa6

View File

@@ -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
>;