@vector-im/matrix-bot-sdk
Version:
TypeScript/JavaScript SDK for Matrix bots and appservices
29 lines (28 loc) • 720 B
TypeScript
import { StateEvent } from "./RoomEvent";
import { DimensionalFileInfo } from "./MessageEvent";
/**
* The content definition for m.room.avatar events
* @category Matrix event contents
* @see RoomAvatarEvent
*/
export interface RoomAvatarEventContent {
/**
* The URL to the image for the avatar of the room.
*/
url: string;
/**
* Optional information about the avatar.
*/
info?: DimensionalFileInfo;
}
/**
* Represents an m.room.avatar state event
* @category Matrix events
*/
export declare class RoomAvatarEvent extends StateEvent<RoomAvatarEventContent> {
constructor(event: any);
/**
* The URL for the avatar of the room.
*/
get avatarUrl(): string;
}