Discord_MessageCreate doesn't work correctly
Howdy!
I have a problem with the MessageCreate Hook. For some reason it works some times and after 3-4 hours the Discord Bot goes offline and the hook stops working. (Until I make a new Bot) The Discord extension can still send Messages to my Discord but if a message is sent on Discord, the hook doenst work and will not called.

System is Linux 16.04 LTS and enough ram is always available.

Thanks for help! :)
I think that bug happen because I reload that plugin multiple time and tried to connect multiple times to the bot. I found in the SourceCode a function to close the connection. So on every restart/ reload I simply close the connection first, instead of creating one more.


Discord.CloseClient(Client);​


Merged post

I worked now with that extension enough and its not working!
1. Error: the discord bot goes offline sometimes and nothing work
2. Error: The plugin needs multiple restarts per day, bc of a unknown nullrefence exception error
3. Error: All my players are getting random disconnects with the error "Wire Type Error" that causes if I send a message on a discord channel.