setComponents

fun setComponents(componentTree: ComponentTree<*>)(source)


Deprecated

Replaced with setComponent(ComponentTree), if you have a message, you should get the ComponentTree directly from it

Replace with

import dev.freya02.botcommands.jda.ktx.components.toDefaultComponentTree
setComponents(components.toList().toDefaultComponentTree())