Skip to content

Commit db709c9

Browse files
committed
Update code comment about mentions
1 parent 129c477 commit db709c9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/oakbot/discord/DiscordBot.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ void onMessageReceived(MessageReceivedEvent event) {
109109
var stream = listeners.stream();
110110

111111
/*
112-
* Note: If a message only contains 1 word after the mention, it is not
113-
* considered a mention for some reason
112+
* Note: When a user is typing out a Discord message, if they manually
113+
* type out the mention instead of accepting Discord's auto-complete
114+
* suggestion, then the mention is not picked up by this code.
114115
*/
115116
var botMentioned = event.getMessage().getMentions().getUsers().contains(selfUser);
116117
if (!botMentioned) {

0 commit comments

Comments
 (0)