Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const commando = require('discord.js-commando');
- const fs = require('fs');
- const oneLine = require('common-tags').oneLine;
- module.exports = class TestCommand extends commando.Command {
- constructor(client) {
- super(client, {
- name: 'test',
- aliases: [],
- group: 'fun',
- guildOnly: true,
- memberName: 'test',
- description: 'Test a user',
- details: 'Tests a user.',
- examples: ['test'],
- throttling: {
- duration: 3,
- usages: 2
- },
- args: [
- {
- key: 'user',
- prompt: 'Who would you like to test?',
- type: 'user'
- }
- ]
- });
- }
- hasPermission(msg) {
- console.log("has permission"); // this never shows, why?
- return true;
- }
- async run(msg, args) {
- return msg.reply(`${args.user} san has been tested!`);
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement