You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
event.reply("The server has not configured a valid 'Rules Agreed' rule, please contact server admins.")
161
-
.setEphemeral(true).queue();
159
+
.setEphemeral(true)
160
+
.queue();
162
161
return;
163
162
}
164
163
165
164
if (event.getButton().getId().equals("rules-accept-start")) {
166
-
if (event.getMember().getRoles().stream().anyMatch(it -> it.getIdLong() == role.getIdLong())) {
167
-
event.reply("You have already agreed to the rules!").setEphemeral(true).queue();
168
-
return;
169
-
}
170
165
event.reply("By clicking the button below, you accept that you have read the rules, you agree to them, and you will follow them in every interaction in the server.")
171
166
.addActionRow(Button.of(
172
167
ButtonStyle.SECONDARY, "rules-agreed", "\uD83D\uDCDA I agree to the rules"
0 commit comments