|
33 | 33 | import com.readonlydev.command.Command; |
34 | 34 | import com.readonlydev.command.Command.Category; |
35 | 35 | import com.readonlydev.command.CommandListener; |
| 36 | +import com.readonlydev.command.client.ServerCommands; |
36 | 37 | import com.readonlydev.command.ctx.ContextMenu; |
37 | 38 | import com.readonlydev.command.slash.SlashCommand; |
38 | 39 | import com.readonlydev.settings.GuildSettingsManager; |
@@ -206,7 +207,7 @@ default void addCommands(Command... commands) |
206 | 207 | * @throws java.lang.IllegalArgumentException |
207 | 208 | * If the SlashCommand provided has a name or alias that has already been registered |
208 | 209 | */ |
209 | | - void addSlashCommand(SlashCommand command); |
| 210 | + void indexSlashCommand(SlashCommand command); |
210 | 211 |
|
211 | 212 | /** |
212 | 213 | * Adds a single {@link com.readonlydev.command.slash.SlashCommand SlashCommand} to this Client's registered |
@@ -237,7 +238,7 @@ default void addCommands(Command... commands) |
237 | 238 | * @throws java.lang.IllegalArgumentException |
238 | 239 | * If the Command provided has a name or alias that has already been registered to an index |
239 | 240 | */ |
240 | | - void addSlashCommand(SlashCommand command, int index); |
| 241 | + void indexSlashCommand(SlashCommand command, int index); |
241 | 242 |
|
242 | 243 | /** |
243 | 244 | * Adds a single {@link ContextMenu} to this CommandClient's registered Context Menus. |
@@ -312,13 +313,15 @@ default void addCommands(Command... commands) |
312 | 313 | */ |
313 | 314 | List<Command> getCommands(); |
314 | 315 |
|
| 316 | + List<ServerCommands> getServerCommands(); |
| 317 | + |
315 | 318 | /** |
316 | 319 | * Returns the list of registered {@link com.readonlydev.command.slash.SlashCommand SlashCommand}s during this |
317 | 320 | * session. |
318 | 321 | * |
319 | 322 | * @return A never-null List of Slash Commands registered during this session |
320 | 323 | */ |
321 | | - List<SlashCommand> getSlashCommands(); |
| 324 | + List<SlashCommand> getGlobalSlashCommands(); |
322 | 325 |
|
323 | 326 | /** |
324 | 327 | * Returns the list of registered {@link ContextMenu}s during this session. |
|
0 commit comments