Skip to content

Commit 1e7351f

Browse files
committed
rework backend
1 parent c3c46f1 commit 1e7351f

File tree

10 files changed

+321
-247
lines changed

10 files changed

+321
-247
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88
id 'signing'
99
}
1010

11-
def baseVersion = "4.0.0"
11+
def baseVersion = "4.0.1"
1212
def isSnapshot = false
1313

1414
version = (isSnapshot) ? baseVersion + '-SNAPSHOT' : baseVersion

src/main/java/com/readonlydev/api/ClientInterface.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import com.readonlydev.command.Command;
3434
import com.readonlydev.command.Command.Category;
3535
import com.readonlydev.command.CommandListener;
36+
import com.readonlydev.command.client.ServerCommands;
3637
import com.readonlydev.command.ctx.ContextMenu;
3738
import com.readonlydev.command.slash.SlashCommand;
3839
import com.readonlydev.settings.GuildSettingsManager;
@@ -206,7 +207,7 @@ default void addCommands(Command... commands)
206207
* @throws java.lang.IllegalArgumentException
207208
* If the SlashCommand provided has a name or alias that has already been registered
208209
*/
209-
void addSlashCommand(SlashCommand command);
210+
void indexSlashCommand(SlashCommand command);
210211

211212
/**
212213
* Adds a single {@link com.readonlydev.command.slash.SlashCommand SlashCommand} to this Client's registered
@@ -237,7 +238,7 @@ default void addCommands(Command... commands)
237238
* @throws java.lang.IllegalArgumentException
238239
* If the Command provided has a name or alias that has already been registered to an index
239240
*/
240-
void addSlashCommand(SlashCommand command, int index);
241+
void indexSlashCommand(SlashCommand command, int index);
241242

242243
/**
243244
* Adds a single {@link ContextMenu} to this CommandClient's registered Context Menus.
@@ -312,13 +313,15 @@ default void addCommands(Command... commands)
312313
*/
313314
List<Command> getCommands();
314315

316+
List<ServerCommands> getServerCommands();
317+
315318
/**
316319
* Returns the list of registered {@link com.readonlydev.command.slash.SlashCommand SlashCommand}s during this
317320
* session.
318321
*
319322
* @return A never-null List of Slash Commands registered during this session
320323
*/
321-
List<SlashCommand> getSlashCommands();
324+
List<SlashCommand> getGlobalSlashCommands();
322325

323326
/**
324327
* Returns the list of registered {@link ContextMenu}s during this session.

0 commit comments

Comments
 (0)