question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Commands with require pinging users sometimes don't work

See original GitHub issue
System.NullReferenceException: Object reference not set to an instance of an object.
   at Discord.WebSocket.SocketGuildChannel.GetPermissionOverwrite(IRole role)
   at Discord.Permissions.ResolveChannel(IGuild guild, IGuildUser user, IGuildChannel channel, UInt64 guildPermissions)
   at Discord.WebSocket.SocketTextChannel.<get_Users>b__13_0(SocketGuildUser x)
   at System.Linq.Enumerable.WhereEnumerableIterator`1.ToArray()
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at System.Collections.Immutable.ImmutableArray.CreateRange[T](IEnumerable`1 items)
   at System.Collections.Immutable.ImmutableArray.ToImmutableArray[TSource](IEnumerable`1 items)
   at Discord.WebSocket.SocketTextChannel.get_Users()
   at Discord.WebSocket.SocketGuildChannel.Discord.IChannel.GetUsersAsync(CacheMode mode, RequestOptions options)
   at Discord.Commands.UserTypeReader`1.<Read>d__0.MoveNext()

It happens to random users, never to me. One person said that it was temporarily fixed when they removed all roles form themselves and readded them back, but I wouldn’t count on it. Looking at the code, it could be either that the EveryoneRole is somehow null at line 128, or that the GetRole on line 138 in Permissions.cs returns null.

Also, it has been happening for a very long time.

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
MaybeGooglecommented, Dec 4, 2017

Any updates on this?

5reactions
TempleAnkorcommented, Dec 15, 2017

Would like to get an update if possible. Happening on the one server I actually need it to work on.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No reply for ping command. What does this mean?
Another issue with ping is that people often misinterpret the results. ... In most cases, ping does not work because of firewall settings....
Read more >
How to Troubleshoot a Failed Ping Request
Use Command Prompt. If everything is in working order with the hardware, use the Windows Command Prompt to manually troubleshoot network ...
Read more >
What could cause a ping command to not work?
There are several potential reasons why the ping command may not work or fail to function correctly. Here are some common causes:.
Read more >
What to check if 'pinging' doesn't work?
To check the IP address of the server, go to Start > Run > CMD > ipconfig, and scroll through the IP addresses...
Read more >
Windows 10 Ping Stops Working
If Windows ping stop working You Can Try To "Open Command Promt As as Adminstrator" And Then Type "Ping". Wait a few moments...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found