René's URL Explorer Experiment


Title: Issues with partial entities. · Issue #583 · DSharpPlus/DSharpPlus · GitHub

Open Graph Title: Issues with partial entities. · Issue #583 · DSharpPlus/DSharpPlus

X Title: Issues with partial entities. · Issue #583 · DSharpPlus/DSharpPlus

Description: Summary While DSharpPlus makes things simple by using a single class for many operations, it also creates several challenges for users wanting to do more with a partial entity. Details An example of this was reported yesterday by box of ...

Open Graph Description: Summary While DSharpPlus makes things simple by using a single class for many operations, it also creates several challenges for users wanting to do more with a partial entity. Details An example o...

X Description: Summary While DSharpPlus makes things simple by using a single class for many operations, it also creates several challenges for users wanting to do more with a partial entity. Details An example o...

Opengraph URL: https://github.com/DSharpPlus/DSharpPlus/issues/583

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issues with partial entities.","articleBody":"# Summary\r\nWhile DSharpPlus makes things simple by using a single class for many operations, it also creates several challenges for users wanting to do more with a partial entity.\r\n\r\n# Details\r\nAn example of this was reported yesterday by `box of kittens (acw)#5184` on Discord. When calling `DiscordRestClient.GetGuildAsync()`, it returned a DiscordGuild object, and when trying to call  `GetMemberAsync()` on this guild, it threw a NullReferenceException. The reason was because the internal `_members` dictionary was null, as the API does not return a member list for a guild obtained through rest. Overall, because of these singular entities, users believe they can interact with rest entities like they can with the gateway, which is misleading.\r\n\r\nThis can also be applied to skeleton entities, or discord objects containing only an Id.\r\n\r\n# Steps to Reproduce\r\n\r\n1. Create a DiscordRestClient and call `GetGuildAsync()` with a valid Id.\r\n2. Try to call `GetMemberAsync()` on the returned guild.\r\n3. Observe that a null reference exception is thrown because the internal members cache is null.\r\n\r\n# Solutions\r\nThere are a couple of ways to solve this.\r\n\r\nThe first is to go through and place null checks on these methods or make sure these object's properties are initialized when used internally in the methods.\r\n\r\nThe second is to create multiple entities depending on what properties are serialized, similar to Discord.Net. The biggest example would probably be separating rest entities from gateway entities,    creating partial object classes as properties (as mentioned in #582), or just exposing the raw ids rather than skeleton objects if the full object cannot be found (as mentioned with MessageReferences in #472).","author":{"url":"https://github.com/sh30801","@type":"Person","name":"sh30801"},"datePublished":"2020-05-24T16:27:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/583/DSharpPlus/issues/583"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:10e96056-fb6a-54c9-bdb1-6c92f14051b0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA716:3E0034:4DB2CAA:6A124D3:698CDEA1
html-safe-nonce86ee45e783a5c53714e30906f6b5b16d367eb661eeb85826830c1596c1876436
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzE2OjNFMDAzNDo0REIyQ0FBOjZBMTI0RDM6Njk4Q0RFQTEiLCJ2aXNpdG9yX2lkIjoiNDE4ODM0NzM2MzE2NzYyNDg2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0133bc0b22aa47492185390fe63d487b1d9220ef91cf804517c099f4bb865e60
hovercard-subject-tagissue:623897789
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/DSharpPlus/DSharpPlus/583/issue_layout
twitter:imagehttps://opengraph.githubassets.com/babca2047fec9a6c7efabd57f7cc176a3d0fcc9e2091044535cf8cbc0548cbd0/DSharpPlus/DSharpPlus/issues/583
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/babca2047fec9a6c7efabd57f7cc176a3d0fcc9e2091044535cf8cbc0548cbd0/DSharpPlus/DSharpPlus/issues/583
og:image:altSummary While DSharpPlus makes things simple by using a single class for many operations, it also creates several challenges for users wanting to do more with a partial entity. Details An example o...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesh30801
hostnamegithub.com
expected-hostnamegithub.com
None640eeb7b6ff4d8d106235d228c0c286e82592d4d2403227b5b2b4fc5832297a4
turbo-cache-controlno-preview
go-importgithub.com/DSharpPlus/DSharpPlus git https://github.com/DSharpPlus/DSharpPlus.git
octolytics-dimension-user_id36208721
octolytics-dimension-user_loginDSharpPlus
octolytics-dimension-repository_id67243489
octolytics-dimension-repository_nwoDSharpPlus/DSharpPlus
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id67243489
octolytics-dimension-repository_network_root_nwoDSharpPlus/DSharpPlus
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3d444f0a47beeeac94cddbb51c91ab408befe8d4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/issues/583#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FDSharpPlus%2FDSharpPlus%2Fissues%2F583
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FDSharpPlus%2FDSharpPlus%2Fissues%2F583
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=DSharpPlus%2FDSharpPlus
Reloadhttps://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/issues/583
Reloadhttps://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/issues/583
Reloadhttps://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/issues/583
DSharpPlus https://patch-diff.githubusercontent.com/DSharpPlus
DSharpPlushttps://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus
Please reload this pagehttps://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/issues/583
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FDSharpPlus%2FDSharpPlus
Fork 318 https://patch-diff.githubusercontent.com/login?return_to=%2FDSharpPlus%2FDSharpPlus
Star 1.3k https://patch-diff.githubusercontent.com/login?return_to=%2FDSharpPlus%2FDSharpPlus
Code https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus
Issues 92 https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/issues
Pull requests 7 https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/pulls
Discussions https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/discussions
Actions https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/actions
Projects 0 https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/projects
Security 0 https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/security
Insights https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/pulse
Code https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus
Issues https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/issues
Pull requests https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/pulls
Discussions https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/discussions
Actions https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/actions
Projects https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/projects
Security https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/security
Insights https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/DSharpPlus/DSharpPlus/issues/583
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/DSharpPlus/DSharpPlus/issues/583
Plannedhttps://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/issues?q=type:"Planned"
Issues with partial entities.https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/issues/583#top
big-changehttps://github.com/DSharpPlus/DSharpPlus/issues?q=state%3Aopen%20label%3A%22big-change%22
corehttps://github.com/DSharpPlus/DSharpPlus/issues?q=state%3Aopen%20label%3A%22core%22
v5.0https://github.com/DSharpPlus/DSharpPlus/milestone/10
https://github.com/sh30801
https://github.com/sh30801
sh30801https://github.com/sh30801
on May 24, 2020https://github.com/DSharpPlus/DSharpPlus/issues/583#issue-623897789
#582https://github.com/DSharpPlus/DSharpPlus/pull/582
#472https://github.com/DSharpPlus/DSharpPlus/pull/472
big-changehttps://github.com/DSharpPlus/DSharpPlus/issues?q=state%3Aopen%20label%3A%22big-change%22
corehttps://github.com/DSharpPlus/DSharpPlus/issues?q=state%3Aopen%20label%3A%22core%22
Plannedhttps://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/issues?q=type:"Planned"
v5.0No due datehttps://github.com/DSharpPlus/DSharpPlus/milestone/10
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.