mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 17:00:08 +00:00
remove Discord* types from discovery
This commit is contained in:
@@ -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
|
||||
>;
|
||||
|
||||
@@ -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
|
||||
>;
|
||||
|
||||
@@ -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
|
||||
>;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
>;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user