withStrategy

open override fun withStrategy(strategy: EntitySupplyStrategy<*>): TextChannel(source)

returns a new TextChannel with the given strategy.

Parameters

strategy

the strategy to use for the new instance. By default EntitySupplyStrategy.cacheWithRestFallback.