From ff80e754ff1e635bcfaa1e5d438284a8a4ce98de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Tue, 22 Nov 2022 20:42:47 +0100 Subject: [PATCH] Add comment --- .../wtf/beatrice/hidekobot/commands/message/ClearCommand.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/wtf/beatrice/hidekobot/commands/message/ClearCommand.java b/src/main/java/wtf/beatrice/hidekobot/commands/message/ClearCommand.java index af28097..51ef22d 100644 --- a/src/main/java/wtf/beatrice/hidekobot/commands/message/ClearCommand.java +++ b/src/main/java/wtf/beatrice/hidekobot/commands/message/ClearCommand.java @@ -67,6 +67,9 @@ public class ClearCommand implements MessageCommand // edit the message text and attach a button. Button dismiss = ClearChat.getDismissButton(); + // ^ todo: maybe the dismiss button should also delete the original message sent by the user? + // todo: but then, we need to differentiate between command type in the database, and store + // todo: that message's id too. botMessage = botMessage.editMessage(content).setActionRow(dismiss).complete(); // add the message to database.