Skip to content
Sign upLog in
← Back to Community
bot token
Profile icon
showery

how to hide discord bot token .env is not supporting anymore

Voters
Profile icon
rnjn1
Comments
hotnewtop
Profile icon
AlmightyDeaks

use the secret variables on the side bar

Profile icon
showery

@AlmightyDeaks
i dont know how to use can u explain

Profile icon
AlmightyDeaks

@showery
first you click on the padlock on the side bar
image
then you put in the name in the name section then the value in hte value section and then if you click the save button you can add it in the same way as a .env file

Profile icon
AlmightyDeaks

@showery
have you fixed your bot

Profile icon
AlmightyDeaks

@AlmightyDeaks
if so can you tag that my answer is the solution to your problem so that people that search this find the solution as well

Profile icon
showery

@AlmightyDeaks
srry for late reply i did not understood yet............

Profile icon
AlmightyDeaks

@showery

Screenshot 2021-05-17 085727
ok so you press the button I labelled 1
then write the name of your variable with something like "bot_token" in the place i labbled 2
then press put your token in the box I labled 3.
press add new secret and a button should appear that says something like import variable press that and rename "my_secret "it to what you wanted to use when you imported the .env varriable before