daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Mar 26th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var Command = require('../../src/components/command')
  2.  
  3. module.exports = class CustomCommand extends Command {
  4.  
  5.     constructor(registry) {
  6.  
  7.         super({
  8.             name: 'prefix',
  9.             aliases: [],
  10.             group: 'default',
  11.             description: '<Description>',
  12.             isGuildOnly: true,
  13.             memberPermissions: [ 'ADMINISTRATOR' ]
  14.         })
  15.  
  16.         this._registry = registry
  17.  
  18.     }
  19.  
  20.     run(message, args) {
  21.         let data = this._registry.getData(message.guild.id)
  22.         data.commandPrefix = args[0]
  23.         this._registry.registerData(data)
  24.         this._registry.writeData(data)
  25.     }
  26.  
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top