[Solved] How to make my Discord Bot leave a server Im not in


Well I don’t know js library but in .NET this is your problem. I hope u get some idea.

I am pretty sure this is happening because the message is of the type SocketMessage and not SocketGuildMessage. Cast message into SocketGuildMessage and you will be able to leave the guild easily. It doesn’t matter if you are on the server or not.

solved How to make my Discord Bot leave a server Im not in