diff options
Diffstat (limited to 'src/main/java/net/arikia/dev/drpc/callbacks/JoinGameCallback.java')
-rw-r--r-- | src/main/java/net/arikia/dev/drpc/callbacks/JoinGameCallback.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main/java/net/arikia/dev/drpc/callbacks/JoinGameCallback.java b/src/main/java/net/arikia/dev/drpc/callbacks/JoinGameCallback.java new file mode 100644 index 00000000..c4e865db --- /dev/null +++ b/src/main/java/net/arikia/dev/drpc/callbacks/JoinGameCallback.java @@ -0,0 +1,20 @@ +package net.arikia.dev.drpc.callbacks; + +import com.sun.jna.Callback; + +/** + * @author Nicolas "Vatuu" Adamoglou + * @version 1.5.1 + * <p> + * Interface to be implemented in classes that will be registered as "JoinGameCallback" Event Handler. + * @see net.arikia.dev.drpc.DiscordEventHandlers + **/ +public interface JoinGameCallback extends Callback { + + /** + * Method called when joining a game. + * + * @param joinSecret Unique String containing information needed to let the player join. + */ + void apply(String joinSecret); +} |