diff --git a/src/matrixeventprocessor.ts b/src/matrixeventprocessor.ts index 85b97e72a07650ec7477d804a0d0c8c1e11b843a..e60bfe0d85a6ee680738ab9d897109fddd69b279 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); }