suicvne / DiscordSharp

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

Events aren't triggered #34

Closed Naamloos closed 8 years ago

Naamloos commented 8 years ago

This might have to do with changes in events at discordsharp-v0.6.0.68-dev.

suicvne commented 8 years ago

Specifics?

Naamloos commented 8 years ago

I'm sorry, client.PrivateMessageReceived and client.MessageReceived.

suicvne commented 8 years ago

Is it in the example application?

Naamloos commented 8 years ago

It is in my example application

suicvne commented 8 years ago

Okay, I'll take a look today and get back to you. A recent addition is a 3 second artifican delay being ran before triggering connected. looks something like this

Task.Run(()=>
{
    Task.Delay(3500);
    Connected?.Invoke(this, Me);
});
Naamloos commented 8 years ago

Thanks :smile:

suicvne commented 8 years ago

image Events are triggering fine for me. I just added a WriteLine everytime the MessageReceived event fires. No other changes to code. (I know, it's not the actual message text but i just wanted to verify this quickly)

Naamloos commented 8 years ago

That's exactly what i did, weird. let me try again ;)

Naamloos commented 8 years ago

well it works now... false alarm c: thanks for your support

i tried earlier today and the bot would respond or log any messages. I'm sorry for bothering you :/

suicvne commented 8 years ago

No problem! :+1: All is good :)