aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/arikia/dev/drpc/callbacks/JoinRequestCallback.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/arikia/dev/drpc/callbacks/JoinRequestCallback.java')
-rw-r--r--src/main/java/net/arikia/dev/drpc/callbacks/JoinRequestCallback.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/java/net/arikia/dev/drpc/callbacks/JoinRequestCallback.java b/src/main/java/net/arikia/dev/drpc/callbacks/JoinRequestCallback.java
new file mode 100644
index 00000000..ddcc9614
--- /dev/null
+++ b/src/main/java/net/arikia/dev/drpc/callbacks/JoinRequestCallback.java
@@ -0,0 +1,22 @@
+package net.arikia.dev.drpc.callbacks;
+
+import com.sun.jna.Callback;
+import net.arikia.dev.drpc.DiscordUser;
+
+/**
+ * @author Nicolas "Vatuu" Adamoglou
+ * @version 1.5.1
+ * <p>
+ * Interface to be implemented in classes that will be registered as "JoinRequestCallback" Event Handler.
+ * @see net.arikia.dev.drpc.DiscordEventHandlers
+ **/
+public interface JoinRequestCallback extends Callback {
+
+ /**
+ * Method called when another player requests to join a game.
+ *
+ * @param request Object containing all required information about the user requesting to join.
+ * @see DiscordUser
+ */
+ void apply(DiscordUser request);
+}