discord-php / DiscordPHP

An API to interact with the popular messaging app Discord
MIT License
977 stars 236 forks source link

"Sending command" issue #1132

Closed CatAnonymous closed 1 year ago

CatAnonymous commented 1 year ago

The text "Sending command" was not disabled after the response was sent, is referReply() supported like python?

    $discord->listenCommand('test', function (Interaction $interaction) {
        $content = $interaction->data->options->offsetGet('text')->value;

        $interaction->respondWithMessage(MessageBuilder::new()->setContent('Your text: ' . $content));

    });
key2peace commented 1 year ago

$interaction->acknowledgeWithResponse(); should trigger the change from sending to thinking, then instead of respondWithMessage, use updateFollowUpMessage