Skip to content

Commit b5a6d98

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 50da83a + 0a18fb1 commit b5a6d98

File tree

4 files changed

+11
-29
lines changed

4 files changed

+11
-29
lines changed

.github/workflows/maven.yml

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

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#### NOTE: This project will contiue to be updated, and you can find all upcoming features in https://github.com/seailz/Java-Discord-Framework/issues/2
1+
#### NOTE: This project will contiue to be updated, and you can find all upcoming features in https://github.com/seailz/Java-Discord-Framework/issues/
22
#### I'm open to suggestions & prs! :)
33

44
# Java-Discord-Framework
@@ -16,7 +16,7 @@ Designed to make developing bots faster and simpler!
1616
<dependency>
1717
<groupId>com.github.ice-games</groupId>
1818
<artifactId>java-discord-framework</artifactId>
19-
<version>1.1.4</version>
19+
<version>1.2</version>
2020
</dependency>
2121
```
2222

@@ -120,3 +120,10 @@ public class ModalCommand extends ListenerAdapter {
120120

121121
}
122122
```
123+
124+
## Buttons
125+
```java
126+
ButtonManager.listen(Button.secondary("epic-button", "Don't you agree?"), event -> {
127+
event.reply("You clicked the epic button!").queue();
128+
});
129+
```

SECURITY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
| Version | Supported |
66
| ------- | ------------------ |
7+
| 1.2 | :white_check_mark: |
78
| 1.1 | :white_check_mark: |
89
| 1.0 | :white_check_mark: |
910

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void registerCommand(JDA jda, Command command) {
2727
} else {
2828
CommandCreateAction action = jda.upsertCommand(command.getName(), command.getDescription());
2929
command.getOptions().forEach(option -> {
30-
action.addOption(option.getType(), option.getName(), option.getDescription(), option.isRequired()).queue();
30+
action.addOption(option.getType(), option.getName(), option.getDescription(), option.isRequired());
3131
});
3232
action.queue();
3333
}

0 commit comments

Comments
 (0)