replace getHTML with renderHTML for ChatMessage

This commit is contained in:
Sven Balzer 2025-05-01 09:55:19 +02:00
parent 21ac6bf9fa
commit c7e748e382

View File

@ -142,9 +142,8 @@ class DSA41_ChatMessage extends ChatMessage {
return game.actors.get(this.speaker.actor); return game.actors.get(this.speaker.actor);
} }
async getHTML() { async renderHTML({ canDelete, canClose=false, ...rest }={}) {
const html = (await super.getHTML())[0]; const html = await super.renderHTML({ canDelete, canClose, ...rest });
if (!html) return;
const img = this.actor?.img ?? this.author.avatar; const img = this.actor?.img ?? this.author.avatar;
const name = this.alias; const name = this.alias;