diff --git a/src/matrixeventprocessor.ts b/src/matrixeventprocessor.ts index 67638f08aedca64782062e65f8e503dca2cda0f2..0df7733ef44d4930f4a7ead996138b4414a49235 100644 --- a/src/matrixeventprocessor.ts +++ b/src/matrixeventprocessor.ts @@ -299,7 +299,7 @@ export class MatrixEventProcessor { } let body: string = ""; - if (event.type !== "m.sticker") { + if (!this.HasAttachment(event)) { // ignore body when there's an attachment const content = event.content!["m.new_content"] ? event.content!["m.new_content"] : event.content; body = await this.matrixMsgProcessor.FormatMessage(content as IMatrixMessage, channel.guild, params); }