Bot goes offline / NullReferenceException at UpdateStatusError
same here
Hi there,

I'm trying to sort out Discord Status for my server, if I connect it to my test Discord server it works absolutely fine, the moment I add it to my main Discord I get all kinds of errors including: 

[Discord Extension] An error has occured: Response: An exception has occurred during an OnMessage event.

AND
Failed to run a 5.00 timer in 'DiscordStatus v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Ext.Discord.DiscordClient.UpdateStatus (Oxide.Ext.Discord.DiscordObjects.Presence presence) [0x0001c] in <a141f1996e934ec597a4fcdd8f3a7ede>:0
at Oxide.Plugins.DiscordStatus.UpdateStatus () [0x0005f] in <c311db4f5cf24762bc19023cd7c38925>:0
at Oxide.Plugins.DiscordStatus.<OnServerInitialized>m__0 () [0x00000] in <c311db4f5cf24762bc19023cd7c38925>:0
at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <4452f821def6406d834e4149849fe7ea>:0​


Anyone can shed some light on this, it's the same for all Discord related plugins I try to install like Discord Auth and Role Sync..

Thanks in advance for any help,
Giggs
since the last update, the plugin shut down without any reason...
Assuming you mean that the bot disconnects, not that it's "shut down"; but did you update the Discord extension?
yeah the bot disconnect and yes i did the update
The bot keeps going offline, the only way it comes back on is if I restart the server. Any ideas why it's doing this?
jakeyb123
The bot keeps going offline, the only way it comes back on is if I restart the server. Any ideas why it's doing this?
u don't need to restart the server=>oxide.reload
i have to reload it to even let it start after a server start it also go offline after few houres
extreme rusty x5 owner here
I have a same problem. Plugin don't send any error messages. Bot is going offline like its loosing connection with server. Only o.reload DiscordStatus brings him back alive in seconds. Have no clue what's wrong. Im running 2 servers on dedicated server - have no issues further. Since last update something is not working propertly.
Failed to run a 5.00 timer in 'DiscordStatus v2.0.4' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Ext.Discord.DiscordClient.UpdateStatus (Oxide.Ext.Discord.DiscordObjects.Presence presence) [0x0001c] in <a141f1996e934ec597a4fcdd8f3a7ede>:0
  at Oxide.Plugins.DiscordStatus.UpdateStatus () [0x0005f] in <023f6c95456e4e57b672c33ffe1a1d2a>:0
  at Oxide.Plugins.DiscordStatus.<OnServerInitialized>m__0 () [0x00000] in <023f6c95456e4e57b672c33ffe1a1d2a>:0
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <4452f821def6406d834e4149849fe7ea>:0

this is the error i gett

Failed to run a 5.00 timer in 'DiscordStatus v2.0.4' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Ext.Discord.DiscordClient.UpdateStatus (Oxide.Ext.Discord.DiscordObjects.Presence presence) [0x0001c] in <a141f1996e934ec597a4fcdd8f3a7ede>:0
  at Oxide.Plugins.DiscordStatus.UpdateStatus () [0x0005f] in <023f6c95456e4e57b672c33ffe1a1d2a>:0
  at Oxide.Plugins.DiscordStatus.<OnServerInitialized>m__0 () [0x00000] in <023f6c95456e4e57b672c33ffe1a1d2a>:0
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <4452f821def6406d834e4149849fe7ea>:0
Im having the same issue, it reloads most of the time, and then sometimes it goes down and doesnt come back
The bot stays online but stops showing the amount of players occasionally.
Failed to run a 5.00 timer in 'DiscordStatus v2.0.4' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Ext.Discord.DiscordClient.UpdateStatus (Oxide.Ext.Discord.DiscordObjects.Presence presence) [0x0001c] in :0 
  at Oxide.Plugins.DiscordStatus.UpdateStatus () [0x0005f] in :0 
  at Oxide.Plugins.DiscordStatus.m__0 () [0x00000] in :0 
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <4452f821def6406d834e4149849fe7ea>:0 
 
Not sure why its doing this.
This is my config.
{
  "Discord Bot Token": "[HIDDEN]",
  "Update Interval (Seconds)": 5,
  "Randomize Status": false,
  "Status Type (Game/Stream/Listen/Watch)": "Game",
  "Status": [
    "{players.online} / {server.maxplayers} Online!"
  ]
}​
Me too, I get that exact error.
Failed to run a 5.00 timer in 'DiscordStatus v2.0.4' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Ext.Discord.DiscordClient.UpdateStatus (Oxide.Ext.Discord.DiscordObjects.Presence presence) [0x0001c] in :0
  at Oxide.Plugins.DiscordStatus.UpdateStatus () [0x0005f] in <0d4514da4abd48cd87a4688fe2b970b0>:0
  at Oxide.Plugins.DiscordStatus.m__3 () [0x00000] in <0d4514da4abd48cd87a4688fe2b970b0>:0
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <4452f821def6406d834e4149849fe7ea>:0