diff --git a/module/chat-utility.js b/module/chat-utility.js index 59269d81..1a51e194 100644 --- a/module/chat-utility.js +++ b/module/chat-utility.js @@ -23,19 +23,19 @@ export class ChatUtility { game.messages.get(data.messageId)?.delete(); } } - else { - game.socket.emit("system.foundryvtt-reve-de-dragon", { msg: "msg_delete_chat_message", data: data }); - } } + static removeMessages(data) { + game.socket.emit("system.foundryvtt-reve-de-dragon", { msg: "msg_delete_chat_message", data: data }); + } /* -------------------------------------------- */ static removeChatMessageContaining(part) { - ChatUtility.onRemoveMessages({ part: part }); + ChatUtility.removeMessages({ part: part }); } static removeChatMessageId(messageId) { - ChatUtility.onRemoveMessages({ messageId: messageId }); + ChatUtility.removeMessages({ messageId: messageId }); } /* -------------------------------------------- */