@mafiahub/types 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/framework/discord.d.ts +4 -1
- package/package.json +1 -1
package/framework/discord.d.ts
CHANGED
|
@@ -56,6 +56,9 @@ interface DiscordPresenceOptions {
|
|
|
56
56
|
* calls no-op (setters silently, commits return `false`) when Discord presence
|
|
57
57
|
* is disabled or unavailable.
|
|
58
58
|
*
|
|
59
|
+
* A game may keep its own presence and open only some fields to scripts;
|
|
60
|
+
* writes to the other fields are ignored.
|
|
61
|
+
*
|
|
59
62
|
* @example
|
|
60
63
|
* // Batch form — apply several fields and publish in one call:
|
|
61
64
|
* Discord.setPresence({
|
|
@@ -135,7 +138,7 @@ declare const Discord: {
|
|
|
135
138
|
update(): boolean;
|
|
136
139
|
|
|
137
140
|
/**
|
|
138
|
-
* Clear
|
|
141
|
+
* Clear what scripts published and reset the staged state.
|
|
139
142
|
* @returns `true` if dispatched, `false` if unavailable.
|
|
140
143
|
*/
|
|
141
144
|
clear(): boolean;
|