Skip to content

Commit 95a0788

Browse files
committed
add discord set activity
1 parent 1858aaa commit 95a0788

File tree

8 files changed

+284
-147
lines changed

8 files changed

+284
-147
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ The main files you may want to look at would be instance.js
133133
| Check achievement activation state | Check the activation state of a steam achievement | Achievement *(string)* <br> |
134134
| Set rich presence (synchronous) | Set the rich presence of the local player. (synchronous) | Key *(string)* <br>Value *(string)* <br>Tag *(string)* <br> |
135135
| Set rich presence | Set the rich presence of the local player. | Key *(string)* <br>Value *(string)* <br> |
136+
| Set activity (synchronous) | Set the discord activity (aka Rich presence). (synchronous) | Details *(string)* <br>State *(string)* <br>Start Timestamp *(string)* <br>Large image key *(string)* <br>Large image text *(string)* <br>Small image key *(string)* <br>Small image text *(string)* <br>Tag *(string)* <br> |
137+
| Set activity | Set the discord activity (aka Rich presence). | Details *(string)* <br>State *(string)* <br>Start Timestamp *(string)* <br>Large image key *(string)* <br>Large image text *(string)* <br>Small image key *(string)* <br>Small image text *(string)* <br> |
136138

137139

138140
---
@@ -307,6 +309,10 @@ The main files you may want to look at would be instance.js
307309
| On any "SetRichPresence" success | Trigger when any of the "SetRichPresence" are executed with success. | |
308310
| On "SetRichPresence" error | Trigger when the "SetRichPresence" failed to execute. | Tag *(string)* <br> |
309311
| On any "SetRichPresence" error | Trigger when any of the "SetRichPresence" failed to execute. | |
312+
| On "DiscordSetActivity" success | Trigger when the "DiscordSetActivity" is executed with success. | Tag *(string)* <br> |
313+
| On any "DiscordSetActivity" success | Trigger when any of the "DiscordSetActivity" are executed with success. | |
314+
| On "DiscordSetActivity" error | Trigger when the "DiscordSetActivity" failed to execute. | Tag *(string)* <br> |
315+
| On any "DiscordSetActivity" error | Trigger when any of the "DiscordSetActivity" failed to execute. | |
310316
| Is engine | Return true if the engine running the app is the one selected | Engine *(combo)* <br> |
311317
| Is full screen | Returns true if the window is in full screen mode. | State *(combo)* <br> |
312318
| Last checked path exists | Returns true if the last checked path exists. | |
@@ -400,6 +406,8 @@ The main files you may want to look at would be instance.js
400406
| CheckAchievementActivationStateResult | The result of the "CheckAchievementActivationState last call" | string | |
401407
| SetRichPresenceError | The error of the "SetRichPresence last call" | string | |
402408
| SetRichPresenceResult | The result of the "SetRichPresence last call" | string | |
409+
| DiscordSetActivityError | The error of the "DiscordSetActivity last call" | string | |
410+
| DiscordSetActivityResult | The result of the "DiscordSetActivity last call" | string | |
403411
| ArgumentAt | Get the argument at the given index. | string | Index *(number)* <br> |
404412
| ArgumentCount | Get the number of arguments. | number | |
405413
| AppFolderURL | Return the URL of the folder of the current app. | string | |

examples/example.c3p

1.61 KB
Binary file not shown.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
3-
"@pipelab/core": "1.4.7",
3+
"@pipelab/core": "1.4.9",
44
"adm-zip": "0.5.16",
55
"c3addon": "1.0.9",
66
"chokidar": "4.0.3",
@@ -31,9 +31,9 @@
3131
"homepage": "https://github.com/CynToolkit/construct-plugin#readme",
3232
"devDependencies": {
3333
"c3ide2-types": "1.0.1",
34-
"electron": "34.3.0",
35-
"lefthook": "1.11.2",
34+
"electron": "35.0.3",
35+
"lefthook": "1.11.3",
3636
"steamworks.js": "0.4.0",
37-
"typescript": "5.7.3"
37+
"typescript": "5.8.2"
3838
}
3939
}

0 commit comments

Comments
 (0)