import type { APIGuildMember } from 'discord-api-types/v10' export type User = APIGuildMember export type Attachment = { id: string ownerType: 'ticket' | 'ticket_message' | 'bug' ownerId: number authorId: string | null fileName: string contentType: string size: number bucket: string key: string url: string uploadedAt: string } export type Ticket = { id: number anonymousId: string ticketNumber: number guildId: string channelId: string type: 'general' status: 'open' | 'archived' | 'closed' topic: string | null authorId: User openedBy: User addedUsers: string[] claimedBy: User | null claimedAt: string | null closedAt: string closedBy: User | 'reporter' | null closeReason: string | null privateReason: string | null thankedAt: string | null warnedAt: string | null createdAt: string attachments?: Attachment[] } export type Message = { id: number ticketId: number messageId: string | null authorId: string authorType: 'system' | 'staff' | 'reporter' content: string createdAt: string editedAt: string | null deletedAt: string | null author: User attachments?: Attachment[] mentions?: Record }