Entire server gets kicked after sending a message through discordBug
I've noticed since wipe that sometimes when I type a message to my server from discord, everyone on the server gets kicked with "Unknown wire type" error, and this is what I've been able to find in my logs, but ever since unloading Rustcord, nobody has gotten kicked with that error.

[Oxide] 1:14 PM [Warning] [Discord Ext] [Debug] Unhandled event: PRESENCES_REPLACE
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)

[Oxide] 1:14 PM [Info] [Rustcord] [DISCORD] Admin.lol: keep your tc empty dummies
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)

Zombie @ Harbor[3008285/4911320] was killed by TOUCHEMTWOTIMES[415806/76561198400964032]
[Oxide] 1:14 PM [Error] Failed to call hook 'Discord_MessageCreate' on plugin 'Rustcord v1.1.1' (ArgumentException: Invalid arguments: InputOffset and OutputOffset must be within the Length of their respective streams.)
  at EasyAntiCheat.Server.Hydra.NativeNetProtect.ProtectMessage (System.IntPtr ClientObject, System.IO.MemoryStream Input, System.Int64 InputOffset, System.IO.MemoryStream Output, System.Int64 OutputOffset) [0x00013] in <00247d10f630451eb72640d3695d739c>:0 
  at EasyAntiCheat.Server.Hydra.NetProtect.NetProtect`1[TClient].ProtectMessage (TClient Client, System.IO.MemoryStream Input, System.Int64 InputOffset, System.IO.MemoryStream Output, System.Int64 OutputOffset) [0x00015] in <00247d10f630451eb72640d3695d739c>:0 
  at EACServer.Encrypt (Network.Connection connection, System.IO.MemoryStream src, System.Int32 srcOffset, System.IO.MemoryStream dst, System.Int32 dstOffset) [0x00010] in <163a73e6656f475ba4abd6edb1629935>:0 
  at NetworkCryptographyServer.EncryptionHandler (Network.Connection connection, System.IO.MemoryStream src, System.Int32 srcOffset, System.IO.MemoryStream dst, System.Int32 dstOffset) [0x00021] in <163a73e6656f475ba4abd6edb1629935>:0 
  at NetworkCryptography.EncryptCopy (Network.Connection connection, System.IO.MemoryStream stream, System.Int32 offset) [0x0002d] in <163a73e6656f475ba4abd6edb1629935>:0 
  at Facepunch.Network.Raknet.StreamWrite.Send (Network.SendInfo info) [0x0005f] in <44b36112017e4805968b786e1ce71c50>:0 
  at ConsoleNetwork.BroadcastToAllClients (System.String strCommand, System.Object[] args) [0x00060] in <163a73e6656f475ba4abd6edb1629935>:0 
  at Oxide.Plugins.RustPlugin.PrintToChat (System.String format, System.Object[] args) [0x00031] in <3cd1f1cff4f041e0b42b8bcdd6b47519>:0 
  at Oxide.Plugins.Rustcord.Discord_MessageCreate (Oxide.Ext.Discord.DiscordObjects.Message message) [0x002ac] in <ddd24fd5edd04fcb8fe2a6bdcc1ff16d>:0 
  at Oxide.Plugins.Rustcord.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003a5] in <ddd24fd5edd04fcb8fe2a6bdcc1ff16d>: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 
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)

xxx.xxx.xxx.xxx:55561/76561197992171682/J-Mac disconnecting: ProtocolBufferException: Invalid field id: 0, something went wrong in the stream
ProtoBuf.Entity.Deserialize (System.IO.Stream stream, ProtoBuf.Entity instance, System.Boolean isDelta) (at <e980cffeb6d24c8b9522b28d0af36a17>:0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream) (at <e980cffeb6d24c8b9522b28d0af36a17>:0)
Client.OnEntities (Network.Message packet) (at <4328554d7b744456a1cfff244aa6b418>:0)
Client.OnNetworkMessage (Network.Message packet) (at <4328554d7b744456a1cfff244aa6b418>:0)
Facepunch.Network.Raknet.Client.HandleMessage () (at <44b36112017e4805968b786e1ce71c50>:0)
UnityEngine.Debug:LogException(Exception)
Facepunch.Network.Raknet.Client:HandleMessage()
Facepunch.Network.Raknet.Client:Cycle()
Client:Update()

Version: 30678​

At 1:14PM, you can see that i send a message to the server telling my players to keep their tc empty, and thats when every single player gets disconnected with with that exact same error, but different wire type numbers

Merged post

So I tested a full day without Rustcord and no wire type disconnects, and I ran it with Rustcord on today and I just got the entire server kicked
[Oxide] 5:58 PM [Info] [Rustcord] [DISCORD] Admin.lol: and there's an abundance of zombie loot you can recycler

69.122.215.121:60749/76561198801540689/Mistaken ID disconnecting: NotImplementedException: Unknown wire type: 4
SilentOrbit.ProtocolBuffers.ProtocolParser.SkipKey (System.IO.Stream stream, SilentOrbit.ProtocolBuffers.Key key) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream, ProtoBuf.Entity instance, System.Boolean isDelta) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream) (at :0)
Client.OnEntities (Network.Message packet) (at :0)
Client.OnNetworkMessage (Network.Message packet) (at :0)
Facepunch.Network.Raknet.Client.HandleMessage () (at <44b36112017e4805968b786e1ce71c50>:0)
UnityEngine.Debug:LogException(Exception)
Facepunch.Network.Raknet.Client:HandleMessage()
Facepunch.Network.Raknet.Client:Cycle()
Client:Update()

Version: 30725

148.74.216.142:55253/76561198262425030/chiqui1721 disconnecting: NullReferenceException: Object reference not set to an instance of an object
Client.CreateOrUpdateEntity (ProtoBuf.Entity info, System.Int64 size) (at :0)
Client.OnEntities (Network.Message packet) (at :0)
Client.OnNetworkMessage (Network.Message packet) (at :0)
Facepunch.Network.Raknet.Client.HandleMessage () (at <44b36112017e4805968b786e1ce71c50>:0)
UnityEngine.Debug:LogException(Exception)
Facepunch.Network.Raknet.Client:HandleMessage()
Facepunch.Network.Raknet.Client:Cycle()
Client:Update()

Version: 30725

69.136.211.92:59447/76561198155849601/Sokka disconnecting: NotImplementedException: Unknown wire type: 6
SilentOrbit.ProtocolBuffers.ProtocolParser.SkipKey (System.IO.Stream stream, SilentOrbit.ProtocolBuffers.Key key) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream, ProtoBuf.Entity instance, System.Boolean isDelta) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream) (at :0)
Client.OnEntities (Network.Message packet) (at :0)
Client.OnNetworkMessage (Network.Message packet) (at :0)
Facepunch.Network.Raknet.Client.HandleMessage () (at <44b36112017e4805968b786e1ce71c50>:0)
UnityEngine.Debug:LogException(Exception)
Facepunch.Network.Raknet.Client:HandleMessage()
Facepunch.Network.Raknet.Client:Cycle()
Client:Update()

Version: 30725

74.129.202.254:51791/76561198014245782/GankizKhan disconnecting: NullReferenceException: Object reference not set to an instance of an object
Client.CreateOrUpdateEntity (ProtoBuf.Entity info, System.Int64 size) (at :0)
Client.OnEntities (Network.Message packet) (at :0)
Client.OnNetworkMessage (Network.Message packet) (at :0)
Facepunch.Network.Raknet.Client.HandleMessage () (at <44b36112017e4805968b786e1ce71c50>:0)
UnityEngine.Debug:LogException(Exception)
Facepunch.Network.Raknet.Client:HandleMessage()
Facepunch.Network.Raknet.Client:Cycle()
Client:Update()

Version: 30725

174.85.13.161:64422/76561198151285068/Warorphan disconnecting: NotImplementedException: Unknown wire type: 6
SilentOrbit.ProtocolBuffers.ProtocolParser.SkipKey (System.IO.Stream stream, SilentOrbit.ProtocolBuffers.Key key) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream, ProtoBuf.Entity instance, System.Boolean isDelta) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream) (at :0)
Client.OnEntities (Network.Message packet) (at :0)
Client.OnNetworkMessage (Network.Message packet) (at :0)
Facepunch.Network.Raknet.Client.HandleMessage () (at <44b36112017e4805968b786e1ce71c50>:0)
UnityEngine.Debug:LogException(Exception)
Facepunch.Network.Raknet.Client:HandleMessage()
Facepunch.Network.Raknet.Client:Cycle()
Client:Update()

Version: 30725

148.74.216.142:49905/76561198140582621/[ER24] Extermier1 disconnecting: NotImplementedException: Unknown wire type: 6
SilentOrbit.ProtocolBuffers.ProtocolParser.SkipKey (System.IO.Stream stream, SilentOrbit.ProtocolBuffers.Key key) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream, ProtoBuf.Entity instance, System.Boolean isDelta) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream) (at :0)
Client.OnEntities (Network.Message packet) (at :0)
Client.OnNetworkMessage (Network.Message packet) (at :0)
Facepunch.Network.Raknet.Client.HandleMessage () (at <44b36112017e4805968b786e1ce71c50>:0)
UnityEngine.Debug:LogException(Exception)
Facepunch.Network.Raknet.Client:HandleMessage()
Facepunch.Network.Raknet.Client:Cycle()
Client:Update()

Version: 30725

65.96.136.109:57258/76561198810130999/Darkwing Donald disconnecting: NotImplementedException: Unknown wire type: 6
SilentOrbit.ProtocolBuffers.ProtocolParser.SkipKey (System.IO.Stream stream, SilentOrbit.ProtocolBuffers.Key key) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream, ProtoBuf.Entity instance, System.Boolean isDelta) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream) (at :0)
Client.OnEntities (Network.Message packet) (at :0)
Client.OnNetworkMessage (Network.Message packet) (at :0)
Facepunch.Network.Raknet.Client.HandleMessage () (at <44b36112017e4805968b786e1ce71c50>:0)
UnityEngine.Debug:LogException(Exception)
Facepunch.Network.Raknet.Client:HandleMessage()
Facepunch.Network.Raknet.Client:Cycle()
Client:Update()

Version: 30725

24.198.210.243:55373/76561198171532030/SMASH disconnecting: NotImplementedException: Unknown wire type: 6
SilentOrbit.ProtocolBuffers.ProtocolParser.SkipKey (System.IO.Stream stream, SilentOrbit.ProtocolBuffers.Key key) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream, ProtoBuf.Entity instance, System.Boolean isDelta) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream) (at :0)
Client.OnEntities (Network.Message packet) (at :0)
Client.OnNetworkMessage (Network.Message packet) (at :0)
Facepunch.Network.Raknet.Client.HandleMessage () (at <44b36112017e4805968b786e1ce71c50>:0)
UnityEngine.Debug:LogException(Exception)
Facepunch.Network.Raknet.Client:HandleMessage()
Facepunch.Network.Raknet.Client:Cycle()
Client:Update()

Version: 30725

66.168.83.69:62126/76561198399098179/DeMEnTeD26(twitch.tv/DeMEnTeD26) disconnecting: NotImplementedException: Unknown wire type: 6
SilentOrbit.ProtocolBuffers.ProtocolParser.SkipKey (System.IO.Stream stream, SilentOrbit.ProtocolBuffers.Key key) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream, ProtoBuf.Entity instance, System.Boolean isDelta) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream) (at :0)
Client.OnEntities (Network.Message packet) (at :0)
Client.OnNetworkMessage (Network.Message packet) (at :0)
Facepunch.Network.Raknet.Client.HandleMessage () (at <44b36112017e4805968b786e1ce71c50>:0)
UnityEngine.Debug:LogException(Exception)
Facepunch.Network.Raknet.Client:HandleMessage()
Facepunch.Network.Raknet.Client:Cycle()
Client:Update()

Version: 30725

207.159.95.91:64320/76561198318623359/|TvM| ?Kuntasoraus? disconnecting: NotImplementedException: Unknown wire type: 4
SilentOrbit.ProtocolBuffers.ProtocolParser.SkipKey (System.IO.Stream stream, SilentOrbit.ProtocolBuffers.Key key) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream, ProtoBuf.Entity instance, System.Boolean isDelta) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream) (at :0)
Client.OnEntities (Network.Message packet) (at :0)
Client.OnNetworkMessage (Network.Message packet) (at :0)
Facepunch.Network.Raknet.Client.HandleMessage () (at <44b36112017e4805968b786e1ce71c50>:0)
UnityEngine.Debug:LogException(Exception)
Facepunch.Network.Raknet.Client:HandleMessage()
Facepunch.Network.Raknet.Client:Cycle()
Client:Update()

Version: 30725

73.175.127.58:53830/76561198298065478/Schizo disconnecting: NotImplementedException: Unknown wire type: 4
SilentOrbit.ProtocolBuffers.ProtocolParser.SkipKey (System.IO.Stream stream, SilentOrbit.ProtocolBuffers.Key key) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream, ProtoBuf.Entity instance, System.Boolean isDelta) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream) (at :0)
Client.OnEntities (Network.Message packet) (at :0)
Client.OnNetworkMessage (Network.Message packet) (at :0)
Facepunch.Network.Raknet.Client.HandleMessage () (at <44b36112017e4805968b786e1ce71c50>:0)
UnityEngine.Debug:LogException(Exception)
Facepunch.Network.Raknet.Client:HandleMessage()
Facepunch.Network.Raknet.Client:Cycle()
Client:Update()

Version: 30725

[Oxide] 17:58 [Warning] Calling 'OnPlayerDisconnected' on 'UiPlus v1.1.3' took 499ms [GARBAGE COLLECT]

71.114.157.98:53988/76561198309937828/Lethargic Downie disconnecting: NotImplementedException: Unknown wire type: 4
SilentOrbit.ProtocolBuffers.ProtocolParser.SkipKey (System.IO.Stream stream, SilentOrbit.ProtocolBuffers.Key key) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream, ProtoBuf.Entity instance, System.Boolean isDelta) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream) (at :0)
Client.OnEntities (Network.Message packet) (at :0)
Client.OnNetworkMessage (Network.Message packet) (at :0)
Facepunch.Network.Raknet.Client.HandleMessage () (at <44b36112017e4805968b786e1ce71c50>:0)
UnityEngine.Debug:LogException(Exception)
Facepunch.Network.Raknet.Client:HandleMessage()
Facepunch.Network.Raknet.Client:Cycle()
Client:Update()

Version: 30725

108.238.37.151:64051/76561198289751826/outofmind disconnecting: NotImplementedException: Unknown wire type: 6
SilentOrbit.ProtocolBuffers.ProtocolParser.SkipKey (System.IO.Stream stream, SilentOrbit.ProtocolBuffers.Key key) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream, ProtoBuf.Entity instance, System.Boolean isDelta) (at :0)
ProtoBuf.Entity.Deserialize (System.IO.Stream stream) (at :0)
Client.OnEntities (Network.Message packet) (at :0)
Client.OnNetworkMessage (Network.Message packet) (at :0)
Facepunch.Network.Raknet.Client.HandleMessage () (at <44b36112017e4805968b786e1ce71c50>:0)
UnityEngine.Debug:LogException(Exception)
Facepunch.Network.Raknet.Client:HandleMessage()
Facepunch.Network.Raknet.Client:Cycle()
Client:Update()

Version: 30725​
This is an ongoing issue that's being looked into.
In response to OuTSMoKE ():
This is an ongoing issue that's being looked into.
Thank you so much for the update.  Disabling discord to server texting has prevented anymore crashes for now.
Will this ever be fixed? I would love to use it again otherwise
In response to Sensei ():
Will this ever be fixed? I would love to use it again otherwise
I started sending messages from discord again since the new update hoping it would be fixed and just now it kicked about 1/3 of my server with the same wire type error.  At least it's not the entire server this time.
Same here, even got my dev to add the ability to mute from it, was perfect for a bit until someone answered a question from it and a lot of players got kicked, about a third of my players too
yeah the discord EXT is buggy to hell.
But i use another version (not saying its the best since sliced bread) but ive had no issues with it so far.
Its called Poundbot - not worth googling it as that version is old so here an invite to the author of the bot.
Go talk to him yourself.

Downside of this bot is its 1 server only but it does come with Raid Notes built in,so you get a PM in discord if your under attack once u verify to the bot.
Since the latest umod update, my server has been crashing a handful of times per day, and I just noticed in logs that before each server crash, I see a warning from discord ext

4:04 PM [Warning] [Discord Ext] Discord connection closed uncleanly: code 1000, Reason: 
4:04 PM [Warning] [Discord Ext] Attempting to reconnect to Discord...
4:04 PM [Error] [Oxide.Ext.Discord] Error: tried to create a heartbeat when one is already registered.
16:04 [Info] Loading Oxide Core v2.0.3867...​
that message would not crash your server