Newer
Older
percord / src / schemas / api / messages / Attachments.ts
@Rory& Rory& on 18 Apr 1 KB Fix attachments
/*
	Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
	Copyright (C) 2026 Spacebar and Spacebar Contributors

	This program 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.

	This program 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 this program.  If not, see <https://www.gnu.org/licenses/>.
*/

export interface PublicAttachment {
    filename: string; // name of file attached
    size: number; // size of file in bytes
    height?: number; // height of file (if image)
    width?: number; // width of file (if image)
    content_type?: string;
    url: string;
    proxy_url: string;
}