From 34e4521efa54e6c9a8770d51406dc207f472d996 Mon Sep 17 00:00:00 2001 From: WorstAquaPlayer Date: Sat, 27 Feb 2021 16:58:07 -0300 Subject: [PATCH] Added changePresence arguments --- source/Discord.hx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/Discord.hx b/source/Discord.hx index b7f5e711b..668ea85e6 100644 --- a/source/Discord.hx +++ b/source/Discord.hx @@ -57,13 +57,16 @@ class DiscordClient trace("Discord Client initialized"); } - public static function changePresence(details:String, state:Null) + public static function changePresence(details:String, state:Null, ?smallImageKey : String, ?startTimestamp: Int, ?endTimestamp: Int) { DiscordRpc.presence({ details: details, state: state, largeImageKey: 'icon', - largeImageText: "Friday Night Funkin'" + largeImageText: "Friday Night Funkin'", + smallImageKey : smallImageKey, + startTimestamp : startTimestamp, + endTimestamp : endTimestamp }); } }