This repository was archived by the owner on Oct 23, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
src/main/java/club/minnced/discord/rpc Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 42
42
int8_t instance;
43
43
} DiscordRichPresence;
44
44
*/
45
+
45
46
/**
46
47
* Struct binding for a RichPresence
47
48
*/
@@ -65,6 +66,15 @@ public class DiscordRichPresence extends Structure
65
66
"instance"
66
67
));
67
68
69
+ public DiscordRichPresence (String encoding ) {
70
+ super ();
71
+ setStringEncoding (encoding );
72
+ }
73
+
74
+ public DiscordRichPresence () {
75
+ this ("UTF-8" );
76
+ }
77
+
68
78
/**
69
79
* The user's current party status.
70
80
* <br>Example: "Looking to Play", "Playing Solo", "In a Group"
Original file line number Diff line number Diff line change 27
27
typedef struct DiscordUser {
28
28
const char* userId;
29
29
const char* username;
30
+ const char* discriminator;
30
31
const char* avatar;
31
32
} DiscordUser;
32
33
*/
34
+
33
35
/**
34
36
* Struct binding for a discord join request.
35
37
*/
@@ -42,6 +44,15 @@ public class DiscordUser extends Structure
42
44
"avatar"
43
45
));
44
46
47
+ public DiscordUser (String encoding ) {
48
+ super ();
49
+ setStringEncoding (encoding );
50
+ }
51
+
52
+ public DiscordUser () {
53
+ this ("UTF-8" );
54
+ }
55
+
45
56
/**
46
57
* The userId for the user that requests to join
47
58
*/
You can’t perform that action at this time.
0 commit comments