]> git.localhorst.tv Git - alttp.git/blob - app/DiscordAppCommands/AlttpCommand.php
better chat filters
[alttp.git] / app / DiscordAppCommands / AlttpCommand.php
1 <?php
2
3 namespace App\DiscordAppCommands;
4
5 use Discord\Builders\CommandBuilder;
6 use Discord\Discord;
7
8 class AlttpCommand {
9
10         public static function create(Discord $discord) {
11                 $command = CommandBuilder::new();
12                 $command->setName('alttp');
13                 $command->setDescription('A Link to the Past');
14                 $command->addOption(AlttpTechCommand::create($discord));
15                 $discord->application->commands->save(
16                         $discord->application->commands->create($command->toArray())
17                 );
18         }
19
20         public static function listen(Discord $discord) {
21                 AlttpTechCommand::listen('alttp', $discord);
22         }
23
24 }