Title: DiscordMember#VoiceState is not marked as nullable, despite being allowed to be null. · Issue #2234 · DSharpPlus/DSharpPlus · GitHub
Open Graph Title: DiscordMember#VoiceState is not marked as nullable, despite being allowed to be null. · Issue #2234 · DSharpPlus/DSharpPlus
X Title: DiscordMember#VoiceState is not marked as nullable, despite being allowed to be null. · Issue #2234 · DSharpPlus/DSharpPlus
Description: As the title says, DiscordMember#VoiceState is not marked as nullable ? but it can be. DSharpPlus/DSharpPlus/Entities/Guild/DiscordMember.cs Line 158 in 865c42e => this.Discord.Guilds[this.guild_id].VoiceStates.TryGetValue(this.Id, out D...
Open Graph Description: As the title says, DiscordMember#VoiceState is not marked as nullable ? but it can be. DSharpPlus/DSharpPlus/Entities/Guild/DiscordMember.cs Line 158 in 865c42e => this.Discord.Guilds[this.guild_id...
X Description: As the title says, DiscordMember#VoiceState is not marked as nullable ? but it can be. DSharpPlus/DSharpPlus/Entities/Guild/DiscordMember.cs Line 158 in 865c42e => this.Discord.Guilds[this.guild...
Opengraph URL: https://github.com/DSharpPlus/DSharpPlus/issues/2234
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DiscordMember#VoiceState is not marked as nullable, despite being allowed to be null.","articleBody":"As the title says, `DiscordMember#VoiceState` is not marked as nullable `?` but it can be. \n\nhttps://github.com/DSharpPlus/DSharpPlus/blob/865c42e95be19a0071acaddb31322cce44b1dc66/DSharpPlus/Entities/Guild/DiscordMember.cs#L158\n\nSince it isn't shown as nullable I assumed that I could safely access VoiceState and that the actual Channel property safely to check if the member is connected somewhere, which resulted in a NullReferenceException.\n\nIt would be cool if it could be marked as nullable","author":{"url":"https://github.com/Stay1444","@type":"Person","name":"Stay1444"},"datePublished":"2025-01-25T21:09:54Z","url":"https://github.com/DSharpPlus/DSharpPlus/issues/2234"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0a5d5916-efc3-0bdf-0426-cb927e7b44c6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C734:103A59:4123B89:56797E7:6B03FC2D |
| html-safe-nonce | 0634aabcf7a42bbf1879fb45702a5b68f55fe25633456be4c52e45b260a646bf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzM0OjEwM0E1OTo0MTIzQjg5OjU2Nzk3RTc6NkIwM0ZDMkQiLCJ2aXNpdG9yX2lkIjoiNjE2NDE0OTI1ODQyNjc3NjYyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1446f5e17aa3ef5727fad0334b985cfe060e6d6a007fc6fd748795126eb95da1 |
| hovercard-subject-tag | issue:2811177479 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/DSharpPlus/DSharpPlus/2234/issue_layout |
| twitter:image | https://opengraph.githubassets.com/45dcc87ae76399fbab6166e11079be4c08915c076465175902ee6c412bf9908e/DSharpPlus/DSharpPlus/issues/2234 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/45dcc87ae76399fbab6166e11079be4c08915c076465175902ee6c412bf9908e/DSharpPlus/DSharpPlus/issues/2234 |
| og:image:alt | As the title says, DiscordMember#VoiceState is not marked as nullable ? but it can be. DSharpPlus/DSharpPlus/Entities/Guild/DiscordMember.cs Line 158 in 865c42e => this.Discord.Guilds[this.guild_id... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Stay1444 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/DSharpPlus/DSharpPlus git https://github.com/DSharpPlus/DSharpPlus.git |
| octolytics-dimension-user_id | 36208721 |
| octolytics-dimension-user_login | DSharpPlus |
| octolytics-dimension-repository_id | 67243489 |
| octolytics-dimension-repository_nwo | DSharpPlus/DSharpPlus |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 67243489 |
| octolytics-dimension-repository_network_root_nwo | DSharpPlus/DSharpPlus |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width