Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | return (new class($client) extends \CharlotteDunois\Livia\Commands\Command { |
||
12 | function __construct(\CharlotteDunois\Livia\Client $client) { |
||
13 | parent::__construct($client, array( |
||
14 | 'name' => 'unload', |
||
15 | 'aliases' => array('unload-command'), |
||
16 | 'group' => 'commands', |
||
17 | 'description' => 'Unloads a command.', |
||
18 | 'details' => 'The argument must be the name/ID (partial or whole) of a command. Only the bot owner may use this command.', |
||
19 | 'examples' => array('enable utils'), |
||
20 | 'guildOnly' => false, |
||
21 | 'ownerOnly' => true, |
||
22 | 'args' => array( |
||
23 | array( |
||
24 | 'key' => 'command', |
||
25 | 'prompt' => 'Which command would you like to unload?', |
||
26 | 'type' => 'command' |
||
27 | ) |
||
28 | ), |
||
29 | 'guarded' => true |
||
30 | )); |
||
31 | } |
||
32 | |||
33 | function run(\CharlotteDunois\Livia\Commands\Context $context, \ArrayObject $args, bool $fromPattern) { |
||
36 | } |
||
37 | }); |
||
39 |