/*
* Copyright (C) 2026 Fluxer Contributors
*
* This file is part of Fluxer.
*
* Fluxer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Fluxer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Fluxer. If not, see .
*/
import type {MessageRow} from '~/database/CassandraTypes';
import type {ChannelID, MessageID, RoleID, UserID, WebhookID} from '../BrandedTypes';
import {Attachment} from './Attachment';
import {CallInfo} from './CallInfo';
import {Embed} from './Embed';
import {MessageRef} from './MessageRef';
import {MessageSnapshot} from './MessageSnapshot';
import {StickerItem} from './StickerItem';
export class Message {
readonly channelId: ChannelID;
readonly bucket: number;
readonly id: MessageID;
readonly authorId: UserID | null;
readonly type: number;
readonly webhookId: WebhookID | null;
readonly webhookName: string | null;
readonly webhookAvatarHash: string | null;
readonly content: string | null;
readonly editedTimestamp: Date | null;
readonly pinnedTimestamp: Date | null;
readonly flags: number;
readonly mentionEveryone: boolean;
readonly mentionedUserIds: Set;
readonly mentionedRoleIds: Set;
readonly mentionedChannelIds: Set;
readonly attachments: Array;
readonly embeds: Array