Discord python bot: Is data sent through slash commands secure/protected?

172 views Asked by At

I am making a discord bot in python (using discord.py) and I was wondering if data sent through the slash commands is secured. I cannot find this anywhere online. For example, if I have a bot that connects to an outer service, can the user send their account name and password securely through a slash command? Or is the encryption of discord not enough for that?

With secure/protected, I mean that it would be safe to transfer the users password through the command input towards the bot, with no possibility of it being intercepted or stored within discord.

In my case, I want to set environment variables through my discord bot, but again, I'm afraid those secrets should not be given through slash commands.

Any idea if this is the case, and are there alternatives to sending sensitive data over discord commands? Thanks in advance.

0

There are 0 answers