deploy.js

PHOTO EMBED

Wed Jun 26 2024 20:26:32 GMT+0000 (Coordinated Universal Time)

Saved by @FRTZ

const { REST, Routes } = require('discord.js');
require('dotenv').config();
 
const commands = [
  // ... (Your slash commands here)
];
 
const rest = new REST({ version: '10' }).setToken(process.env.DISCORD_TOKEN);
 
(async () => {
  try {
    console.log('Started refreshing application (/) commands.');
    await rest.put(Routes.applicationCommands(client.application.id), { body: commands });
    console.log('Successfully reloaded application (/) commands.');
  } catch (error) {
    console.error(error);
  }
})();
content_copyCOPY

https://replit.com/@ahmedheshamelsa/zewwww