feat: add guilds and channels CRUD (#14)
This commit is contained in:
@ -11,3 +11,14 @@ export const channelSchema = {
|
||||
}
|
||||
const channelObjectSchema = Type.Object(channelSchema)
|
||||
export type Channel = Static<typeof channelObjectSchema>
|
||||
|
||||
export const channelWithDefaultChannelIdSchema = {
|
||||
...channelSchema,
|
||||
defaultChannelId: channelSchema.id
|
||||
}
|
||||
export const channelWithDefaultChannelObjectSchema = Type.Object(
|
||||
channelWithDefaultChannelIdSchema
|
||||
)
|
||||
export type ChannelWithDefaultChannelId = Static<
|
||||
typeof channelWithDefaultChannelObjectSchema
|
||||
>
|
||||
|
Reference in New Issue
Block a user