replace getHTML with renderHTML for ChatMessage
This commit is contained in:
parent
21ac6bf9fa
commit
c7e748e382
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user