method Collector.prototype.whenimport { Collector } from "https://deno.land/x/harmony@v2.9.1/src/client/collectors.ts"; when(filter: CollectorFilter): thisSet filter of the Collector Parametersfilter: CollectorFilterReturnsthis