18 public function __construct(
19 ApiQuery $queryModule,
23 parent::__construct( $queryModule, $moduleName,
'qmgs' );
26 public function execute():
void {
27 if ( !$this->groupSubscription->isEnabled() ) {
28 $this->dieWithError(
'apierror-translate-messagegroupsubscription-disabled' );
30 $watchedMessageGroups = $this->groupSubscription->getUserSubscriptions( $this->getUser() );
31 $result = $this->getResult();
32 $result->addValue( [
'query' ], $this->getModuleName(), $watchedMessageGroups );
35 public function isInternal():
bool {