bindTo

@JvmName(name = "bindToSuspend")
fun <T : IPersistentActionableComponent<T>, E : GenericComponentInteractionCreateEvent> T.bindTo(func: suspend (E) -> Unit, block: ReceiverConsumer<PersistentHandlerBuilder> = ReceiverConsumer.noop()): T(source)

Deprecated

Replaced with bindWith

Replace with

bindWith(func)

Binds the given handler to this component.

Handler data

The data passed is transformed with toString, except snowflakes which get their IDs stored.

The data can only be reconstructed if a ComponentParameterResolver exists for the handler's parameter type.

Remember the parameters need to be annotated with @ComponentData.


@JvmName(name = "bindToSuspend")
fun <T : IPersistentActionableComponent<T>, E : GenericComponentInteractionCreateEvent, T1> T.bindTo(func: suspend (E, T1) -> Unit, arg1: T1, block: ReceiverConsumer<PersistentHandlerBuilder> = ReceiverConsumer.noop()): T(source)

Deprecated

Replaced with bindWith

Replace with

bindWith(func, arg1)

Binds the given handler to this component.

Handler data

The data passed is transformed with toString, except snowflakes which get their IDs stored.

The data can only be reconstructed if a ComponentParameterResolver exists for the handler's parameter type.

Remember the parameters need to be annotated with @ComponentData.


@JvmName(name = "bindToSuspend")
fun <T : IPersistentActionableComponent<T>, E : GenericComponentInteractionCreateEvent, T1, T2> T.bindTo(func: suspend (E, T1, T2) -> Unit, arg1: T1, arg2: T2, block: ReceiverConsumer<PersistentHandlerBuilder> = ReceiverConsumer.noop()): T(source)
fun <T : IPersistentActionableComponent<T>, E : GenericComponentInteractionCreateEvent, T1, T2> T.bindTo(func: (E, T1, T2) -> Unit, arg1: T1, arg2: T2, block: ReceiverConsumer<PersistentHandlerBuilder> = ReceiverConsumer.noop()): T(source)

Deprecated

Replaced with bindWith

Replace with

bindWith(func, arg1, arg2)

Binds the given handler to this component.

Handler data

The data passed is transformed with toString, except snowflakes which get their IDs stored.

The data can only be reconstructed if a ComponentParameterResolver exists for the handler's parameter type.

Remember the parameters need to be annotated with @ComponentData.


@JvmName(name = "bindToSuspend")
fun <T : IPersistentActionableComponent<T>, E : GenericComponentInteractionCreateEvent, T1, T2, T3> T.bindTo(func: suspend (E, T1, T2, T3) -> Unit, arg1: T1, arg2: T2, arg3: T3, block: ReceiverConsumer<PersistentHandlerBuilder> = ReceiverConsumer.noop()): T(source)
fun <T : IPersistentActionableComponent<T>, E : GenericComponentInteractionCreateEvent, T1, T2, T3> T.bindTo(func: (E, T1, T2, T3) -> Unit, arg1: T1, arg2: T2, arg3: T3, block: ReceiverConsumer<PersistentHandlerBuilder> = ReceiverConsumer.noop()): T(source)

Deprecated

Replaced with bindWith

Replace with

bindWith(func, arg1, arg2, arg3)

Binds the given handler to this component.

Handler data

The data passed is transformed with toString, except snowflakes which get their IDs stored.

The data can only be reconstructed if a ComponentParameterResolver exists for the handler's parameter type.

Remember the parameters need to be annotated with @ComponentData.


@JvmName(name = "bindToSuspend")
fun <T : IPersistentActionableComponent<T>, E : GenericComponentInteractionCreateEvent, T1, T2, T3, T4> T.bindTo(func: suspend (E, T1, T2, T3, T4) -> Unit, arg1: T1, arg2: T2, arg3: T3, arg4: T4, block: ReceiverConsumer<PersistentHandlerBuilder> = ReceiverConsumer.noop()): T(source)
fun <T : IPersistentActionableComponent<T>, E : GenericComponentInteractionCreateEvent, T1, T2, T3, T4> T.bindTo(func: (E, T1, T2, T3, T4) -> Unit, arg1: T1, arg2: T2, arg3: T3, arg4: T4, block: ReceiverConsumer<PersistentHandlerBuilder> = ReceiverConsumer.noop()): T(source)

Deprecated

Replaced with bindWith

Replace with

bindWith(func, arg1, arg2, arg3, arg4)

Binds the given handler to this component.

Handler data

The data passed is transformed with toString, except snowflakes which get their IDs stored.

The data can only be reconstructed if a ComponentParameterResolver exists for the handler's parameter type.

Remember the parameters need to be annotated with @ComponentData.


@JvmName(name = "bindToSuspend")
fun <T : IPersistentActionableComponent<T>, E : GenericComponentInteractionCreateEvent, T1, T2, T3, T4, T5> T.bindTo(func: suspend (E, T1, T2, T3, T4, T5) -> Unit, arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, block: ReceiverConsumer<PersistentHandlerBuilder> = ReceiverConsumer.noop()): T(source)
fun <T : IPersistentActionableComponent<T>, E : GenericComponentInteractionCreateEvent, T1, T2, T3, T4, T5> T.bindTo(func: (E, T1, T2, T3, T4, T5) -> Unit, arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, block: ReceiverConsumer<PersistentHandlerBuilder> = ReceiverConsumer.noop()): T(source)

Deprecated

Replaced with bindWith

Replace with

bindWith(func, arg1, arg2, arg3, arg4, arg5)

Binds the given handler to this component.

Handler data

The data passed is transformed with toString, except snowflakes which get their IDs stored.

The data can only be reconstructed if a ComponentParameterResolver exists for the handler's parameter type.

Remember the parameters need to be annotated with @ComponentData.


