hasParameter('activity')) { $activity = new Activity($this->discord); $activity->type = $this->getParameter('activity'); if ($this->hasParameter('name')) { $activity->name = $this->getParameter('name'); } if ($this->hasParameter('url')) { $activity->url = $this->getParameter('url'); } } if ($this->hasParameter('idle')) { $idle = $this->parameters['idle']; } if ($this->hasParameter('status')) { $status = $this->getParameter('status'); } if ($this->hasParameter('afk')) { $afk = $this->getParameter('afk'); } $this->discord->updatePresence($activity, $idle, $status, $afk); $resolve(); }); } }