fix(defaultActivity): 🐛 fix "description" and "timestamp" is not allowed errors

Signed-off-by: Andrei Jiroh Eugenio Halili <ajhalili2006@gmail.com>
This commit is contained in:
Andrei Jiroh Halili 2022-03-13 15:06:31 +00:00
parent 288d0ab809
commit fdcb58af13
2 changed files with 5 additions and 3 deletions

View File

@ -6,6 +6,7 @@
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"conventionalCommits.scopes": [
"global"
"global",
"defaultActivity"
]
}

View File

@ -1,5 +1,5 @@
let defaultActivity = {
description: "Event starts soon",
details: "Event starts soon",
assets: {
large_image: "mcc-twitter",
large_text: "MC Championship",
@ -16,7 +16,8 @@ let defaultActivity = {
"url": "https://gitlab.com/RecapTime/mcc-discord-rpc"
}
],
timestamp: {
timestamps: {
// set start time to when it's started
start: Date.now(),
// TODO: Update the end time, assuming that @TubboLive leaks it again.
end: 1651032000000 // MCC20 in UTC time