aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/arikia/dev/drpc/callbacks/ReadyCallback.java
blob: 292ce2fd4c910128db975e3692002f029031fab8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 "ReadyCallback" Event Handler.
 * @see net.arikia.dev.drpc.DiscordEventHandlers
 **/
public interface ReadyCallback extends Callback {

	/**
	 * Method called when the connection to Discord has been established.
	 *
	 * @param user Object containing all required information about the user executing the app.
	 * @see DiscordUser
	 **/
	void apply(DiscordUser user);
}