Compare commits

..

No commits in common. "495f16455274464003596fb876786047f145e7e3" and "b3990ff04f2761aff65a879799ffd39b717a98f6" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -72,6 +72,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.
Message finalMessage = event.getChannel().sendMessage(content).setActionRow(dismiss).complete();
// add the message to database.

View File

@ -57,9 +57,6 @@ public class MessageCommandListener extends ListenerAdapter
@Override
public void onMessageReceived(@NotNull MessageReceivedEvent event)
{
// check if a bot is sending this message, and ignore it
if(event.getAuthor().isBot()) return;
// warning: we are getting the RAW value of the message content, not the DISPLAY value!
String eventMessage = event.getMessage().getContentRaw();