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.tsdk": ".yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true, "typescript.enablePromptUseWorkspaceTsdk": true,
"conventionalCommits.scopes": [ "conventionalCommits.scopes": [
"global" "global",
"defaultActivity"
] ]
} }

View File

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