mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
invites: CreateInvite, GetInvite, UseInviteAtomic, RevokeInvite, ListInvites. attachments: CreateAttachment, GetAttachmentByID, GetAttachmentWithChannel, DeleteOrphanedAttachments. Added ptrI64toI / ptrItoI64 helpers for the *int64<->*int narrowing (invite max_uses, attachment width/height). LinkAttachmentsToMessage and GetAttachmentsByMessageIDs keep raw SQL (variable-length IN() lists sqlc can't express). Behavior and signatures unchanged. Verified: go build ./...; go test ./db (Invite, Attachment). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UA17KPvqGBX3XbXYnMf1rA