add schemas for stream gateway messages
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
export interface StreamCreateSchema {
|
||||
type: "guild" | "call";
|
||||
channel_id: string;
|
||||
guild_id?: string;
|
||||
preferred_region?: string;
|
||||
}
|
||||
|
||||
export const StreamCreateSchema = {
|
||||
type: String,
|
||||
channel_id: String,
|
||||
$guild_id: String,
|
||||
$preferred_region: String,
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
export interface StreamDeleteSchema {
|
||||
stream_key: string;
|
||||
}
|
||||
|
||||
export const StreamDeleteSchema = {
|
||||
stream_key: String,
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
export interface StreamWatchSchema {
|
||||
stream_key: string;
|
||||
}
|
||||
|
||||
export const StreamWatchSchema = {
|
||||
stream_key: String,
|
||||
};
|
||||
@@ -68,6 +68,9 @@ export * from "./responses";
|
||||
export * from "./RoleModifySchema";
|
||||
export * from "./RolePositionUpdateSchema";
|
||||
export * from "./SelectProtocolSchema";
|
||||
export * from "./StreamCreateSchema";
|
||||
export * from "./StreamDeleteSchema";
|
||||
export * from "./StreamWatchSchema";
|
||||
export * from "./TeamCreateSchema";
|
||||
export * from "./TemplateCreateSchema";
|
||||
export * from "./TemplateModifySchema";
|
||||
|
||||
Reference in New Issue
Block a user