RED ERROR CODE

got a large red error when trying to link a new discord bot to a second servers gamechat. To further explain, I have a 5x server that this has been running on for about 3-4 months. However, when i tried to add an entirely new server it seems only one chat will work at a time, even though it's obviously two different copies of the plugin, two different servers, & two different bots.

[Discord Chat] [ VIP3 ] [Discord] BudTheKid: hello
[Discord Extension] [Error]: Discord has returned error Code: 50013: Missing Permissions, https://discordapp.com/api/channels/827502771792117780/messages/866142292166574100 (code Forbidden)
Failed to call hook 'GetClanOf' on plugin 'Clans v0.1.55' (ArgumentException: player)
at Oxide.Plugins.Clans.GetClanOf (System.Object player) [0x00006] in <271e86ef5d304b1a8e81aae5fa3d288e>:0
at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00624] in <271e86ef5d304b1a8e81aae5fa3d288e>:0
0b/s in, 0b/s out
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
[Discord Extension] [Error]: Discord has returned error Code: 50013: Missing Permissions, https://discordapp.com/api/channels/827502771792117780/messages (code Forbidden)

I was able to fix this by removing & then adding admin perms to the bots, however i still get this error code, which is the same or similar as before. 

[Discord Chat] [ VIP3 ] [Discord] BudTheKid: hello
Failed to call hook 'GetClanOf' on plugin 'Clans v0.1.55' (ArgumentException: player)
at Oxide.Plugins.Clans.GetClanOf (System.Object player) [0x00006] in <45a5a637c3bb4a1f939459e7a3bc4bc0>:0
at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00624] in <45a5a637c3bb4a1f939459e7a3bc4bc0>:0
0b/s in, 0b/s out
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0


Merged post

I'm not sure what is causing this error, but each day I setup gamechat for each individual server again because they don't seem to be working. Specifically the second one I just recently created is no longer working. Similarly to what happened yesterday it just seems to not register the channel ID anymore.

Merged post

upon further checking i've noticed that the 2x chat (second DiscordChat created) will randomly stop working with DiscordChat, & DiscordPresence until I reload both plugins manually from the console. Upon doing so, DiscordPresence immediately shows up under the Discord Bot for that server, & DiscordChat will reload & delete messages that didn't go to the in game chat, & work. This has been happening since I created a second server. If i can help with any additional information please let me know. Thank you

Yeah, it looks like you solved the permission issue. The GetClanOf one is a little weird. I would expect there to be more of a stack trace. You can add me on discord MJSU#0814. I can send you a test build to see if we can figure out what's going on.

Will do, thank you. I've sent a friend request my discord name is the same as shown here