InvalidCastException at AddToDiscordGroupError
So this gave the role to some people, but other times it wouldn't, and it threw this into the console. Any ideas?
Failed to call hook 'OnDiscordCoreJoin' on plugin 'DiscordGroup v1.0.2' (InvalidCastException: Object must implement IConvertible.)
  at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00055] in <a8ed250850854b439cedc18931a314fe>:0 
  at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <a8ed250850854b439cedc18931a314fe>:0 
  at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <b0a93b504f034a0db8b1c3d2503c0987>:0 
  at Oxide.Plugins.DiscordGroup.AddToDiscordGroup (Oxide.Core.Libraries.Covalence.IPlayer player) [0x00019] in <5778cc508d1f4925a3becc3f1956c8b5>:0 
  at Oxide.Plugins.DiscordGroup.AddToGroup (Oxide.Core.Libraries.Covalence.IPlayer player) [0x00031] in <5778cc508d1f4925a3becc3f1956c8b5>:0 
  at Oxide.Plugins.DiscordGroup.OnDiscordCoreJoin (Oxide.Core.Libraries.Covalence.IPlayer player) [0x00000] in <5778cc508d1f4925a3becc3f1956c8b5>:0 
  at Oxide.Plugins.DiscordGroup.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001c3] in <5778cc508d1f4925a3becc3f1956c8b5>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <efb9a8684e344ecfa065c7b416e6d2fd>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b0a93b504f034a0db8b1c3d2503c0987>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b0a93b504f034a0db8b1c3d2503c0987>:0​
Hi Alex2095,

Can you try version 1.0.3 and let me know if the issues persists.

MJSU
Works great now! Another thing I changed in my config was using the name of the Discord role instead of the ID. Just for the record.

Thanks for the quick help!

Merged post

Happened again...

(22:26:05) | Failed to call hook 'OnDiscordCoreJoin' on plugin 'DiscordGroup v1.0.3' (InvalidCastException: Object must implement IConvertible.)
  at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00055] in <a8ed250850854b439cedc18931a314fe>:0 
  at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <a8ed250850854b439cedc18931a314fe>:0 
  at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <b0a93b504f034a0db8b1c3d2503c0987>:0 
  at Oxide.Plugins.DiscordGroup.AddToDiscordGroup (Oxide.Core.Libraries.Covalence.IPlayer player) [0x00019] in <5fd78998c71145d8ba5928f01dc514a2>:0 
  at Oxide.Plugins.DiscordGroup.AddToGroup (Oxide.Core.Libraries.Covalence.IPlayer player) [0x00031] in <5fd78998c71145d8ba5928f01dc514a2>:0 
  at Oxide.Plugins.DiscordGroup.OnDiscordCoreJoin (Oxide.Core.Libraries.Covalence.IPlayer player) [0x00000] in <5fd78998c71145d8ba5928f01dc514a2>:0 
  at Oxide.Plugins.DiscordGroup.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001c3] in <5fd78998c71145d8ba5928f01dc514a2>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <efb9a8684e344ecfa065c7b416e6d2fd>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b0a93b504f034a0db8b1c3d2503c0987>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b0a93b504f034a0db8b1c3d2503c0987>:0​
I have pushed another update. Can you please give that a try.
It worked now. Thanks! I'll let you know if anything pops up again.