3 namespace App\DiscordAppCommands;
5 use Discord\Builders\CommandBuilder;
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())
20 public static function listen(Discord $discord) {
21 AlttpTechCommand::listen('alttp', $discord);