put('/thread', $thread->toArray()) ->throw(); } /** * Handle the DiscordThread "deleted" event. */ public function deleted(DiscordThread $thread): void { DiscordThreadAction::getHttp() ->delete('/thread', ['id' => $thread->getKey()]) ->throw(); } }