ComponentInteraction

fun ComponentInteraction(data: InteractionData, kord: Kord, supplier: EntitySupplier = kord.defaultSupplier): ComponentInteraction(source)

Creates a ComponentInteraction with the given data, kord and supplier.

Throws

if the interaction is not from a ButtonComponent or a SelectMenuComponent.