Skip to content

Commit b72d0c2

Browse files
removed params
1 parent 36b19ad commit b72d0c2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/main/java/net/javadiscord/javabot/systems/staff_commands/tags/CustomTagManager.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,22 +88,20 @@ public CustomTagManager(@NotNull JDA jda, @NotNull DataSource dataSource) {
8888
*/
8989
public static @NotNull RestAction<?> handleCustomTag(@NotNull SlashCommandInteractionEvent event, @NotNull CustomTag tag) {
9090
Set<RestAction<?>> actions = new HashSet<>();
91-
boolean reply = tag.isReply();
92-
boolean embed = tag.isEmbed();
93-
if (embed) {
94-
if (reply) {
91+
if (tag.isEmbed()) {
92+
if (tag.isReply()) {
9593
actions.add(event.getHook().sendMessageEmbeds(tag.toEmbed()));
9694
} else {
9795
actions.add(event.getChannel().sendMessageEmbeds(tag.toEmbed()));
9896
}
9997
} else {
100-
if (reply) {
98+
if (tag.isReply()) {
10199
actions.add(event.getHook().sendMessage(tag.getResponse()).allowedMentions(List.of()));
102100
} else {
103101
actions.add(event.getChannel().sendMessage(tag.getResponse()).allowedMentions(List.of()));
104102
}
105103
}
106-
if (!reply) {
104+
if (!tag.isReply()) {
107105
actions.add(event.reply("Done!").setEphemeral(true));
108106
}
109107
return RestAction.allOf(actions);

0 commit comments

Comments
 (0)