Skip to content

Instantly share code, notes, and snippets.

@mikkipastel
Created April 19, 2022 14:51
Show Gist options
  • Save mikkipastel/d34993b7dcb6a91dcaca86b7e53f560b to your computer and use it in GitHub Desktop.
Save mikkipastel/d34993b7dcb6a91dcaca86b7e53f560b to your computer and use it in GitHub Desktop.
connect with
const rest = new REST({ version: '9' }).setToken(process.env.DISCORD_BOT_TOKEN);
rest.put(Routes.applicationGuildCommands(process.env.BOT_CLIENT_ID, process.env.SERVER_ID), { body: commands })
.then(() => console.log('Successfully registered application commands.'))
.catch(console.error);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment