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.

DiscordClient.Connected event handler does not fire

See original GitHub issue

Not sure if it’s my app, but all of my event handlers work perfectly fine - except for this one:

DiscordClient client = new DiscordClient(token, true);
client.Connected += (sender, e) => {
    // code in here never runs
};

I have tried replacing it with other things, other forms of things, I’ve tried debugging it, but it never fires.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
Akuba-commented, Jul 14, 2016

Not sure if I should open a new issue.

I actually have the same issue, but only when I run it on my linux server using mono. It works fine on my windows pc’s, but not on my linux one.

1reaction
suicvnecommented, May 26, 2016

I can’t say I can reproduce. 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

Discord.js events won't fire
There seems to be an error on your ready.ts file. You should set once: to true . This works for me completely fine:...
Read more >
UserVoiceStateUpdated Event not fired when User initially ...
I'm trying to have my bot recognize when any guild member joins a specific voice channel and then react to it. I tried...
Read more >
How to handle fired event? (Discord.NET) : r/Discord_Bots
Im wanting to listen to when an event is fired (BaseSocketClient.UserJoined), but I'm having trouble trying to figure out how to connect a ......
Read more >
Event handling | discord.js Guide
Client #event:ready open in new window emits once when the Client becomes ready for use, and Client#event:interactionCreate open in new window ...
Read more >
Discord.js v14 - Listening and Handling Events - YouTube
Join my Discord for more help: https:// discord.gg/Gd5fAEJDQD Code: ... on PayPal: https://paypal.me/ansonfoong Connect with me: Twitter: ...
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