Skip to content
Extraits de code Groupes Projets
Valider 9ffd6eab rédigé par Will Hunt's avatar Will Hunt
Parcourir les fichiers

Add manage webhooks flag to addbot.ts

parent 477d9c01
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -20,7 +20,8 @@ const perms = flags.READ_MESSAGES | ...@@ -20,7 +20,8 @@ const perms = flags.READ_MESSAGES |
flags.SPEAK | flags.SPEAK |
flags.EMBED_LINKS | flags.EMBED_LINKS |
flags.ATTACH_FILES | flags.ATTACH_FILES |
flags.READ_MESSAGE_HISTORY; flags.READ_MESSAGE_HISTORY |
flags.MANAGE_WEBHOOKS;
const url = `https://discordapp.com/api/oauth2/authorize?client_id=${clientId}&scope=bot&permissions=${perms}`; const url = `https://discordapp.com/api/oauth2/authorize?client_id=${clientId}&scope=bot&permissions=${perms}`;
console.log(`Go to ${url} to invite the bot into a guild.`); console.log(`Go to ${url} to invite the bot into a guild.`);
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter