mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-29 00:08:11 +00:00
Added changePresence arguments
This commit is contained in:
parent
1eb5ae69de
commit
3d74f869d3
|
@ -57,13 +57,16 @@ class DiscordClient
|
||||||
trace("Discord Client initialized");
|
trace("Discord Client initialized");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function changePresence(details:String, state:Null<String>)
|
public static function changePresence(details:String, state:Null<String>, ?smallImageKey : String, ?startTimestamp: Int, ?endTimestamp: Int)
|
||||||
{
|
{
|
||||||
DiscordRpc.presence({
|
DiscordRpc.presence({
|
||||||
details: details,
|
details: details,
|
||||||
state: state,
|
state: state,
|
||||||
largeImageKey: 'icon',
|
largeImageKey: 'icon',
|
||||||
largeImageText: "Friday Night Funkin'"
|
largeImageText: "Friday Night Funkin'",
|
||||||
|
smallImageKey : smallImageKey,
|
||||||
|
startTimestamp : startTimestamp,
|
||||||
|
endTimestamp : endTimestamp
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue