We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8226111 commit d9a3d82Copy full SHA for d9a3d82
src/main/java/net/javadiscord/javabot/listener/VotingRegulationListener.java
@@ -28,10 +28,10 @@ public void onMessageReactionAdd(MessageReactionAddEvent event) {
28
29
private boolean doesAuthorMatch(long userId, Message msg) {
30
long suggestionChannelId = botConfig.get(msg.getGuild()).getModerationConfig().getSuggestionChannelId();
31
- return msg.getAuthor().getIdLong()==userId||
+ return msg.getAuthor().getIdLong() == userId||
32
msg.getChannel().getIdLong() == suggestionChannelId &&
33
!msg.getEmbeds().isEmpty() &&
34
- msg.getEmbeds().get(0).getFooter()!=null &&
+ msg.getEmbeds().get(0).getFooter() != null &&
35
String.valueOf(userId).equals(msg.getEmbeds().get(0).getFooter().getText());
36
}
37
0 commit comments