Advertisement
Guest User

Untitled

a guest
Aug 15th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. const commando = require('discord.js-commando');
  2. const fs = require('fs');
  3. const oneLine = require('common-tags').oneLine;
  4.  
  5. module.exports = class TestCommand extends commando.Command {
  6. constructor(client) {
  7. super(client, {
  8. name: 'test',
  9. aliases: [],
  10. group: 'fun',
  11. guildOnly: true,
  12. memberName: 'test',
  13. description: 'Test a user',
  14. details: 'Tests a user.',
  15. examples: ['test'],
  16. throttling: {
  17. duration: 3,
  18. usages: 2
  19. },
  20. args: [
  21. {
  22. key: 'user',
  23. prompt: 'Who would you like to test?',
  24. type: 'user'
  25. }
  26. ]
  27. });
  28. }
  29.  
  30. hasPermission(msg) {
  31. console.log("has permission"); // this never shows, why?
  32. return true;
  33. }
  34.  
  35. async run(msg, args) {
  36. return msg.reply(`${args.user} san has been tested!`);
  37. }
  38. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement