@@ -29,16 +29,16 @@ public static boolean equals(SlashCommandData data, SlashCommandData command) {
29
29
if (data .getType () != command .getType ()) return false ;
30
30
if (!data .getName ().equals (command .getName ())) return false ;
31
31
if (!data .getDescription ().equals (command .getDescription ())) return false ;
32
- if (!command .getOptions ().stream ().allMatch (o -> data .getOptions ().stream ().anyMatch (op -> equals (o , op )))) {
32
+ if (!data .getOptions ().stream ().allMatch (o -> command .getOptions ().stream ().anyMatch (op -> equals (o , op )))) {
33
33
return false ;
34
34
}
35
- if (!command .getSubcommandGroups ().stream ().allMatch (o -> data .getSubcommandGroups ().stream ().anyMatch (op -> equals (o , op )))) {
35
+ if (!data .getSubcommandGroups ().stream ().allMatch (o -> command .getSubcommandGroups ().stream ().anyMatch (op -> equals (o , op )))) {
36
36
return false ;
37
37
}
38
- if (!command .getSubcommands ().stream ().allMatch (o -> data .getSubcommands ().stream ().anyMatch (op -> equals (o , op )))) {
38
+ if (!data .getSubcommands ().stream ().allMatch (o -> command .getSubcommands ().stream ().anyMatch (op -> equals (o , op )))) {
39
39
return false ;
40
40
}
41
- return command .getSubcommands ().stream ().allMatch (o -> data .getSubcommands ().stream ().anyMatch (op -> equals (o , op )));
41
+ return data .getSubcommands ().stream ().allMatch (o -> command .getSubcommands ().stream ().anyMatch (op -> equals (o , op )));
42
42
}
43
43
44
44
/**
@@ -95,7 +95,7 @@ public static boolean equals(OptionData data, OptionData option) {
95
95
if (!Objects .equals (data .getMaxValue (), option .getMaxValue ())) return false ;
96
96
if (!Objects .equals (data .getMinValue (), option .getMinValue ())) return false ;
97
97
if (data .isAutoComplete () != option .isAutoComplete ()) return false ;
98
- return data .isRequired () && option .isRequired ();
98
+ return data .isRequired () == option .isRequired ();
99
99
}
100
100
101
101
/**
0 commit comments