Remove config.json
Remove config.json (not secure) and replace with .env.
Update deploy-commands.js:
- const { token, clientId } = require('./config.json');
+ const { token, clientId } = process.env;
Update index.js:
- const { token, clientId } = require('./config.json');
+ const token = process.env.TOKEN;
This commit is contained in:
@@ -13,7 +13,7 @@ module.exports = {
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.BanMembers),
|
||||
|
||||
async execute(interaction) {
|
||||
await interaction.deferReply({ embeds: [embed] });
|
||||
await interaction.deferReply();
|
||||
|
||||
const input = interaction.options.getString('user').trim();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user