DiscordClient.Connected event handler does not fire
See original GitHub issueNot 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:
- Created 7 years ago
- Comments:7 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
I can’t say I can reproduce. 😕