No chat message in discordSolved
Hi,

The plugin seems to be working well i have all the latest: Discord and Rustcord installed.
The problem is i dont see chat from rust in my discord. Discord chat display to server is correct.à
On discord, the bot call when someone join or leave correctly

I have the following permission
"cmd_allow",
"cmd_players",
"cmd_kick",
"cmd_com",
"p_connect",
"p_disconnect",
"p_death",
"p_chat",
"msg_serverinit"

So the chat should display but it is not. Can you please help me for that ? Everything else work correctly.
Regards,
No clue, maybe Kiro knows.
Hi, do you get any exception errors in your console?
yes : 

(19:04:41) | Failed to call hook 'OnPlayerChat' on plugin 'Rustcord v1.1.0' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.Rustcord.OnPlayerChat (ConsoleSystem+Arg arg) [0x0003c] in <2d8e99b4f7f44aab83e587ca6cdf2112>:0

at Oxide.Plugins.Rustcord.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001cd] in <2d8e99b4f7f44aab83e587ca6cdf2112>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0

(19:04:42) | [CHAT] Dr.Evil[875247/76561198330786818] : hey

(19:04:42) | {

"Message": "hey",

"UserId": 76561198330786818,

"Username": "Dr.Evil",

"Color": "#5af",

"Time": 1535324615

Hi again,
Can you please make sure you have both FilteredWord (string) & FilterWords (array) in your config file?
If it's there, can I have a look at it? Please make sure to censor the API key and sensitive data.
No,
I had to delete that part because when i add it i have an error of
Error: Parse error on line 40:
...			"Staff"		]	}	"FilteredWord": "<ce
-------------------^
Expecting 'EOF', '}', ',', ']', got 'STRING'



in game it look like this :
(23:27:50) | Rustcord v1.1.0: Failed to load config file (is the config file corrupt?) (After parsing a value an unexpected character was encountered: ". Path 'Commandroles', line 41, position 1.)
(23:27:50) | Failed to initialize plugin 'Rustcord v1.1.0' (JsonReaderException: After parsing a value an unexpected character was encountered: ". Path 'Commandroles', line 41, position 1.)
at Newtonsoft.Json.JsonTextReader.ParsePostValue () [0x00179] in <8fe7f8665ff548909c2f26d557e5093a>:0
at Newtonsoft.Json.JsonTextReader.Read () [0x0005a] in <8fe7f8665ff548909c2f26d557e5093a>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (System.Object newObject, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.String id) [0x0028e] in <8fe7f8665ff548909c2f26d557e5093a>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0015c] in <8fe7f8665ff548909c2f26d557e5093a>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0006d] in <8fe7f8665ff548909c2f26d557e5093a>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000d9] in <8fe7f8665ff548909c2f26d557e5093a>:0
at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00053] in <8fe7f8665ff548909c2f26d557e5093a>:0
at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <8fe7f8665ff548909c2f26d557e5093a>:0
at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002d] in <8fe7f8665ff548909c2f26d557e5093a>:0
at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <8fe7f8665ff548909c2f26d557e5093a>:0
at Oxide.Core.Configuration.DynamicConfigFile.ReadObject[T] (System.String filename) [0x00028] in <4452f821def6406d834e4149849fe7ea>:0
at Oxide.Plugins.Rustcord.Loaded () [0x00007] in <2d8e99b4f7f44aab83e587ca6cdf2112>:0
at Oxide.Plugins.Rustcord.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0028f] in <2d8e99b4f7f44aab83e587ca6cdf2112>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0
at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x0006e] in <9affce1cd15c4ec183941adef8db1722>:0
Fwiw, the example json from the front page here I believe is missing a comma right before FilteredWord:

  },
  "FilteredWord":​
In response to rfc1920 ():
Fwiw, the example json from the front page here I believe is missing a comma right before FilteredWo...
Fixed that for the author alongwith the broken formatting on the documentation.

@OuTSMoKE, please make sure to paste formatted JSON, and validate beforehand. Also make sure to add the language for the code block so that it can be syntax highlighted properly. < and > also need to be escaped or in code tags, otherwise they will be removed from the documentation when it is shown.
In response to Wulf ():
Fixed that for the author alongwith the broken formatting on the documentation.

@OuTSMoKE...
My bad, I was quite toasted when I typed up that overview.
Locked automatically