feat: add guilds and channels CRUD (#14)

This commit is contained in:
Divlo
2022-03-05 18:22:30 +01:00
committed by GitHub
parent 9f56a10305
commit 780788d682
50 changed files with 6459 additions and 9039 deletions

View File

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