Package fr.formiko.usuel
Class DiscordIntegration
java.lang.Object
fr.formiko.usuel.DiscordIntegration
A discord intergration to have rich presence on discord app.
- Author:
- Hydrolien
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static de.jcm.discordgamesdk.activity.Activityprivate static de.jcm.discordgamesdk.Coreprivate static booleanprivate static de.jcm.discordgamesdk.CreateParams -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidMain function to launch the discord rich presence.static FileDowload library depending of the OS.static voidsetNeedToUpdateActivity(boolean b)private static void
-
Field Details
-
activity
private static de.jcm.discordgamesdk.activity.Activity activity -
core
private static de.jcm.discordgamesdk.Core core -
params
private static de.jcm.discordgamesdk.CreateParams params -
needToUpdateActivity
private static boolean needToUpdateActivity
-
-
Constructor Details
-
DiscordIntegration
public DiscordIntegration()
-
-
Method Details
-
setNeedToUpdateActivity
public static void setNeedToUpdateActivity(boolean b) -
discordRPC
public static void discordRPC()Main function to launch the discord rich presence. -
updateActivity
private static void updateActivity() -
downloadDiscordLibrary
Dowload library depending of the OS.- Throws:
IOException
-