Advertisement
gaber-elsayed

invite

Oct 9th, 2021
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. const discord = require('discord.js'); //Define the discord.js module
  2. const client = new discord.Client(); //Creating discord.js client (constructor)
  3. require('discord-buttons')(client);
  4. module.exports = {
  5. name: "inv",
  6. description: "a cool invite bot Commnd ",
  7. category: "info",
  8. // users will need premium to execute this
  9. run: async (bot, message, args) => {
  10.  
  11.  
  12. message.buttons('Invite me', {
  13. buttons: [
  14. {
  15. style: 'green',
  16. label: 'Click to function!',
  17. id: 'click_to_function'
  18. },
  19. {
  20. style: 'url',
  21. label: 'Vote for me!',
  22. url:'https://dsc.gg/automodbot'
  23. }
  24. ]
  25. })
  26. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement