-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make NexusSynchronizer methods customizable
- Loading branch information
1 parent
158327e
commit f8942c4
Showing
5 changed files
with
215 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...java/pw/mihou/nexus/features/command/synchronizer/overwrites/NexusSynchronizeMethods.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package pw.mihou.nexus.features.command.synchronizer.overwrites; | ||
|
||
import org.javacord.api.DiscordApi; | ||
import org.javacord.api.interaction.ApplicationCommand; | ||
import org.javacord.api.interaction.SlashCommandBuilder; | ||
import pw.mihou.nexus.features.command.facade.NexusCommand; | ||
|
||
import java.util.List; | ||
import java.util.concurrent.CompletableFuture; | ||
|
||
public interface NexusSynchronizeMethods { | ||
|
||
CompletableFuture<Void> bulkOverwriteGlobal(DiscordApi shard, List<SlashCommandBuilder> slashCommands); | ||
|
||
void bulkOverwriteServer(DiscordApi shard, List<SlashCommandBuilder> slashCommands, | ||
long serverId, CompletableFuture<Void> future); | ||
|
||
void deleteForServer(DiscordApi shard, NexusCommand command, long serverId, CompletableFuture<Void> future); | ||
|
||
void updateForServer(DiscordApi shard, NexusCommand command, long serverId, CompletableFuture<Void> future); | ||
|
||
void createForServer(DiscordApi shard, NexusCommand command, long serverId, CompletableFuture<Void> future); | ||
|
||
} |
Oops, something went wrong.