Discord error: Connection closed by server. Code: 4002, Reason: Error while decoding payload
For clarity, this is a custom Discord bot where I am coding everything from scratch and not using a library because the environment I am working in is not capable of accessing libraries.