@JvmName(name = "bindToSuspend")
fun <T : IPersistentActionableComponent<T>, E : GenericComponentInteractionCreateEvent, T1, T2, T3, T4, T5, T6> T.bindTo(func: suspend (E, T1, T2, T3, T4, T5, T6) -> Unit, arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, block: ReceiverConsumer<PersistentHandlerBuilder> = ReceiverConsumer.noop()): T(source)
fun <T : IPersistentActionableComponent<T>, E : GenericComponentInteractionCreateEvent, T1, T2, T3, T4, T5, T6> T.bindTo(func: (E, T1, T2, T3, T4, T5, T6) -> Unit, arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, block: ReceiverConsumer<PersistentHandlerBuilder> = ReceiverConsumer.noop()): T(source)

Deprecated

Replaced with bindWith

Replace with

bindWith(func, arg1, arg2, arg3, arg4, arg5, arg6)

Binds the given handler to this component.

Handler data

The data passed is transformed with toString, except snowflakes which get their IDs stored.

The data can only be reconstructed if a ComponentParameterResolver exists for the handler's parameter type.

Remember the parameters need to be annotated with @ComponentData.


@JvmName(name = "bindToSuspend")
fun <T : IPersistentActionableComponent<T>, E : GenericComponentInteractionCreateEvent, T1, T2, T3, T4, T5, T6, T7> T.bindTo(func: suspend (E, T1, T2, T3, T4, T5, T6, T7) -> Unit, arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, block: ReceiverConsumer<PersistentHandlerBuilder> = ReceiverConsumer.noop()): T(source)
fun <T : IPersistentActionableComponent<T>, E : GenericComponentInteractionCreateEvent, T1, T2, T3, T4, T5, T6, T7> T.bindTo(func: (E, T1, T2, T3, T4, T5, T6, T7) -> Unit, arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, block: ReceiverConsumer<PersistentHandlerBuilder> = ReceiverConsumer.noop()): T(source)

Deprecated

Replaced with bindWith

Replace with

bindWith(func, arg1, arg2, arg3, arg4, arg5, arg6, arg7)

Binds the given handler to this component.

Handler data

The data passed is transformed with toString, except snowflakes which get their IDs stored.

The data can only be reconstructed if a ComponentParameterResolver exists for the handler's parameter type.

Remember the parameters need to be annotated with @ComponentData.


@JvmName(name = "bindToSuspend")
fun <T : IPersistentActionableComponent<T>, E : GenericComponentInteractionCreateEvent, T1, T2, T3, T4, T5, T6, T7, T8> T.bindTo(func: suspend (E, T1, T2, T3, T4, T5, T6, T7, T8) -> Unit, arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8, block: ReceiverConsumer<PersistentHandlerBuilder> = ReceiverConsumer.noop()): T(source)
fun <T : IPersistentActionableComponent<T>, E : GenericComponentInteractionCreateEvent, T1, T2, T3, T4, T5, T6, T7, T8> T.bindTo(func: (E, T1, T2, T3, T4, T5, T6, T7, T8) -> Unit, arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8, block: ReceiverConsumer<PersistentHandlerBuilder> = ReceiverConsumer.noop()): T(source)

Deprecated

Replaced with bindWith

Replace with

bindWith(func, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)

Binds the given handler to this component.

Handler data

The data passed is transformed with toString, except snowflakes which get their IDs stored.

The data can only be reconstructed if a ComponentParameterResolver exists for the handler's parameter type.

Remember the parameters need to be annotated with @ComponentData.


@JvmName(name = "bindToSuspend")
fun <T : IPersistentActionableComponent<T>, E : GenericComponentInteractionCreateEvent, T1, T2, T3, T4, T5, T6, T7, T8, T9> T.bindTo(func: suspend (E, T1, T2, T3, T4, T5, T6, T7, T8, T9) -> Unit, arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8, arg9: T9, block: ReceiverConsumer<PersistentHandlerBuilder> = ReceiverConsumer.noop()): T(source)
fun <T : IPersistentActionableComponent<T>, E : GenericComponentInteractionCreateEvent, T1, T2, T3, T4, T5, T6, T7, T8, T9> T.bindTo(func: (E, T1, T2, T3, T4, T5, T6, T7, T8, T9) -> Unit, arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8, arg9: T9, block: ReceiverConsumer<PersistentHandlerBuilder> = ReceiverConsumer.noop()): T(source)

Deprecated

Replaced with bindWith

Replace with

bindWith(func, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)

Binds the given handler to this component.

Handler data

The data passed is transformed with toString, except snowflakes which get their IDs stored.

The data can only be reconstructed if a ComponentParameterResolver exists for the handler's parameter type.

Remember the parameters need to be annotated with @ComponentData.


@JvmName(name = "bindToSuspend")
fun <T : IPersistentActionableComponent<T>, E : GenericComponentInteractionCreateEvent, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> T.bindTo(func: suspend (E, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) -> Unit, arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8, arg9: T9, arg10: T10, block: ReceiverConsumer<PersistentHandlerBuilder> = ReceiverConsumer.noop()): T(source)
fun <T : IPersistentActionableComponent<T>, E : GenericComponentInteractionCreateEvent, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> T.bindTo(func: (E, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) -> Unit, arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, arg7: T7, arg8: T8, arg9: T9, arg10: T10, block: ReceiverConsumer<PersistentHandlerBuilder> = ReceiverConsumer.noop()): T(source)

Deprecated

Replaced with bindWith

Replace with

bindWith(func, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10)

Binds the given handler to this component.

Handler data

The data passed is transformed with toString, except snowflakes which get their IDs stored.

The data can only be reconstructed if a ComponentParameterResolver exists for the handler's parameter type.

Remember the parameters need to be annotated with @ComponentData.