Is hiding specific strings from the public possible?


I’m attempting to create a bot for Discord and to log in with bots, you need a token. What I am wondering is if you are able to hide a certain string so that nobody but yourself can see it. I want to keep this code public, but if someone were to get a hold of the token, then they are able to use it, and log in with that bot, and use whatever code they have to possibly destroy a Discord server, or pretend to be the user controlling it. so if I were able to hide this string, then nobody can see it or log in as my bot. so my question is, Is hiding a specific string from the public possible?


I would try the solution here: