Skip to content

Commit 868751e

Browse files
committed
Remove timer on channel save error handling
1 parent d5829d7 commit 868751e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Civ13/Civ13.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,9 +1625,8 @@ public function statusChannelUpdate(string $channel, bool $status): ?PromiseInte
16251625
$channel->name = "{$webserver_name}-{$status}";
16261626
return $this->then(
16271627
$channel->guild->channels->save($channel),
1628-
fn() => $this->loop->addTimer(2, fn() => $this->sendMessage($this->discord->getChannel($channel->id), "Webserver is now **{$status}**."))
1628+
fn(Channel $channel) => $this->sendMessage($this->discord->getChannel($channel->id), "Webserver is now **{$status}**.")
16291629
);
1630-
16311630
}
16321631
/**
16331632
* Fetches server information from the specified URL.

0 commit comments

Comments
 (0)