feat(contexts): add Channels and Guilds
This commit is contained in:
@ -1,9 +1,7 @@
|
||||
import { Type } from '@sinclair/typebox'
|
||||
import { Type, Static } from '@sinclair/typebox'
|
||||
|
||||
import { date, id } from './utils'
|
||||
|
||||
export const types = [Type.Literal('text')]
|
||||
|
||||
export const channelSchema = {
|
||||
id,
|
||||
name: Type.String({ minLength: 1, maxLength: 20 }),
|
||||
@ -11,3 +9,5 @@ export const channelSchema = {
|
||||
updatedAt: date.updatedAt,
|
||||
guildId: id
|
||||
}
|
||||
const channelObjectSchema = Type.Object(channelSchema)
|
||||
export type Channel = Static<typeof channelObjectSchema>
|
||||
|
Reference in New Issue
Block a user