Skip to content

Commit bc136b2

Browse files
committed
fix nullables
1 parent fb963f2 commit bc136b2

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

docs/developer-tools/game-sdk.mdx

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -586,33 +586,33 @@ For more detailed information and documentation around the Rich Presence feature
586586

587587
#### Activity Struct
588588

589-
| name | type | description |
590-
|---------------|--------|-----------------------------------------------------|
591-
| applicationId | Int64 | your application id - this is a read-only field |
592-
| name | string | name of the application - this is a read-only field |
593-
| state | string | the player's current party status |
594-
| details | string | null | what the player is currently doing |
595-
| timestamps | [ActivityTimestamps](/docs/developer-tools/game-sdk#activitytimestamps-struct) | null | helps create elapsed/remaining timestamps on a player's profile |
596-
| assets | [ActivityAssets](/docs/developer-tools/game-sdk#activityassets-struct) | null | assets to display on the player's profile |
597-
| party | [ActivityParty](/docs/developer-tools/game-sdk#activityparty-struct) | null | information about the player's party |
598-
| secrets | [ActivitySecrets](/docs/developer-tools/game-sdk#activitysecrets-struct) | null | secret passwords for joining and spectating the player's game |
599-
| instance | bool | null | whether this activity is an instanced context, like a match |
589+
| name | type | description |
590+
|---------------|---------------------------------------------------------------------------------|-----------------------------------------------------------------|
591+
| applicationId | Int64 | your application id - this is a read-only field |
592+
| name | string | name of the application - this is a read-only field |
593+
| state | string | the player's current party status |
594+
| details? | ?string | what the player is currently doing |
595+
| timestamps? | ?[ActivityTimestamps](/docs/developer-tools/game-sdk/activitytimestamps-struct) | helps create elapsed/remaining timestamps on a player's profile |
596+
| assets? | ?[ActivityAssets](/docs/developer-tools/game-sdk/activityassets-struct) | assets to display on the player's profile |
597+
| party? | ?[ActivityParty](/docs/developer-tools/game-sdk/activityparty-struct) | information about the player's party |
598+
| secrets? | ?[ActivitySecrets](/docs/developer-tools/game-sdk/activitysecrets-struct) | secret passwords for joining and spectating the player's game |
599+
| instance? | ?bool | whether this activity is an instanced context, like a match |
600600

601601
#### ActivityTimestamps Struct
602602

603-
| name | type | description |
604-
|-------|--------------|--------------------------------------------------------|
605-
| start | Int64 | null | unix timestamp - send this to have an "elapsed" timer |
606-
| end | Int64 | null | unix timestamp - send this to have a "remaining" timer |
603+
| name | type | description |
604+
|--------|--------|--------------------------------------------------------|
605+
| start? | ?Int64 | unix timestamp - send this to have an "elapsed" timer |
606+
| end? | ?Int64 | unix timestamp - send this to have a "remaining" timer |
607607

608608
#### ActivityAssets Struct
609609

610-
| name | type | description |
611-
|------------|---------------|----------------------------------------------------------------------------------------------|
612-
| largeImage | string | null | see [Activity Asset Image](/docs/events/gateway-events#activity-object-activity-asset-image) |
613-
| largeText | string | null | hover text for the large image |
614-
| smallImage | string | null | see [Activity Asset Image](/docs/events/gateway-events#activity-object-activity-asset-image) |
615-
| smallText | string | null | hover text for the small image |
610+
| name | type | description |
611+
|-------------|---------|----------------------------------------------------------------------------------------------|
612+
| largeImage? | ?string | see [Activity Asset Image](/docs/events/gateway-events#activity-object-activity-asset-image) |
613+
| largeText? | ?string | hover text for the large image |
614+
| smallImage? | ?string | see [Activity Asset Image](/docs/events/gateway-events#activity-object-activity-asset-image) |
615+
| smallText? | ?string | hover text for the small image |
616616

617617
#### ActivityParty Struct
618618

@@ -630,11 +630,11 @@ For more detailed information and documentation around the Rich Presence feature
630630

631631
#### ActivitySecrets Struct
632632

633-
| name | type | description |
634-
|----------|---------------|----------------------------------------------|
635-
| match | string | null | unique hash for the given match context |
636-
| join | string | null | unique hash for chat invites and Ask to Join |
637-
| spectate | string | null | unique hash for Spectate button |
633+
| name | type | description |
634+
|-----------|---------|----------------------------------------------|
635+
| match? | ?string | unique hash for the given match context |
636+
| join? | ?string | unique hash for chat invites and Ask to Join |
637+
| spectate? | ?string | unique hash for Spectate button |
638638

639639
#### ActivityType Enum
640640

0 commit comments

Comments
 (0)