Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetGuildWebhooksAsync(UInt64 guild_id) throws NRO #1754

Closed
snnaakee opened this issue Feb 9, 2024 · 5 comments
Closed

GetGuildWebhooksAsync(UInt64 guild_id) throws NRO #1754

snnaakee opened this issue Feb 9, 2024 · 5 comments
Milestone

Comments

@snnaakee
Copy link

snnaakee commented Feb 9, 2024

Describe the bug
GetGuildWebhooksAsync(UInt64 guild_id) will throw NullReferenceException when the Discord Developer News channel is added to the guild.

To Reproduce

  1. Add the Discord Developer News channel to the same guild you're querying the webhooks
  2. Query webhooks for that same guild

Code
var webhooks = await guild.GetWebhooksAsync();

Logs
logs.txt

Deleting the webhook removes the exception:
image

@snnaakee snnaakee added the bug label Feb 9, 2024
@Plerx2493 Plerx2493 added the core label Feb 9, 2024
@Plerx2493 Plerx2493 added this to the v5.0 milestone Feb 9, 2024
@Plerx2493
Copy link
Member

What version do you use?

@snnaakee
Copy link
Author

snnaakee commented Feb 9, 2024

What version do you use?

DSharpPlus, version 4.4.6+3a90ac8625573943ffe930a328de81180ad193dd

@Plerx2493
Copy link
Member

I have in mind that i had a NRO earlier and i think its fixed in nightlies

@Plerx2493
Copy link
Member

#1594

@Plerx2493
Copy link
Member

I will close this as fixed. Feel free to reopen if you can reproduce it when using latest nightly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants