suicvne / DiscordSharp

A .Net API for Discord written in C#
MIT License
130 stars 33 forks source link

DiscordClient.Connected event handler does not fire #52

Closed willeccles closed 5 years ago

willeccles commented 8 years ago

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.

suicvne commented 8 years ago

did you call client.Connect(); ?

willeccles commented 8 years ago

@Luigifan yessir, all the way at the bottom after defining all my handlers. Not sure why this one will not work. As you can see here, I called client.Connect();, but nothing happens. The handler will never be called.

suicvne commented 8 years ago

I can't say I can reproduce. :/

willeccles commented 8 years ago

@Luigifan I will do some more testing when I get home and let you know how it goes, but I was not able to fix the problem.

Akuba- commented 8 years ago

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.

willeccles commented 8 years ago

@Akuba- I'm running Windows here, so it isn't an OS-dependent problem.

willeccles commented 5 years ago

Closing out of old age and lack of reproducibility.