npm install discord-oauth2-clientcredentials
const { generateClientCredentials } = require('discord-oauth2-clientcredentials');
main();
async function main() {
var client_credentials = await generateClientCredentials({
client_id: '',
client_secret: '',
scope: 'identify'
});
}
This package came into existence after I tried to get client credentials for the 'application.commands.update' permission in Discord for two consecutive days.
Want to show some support? Buy me a coffee!