#custom filter of Channels with their according Type

1 messages · Page 1 of 1 (latest)

pseudo schooner

Hey so i would like a function similar to this:

function filterCh(channels:GuildBasedChannel[], [ChannelType.PrivateThread,ChannelType.PublicThread]:ChannelTypes[])

that should return PrivateThreadChannel| PublicThreadChannel

But it doesnt seem to work at all, i also tried with single types and its only working for single objs