remove Discord* types from discovery

This commit is contained in:
ITOH
2021-04-30 19:21:07 +02:00
parent b1564bc57c
commit 20cd0e004c
6 changed files with 5 additions and 31 deletions

View File

@@ -1,12 +1,6 @@
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface AddGuildDiscoverySubcategory {
/** The guild Id of the subcategory was added to */
guildId: string;
/** The Id of the subcategory added */
categoryId: number;
}
export type DiscordAddGuildDiscoverySubcategory = SnakeCasedPropertiesDeep<
AddGuildDiscoverySubcategory
>;

View File

@@ -1,6 +1,6 @@
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { DiscoveryName } from "./discovery_name.ts";
//TODO: add docs link
export interface DiscoveryCategory {
/** Numeric id of the category */
id: number;
@@ -9,8 +9,3 @@ export interface DiscoveryCategory {
/** Whether this category can be set as a guild's primary category */
isPrimary: boolean;
}
//TODO: add docs link
export type DiscordDiscoveryCategory = SnakeCasedPropertiesDeep<
DiscoveryCategory
>;

View File

@@ -1,5 +1,4 @@
import { SnakeCasedPropertiesDeep } from "../util.ts";
// TODO: add docs link
export interface DiscoveryMetadata {
/** The guild Id */
guildId: string;
@@ -16,8 +15,3 @@ export interface DiscoveryMetadata {
/** Ids of up to 5 discovery subcategories set for this guild */
categoryIds: number[];
}
// TODO: add docs link
export type DiscordDiscoveryMetadata = SnakeCasedPropertiesDeep<
DiscoveryMetadata
>;

View File

@@ -1,8 +1,7 @@
//TODO: add docs link
export interface DiscoveryName {
/** The name in English */
default: string;
/** The name in other languages */
localizations?: Record<string, string>;
}
export type DiscordDiscoveryName = DiscoveryName;

View File

@@ -1,5 +1,4 @@
import { SnakeCasedPropertiesDeep } from "../util.ts";
// TODO: add docs link
export interface ModifyGuildDiscoveryMetadata {
/** The id of the primary discovery category. Default: 0 */
primaryCategoryId?: number | null;
@@ -8,7 +7,3 @@ export interface ModifyGuildDiscoveryMetadata {
/** Whether guild info is shown when custom emojis are clicked. Default: true */
emojiDiscoverabilityEnabled?: boolean | null;
}
export type DiscordModifyGuildDiscoveryMetadata = SnakeCasedPropertiesDeep<
ModifyGuildDiscoveryMetadata
>;

View File

@@ -1,8 +1,5 @@
// TODO: add docs link
export interface ValidateDiscoverySearchTermParams {
/** The search term to check */
term: string;
}
// TODO: add docs link
export type DiscordValidateDiscoverySearchTermParams =
ValidateDiscoverySearchTermParams;