Skip to content

Commit a9b5a81

Browse files
committed
Merge remote-tracking branch 'origin/main'
# Conflicts: # src/main/java/com/seailz/jdaframework/modals/listeners/ModalListener.java
2 parents 9028b11 + 5bb9f55 commit a9b5a81

File tree

8 files changed

+57
-19
lines changed

8 files changed

+57
-19
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Designed to make developing bots faster and simpler!
1414

1515
```xml
1616
<dependency>
17-
<groupId>com.github.seailz</groupId>
17+
<groupId>com.github.ice-games</groupId>
1818
<artifactId>java-discord-framework</artifactId>
19-
<version>v1.0</version>
19+
<version>1.1.3</version>
2020
</dependency>
2121
```
2222

SECURITY.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
| Version | Supported |
6+
| ------- | ------------------ |
7+
| 1.1 | :white_check_mark: |
8+
| 1.0 | :white_check_mark: |
9+
10+
*Please note if a version listed here is supported for security vulnerabilities, that does not mean that we will give general support on that version.*
11+
12+
## Reporting a Vulnerability
13+
14+
Please join our Discord, and send a private message to `Seailz#0001`, and we will fix the issue asap.
15+
https://discord.gg/pr9uNnzgvq

docs/com/seailz/test/listeners/TestListener.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ <h2 title="Class TestListener" class="title">Class TestListener</h2>
123123
<li>java.lang.Object</li>
124124
<li>
125125
<ul class="inheritance">
126-
<li>com.seailz.test.listeners.TestListener</li>
126+
<li>TestListener</li>
127127
</ul>
128128
</li>
129129
</ul>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<plugin>
2828
<groupId>org.apache.maven.plugins</groupId>
2929
<artifactId>maven-shade-plugin</artifactId>
30-
<version>3.2.4</version>
30+
<version>3.3.0</version>
3131
<executions>
3232
<execution>
3333
<phase>package</phase>

src/main/java/com/seailz/jdaframework/command/registry/CommandRegistry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public CommandRegistry() {
2121
}
2222

2323
public void registerCommand(JDA jda, Command command) {
24-
if (!commands.containsValue(command)) return;
24+
if (commands.containsValue(command)) return;
2525
if (command.getOptions().isEmpty()) {
2626
jda.upsertCommand(command.getName(), command.getDescription()).queue();
2727
} else {
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package com.seailz.test;
2+
3+
import com.seailz.jdaframework.DiscordBot;
4+
import net.dv8tion.jda.api.events.GenericEvent;
5+
import net.dv8tion.jda.api.hooks.EventListener;
6+
import org.jetbrains.annotations.NotNull;
7+
8+
import javax.security.auth.login.LoginException;
9+
10+
public class TestBot extends DiscordBot {
11+
12+
public static void main(String[] args) throws LoginException {
13+
new TestBot();
14+
}
15+
public TestBot() throws LoginException {
16+
super("token");
17+
build();
18+
19+
registerCommands(new TestCommand());
20+
}
21+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.seailz.test;
2+
3+
import com.seailz.jdaframework.command.Command;
4+
import com.seailz.jdaframework.command.annotation.CommandInfo;
5+
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;
6+
7+
@CommandInfo(
8+
name = "test",
9+
description = "Test command"
10+
)
11+
public class TestCommand extends Command {
12+
@Override
13+
public void onCommand(SlashCommandInteractionEvent e) {
14+
e.reply("hi").queue();
15+
}
16+
}

src/test/java/com/seailz/test/listeners/TestListener.java

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)