Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement