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
Copy file name to clipboardExpand all lines: src/Civ13/Slash.php
+14-7Lines changed: 14 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -755,14 +755,21 @@ private function __declareListeners(): void
755
755
{
756
756
if (! isset($interaction->data->options['server']) || ! $server = $interaction->data->options['server']->value) return$this->respondWithMessage($interaction, MessageBuilder::new()->setContent("No server specified"), true);
757
757
if (! $gameserver = $this->civ13->enabled_gameservers[$server]) return$this->respondWithMessage($interaction, MessageBuilder::new()->setContent("No enabled server found for `{$server}`"), true);
758
-
return$interaction->acknowledge()->then(fn(): PromiseInterface => // wait until the bot says "Is thinking..."
fn(MissingSystemPermissionException$e) => $this->sendFollowUpMessage($interaction, MessageBuilder::new()->setContent(/*"Ranking for the `{$gameserver->name}` server are not currently available." . */$e->getMessage()), true)
763
-
), fn(MissingSystemPermissionException$e) => $this->sendFollowUpMessage($interaction, MessageBuilder::new()->setContent(/*"Ranking for the `{$gameserver->name}` server are not currently available." . */$e->getMessage()), true)
764
-
)
758
+
759
+
$promise = $interaction->acknowledge(); // wait until the bot says "Is thinking..."
0 commit comments