withStrategy

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

returns a new VoiceChannel with the given strategy.

Parameters

strategy

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