Created
April 19, 2022 14:51
-
-
Save mikkipastel/d34993b7dcb6a91dcaca86b7e53f560b to your computer and use it in GitHub Desktop.
connect with
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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