Advertisement
BadSpencer

games.js

Feb 18th, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const { Command, Flag } = require('discord-akairo');
  2. class GamesCommand extends Command {
  3.     constructor() {
  4.         super('games', {
  5.             aliases: ['games'],
  6.             description: {
  7.                 content: 'Manage games',
  8.                 usage: '<action> <...arguments>',
  9.             },
  10.             category: 'games',
  11.         });
  12.     }
  13.     *args() {
  14.         const method = yield {
  15.             type: [
  16.                 ['games-view', 'view'],
  17.             ],
  18.             otherwise: () => {
  19.             },
  20.         };
  21.         return Flag.continue(method);
  22.     }
  23. }
  24. module.exports = GamesCommand;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement