-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show account on discord rich presence (#2255)
* add functionality for grabbing userid * Create UserInfoResponse.cs * add user pfp small image thingy * add missing semicolons * get rid of semicolons * debugging (remove later) * make properties nullable * forgot to put dollar sign before interpolated string * make properties that cant be nullable not nullable * more debugging * remove thing * remove other thing * remove thing (again) (again) * remove thing (again) (again) (again) * add space between username and displayname to make it more visually pleasing * matt review changes (better code readability) * add strings for show account on profile * add AccountShownOnProfile setting * add DiscordActivityJoinEnabled to integrations viewmodel * fix accidentally swapping 2 variables * refrence correct variables * refrence correct variables (again) * add showaccountonprofile strings * add option to integrations page * add missing < that somehow got lost * make that its own option * dont invert that value * dont invert that (again) * Update IntegrationsViewModel.cs * fix grammatical issue in string * move else to new line * fix merge conflicts * move gameJoinLoadTime check * matt review changes * handle if parsing userid fails --------- Co-authored-by: pizzaboxer <[email protected]>
- Loading branch information
1 parent
0acf1ee
commit 55f5ef4
Showing
9 changed files
with
126 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
namespace Bloxstrap.Models.RobloxApi | ||
{ | ||
/// <summary> | ||
/// Roblox.Web.Responses.Users.UserInfoResponse | ||
/// </summary> | ||
public class UserInfoResponse | ||
{ | ||
[JsonPropertyName("description")] | ||
public string ProfileDescription { get; set; } = null!; | ||
|
||
[JsonPropertyName("created")] | ||
public string JoinDate { get; set; } = null!; | ||
|
||
[JsonPropertyName("isBanned")] | ||
public bool IsBanned { get; set; } | ||
|
||
[JsonPropertyName("hasVerifiedBadge")] | ||
public bool HasVerifiedBadge { get; set; } | ||
|
||
[JsonPropertyName("name")] | ||
public string Username { get; set; } = null!; | ||
|
||
[JsonPropertyName("displayName")] | ||
public string DisplayName { get; set; } = null!; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters