com.github.psnrigner.DiscordEventHandler Maven / Gradle / Ivy
package com.github.psnrigner;
/**
* Discord Event Handler class
*/
public interface DiscordEventHandler
{
/**
* Called when the connection is ready
*/
void ready();
/**
* Called when the connection is being disconnected
*
* @param errorCode Error code
* @param message Error message
*/
void disconnected(ErrorCode errorCode, String message);
/**
* Called when an error occurs on the connection
*
* @param errorCode Error code
* @param message Error message
*/
void errored(ErrorCode errorCode, String message);
/**
* Called when joining a game
*
* @param joinSecret Join secret
*/
void joinGame(String joinSecret);
/**
* Called when spectating a game
*
* @param spectateSecret Spectate secret
*/
void spectateGame(String spectateSecret);
/**
* Called when requesting to join a game
*
* @param joinRequest Join secret
*/
void joinRequest(DiscordJoinRequest joinRequest);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy