You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (! $channel = $this->discord->getChannel($this->civ13->channel_ids['staff_bot'])) return HttpResponse::plaintext('Discord Channel Not Found')->withStatus(HttpResponse::STATUS_INTERNAL_SERVER_ERROR);
310
310
$promise = $this->civ13->sendMessage($channel, 'Updating code from GitHub... (1/3)');
311
311
OSFunctions::execInBackground('git pull');
312
-
$this->civ13->loop->addTimer(5, function () use ($promise, $channel) {
313
-
$promise = $promise->then(function (Message$message) use ($channel) {
314
-
$promise = $message->edit(MessageBuilder::new()->setContent('Forcefully moving the HEAD back to origin/main... (2/3)'));
$promise->then(function (Message$message) use ($channel) {
314
+
$message->edit(MessageBuilder::new()->setContent('Forcefully moving the HEAD back to origin/main... (2/3)'))->then(fn(Message$message) => $this->civ13->restart_message = $message);
0 commit comments