Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public Ability saysHelloWorld() {
return Ability.builder()
.name("hello") // Name and command (/hello)
.info("Says hello world!") // Necessary if you want it to be reported via /commands
.privacy(PUBLIC) // Choose from Privacy Class (Public, Admin, Creator)
.locality(ALL) // Choose from Locality enum Class (User, Group, PUBLIC)
.privacy(PUBLIC) // Choose from Privacy enumm Class (PUBLIC, GROUP_ADMIN, ADMIN, CREATOR)
.locality(ALL) // Choose from Locality enum Class (USER, GROUP, ALL)
.input(0) // Arguments required for command (0 for ignore)
.action(ctx -> {
/*
Expand Down Expand Up @@ -68,4 +68,4 @@ public void canSayHelloWorld() {
// We verify that the sender was called only ONCE and sent Hello World to CHAT_ID
Mockito.verify(sender, times(1)).send("Hello World!", CHAT_ID);
}
```
```