24 lines
1.2 KiB
Java
24 lines
1.2 KiB
Java
package com.discord.models.botuikit;
|
|
|
|
import com.discord.api.botuikit.ButtonComponent;
|
|
import com.discord.api.botuikit.ButtonStyle;
|
|
import com.discord.api.botuikit.ComponentType;
|
|
import com.discord.models.botuikit.ActionInteractionComponentState;
|
|
import d0.z.d.m;
|
|
/* compiled from: ButtonMessageComponent.kt */
|
|
public final class ButtonMessageComponentKt {
|
|
public static final ButtonMessageComponent mergeToMessageComponent(ButtonComponent buttonComponent, int i, ActionInteractionComponentState actionInteractionComponentState) {
|
|
m.checkNotNullParameter(buttonComponent, "$this$mergeToMessageComponent");
|
|
m.checkNotNullParameter(actionInteractionComponentState, "buttonStateInteraction");
|
|
ComponentType type = buttonComponent.getType();
|
|
String a = buttonComponent.a();
|
|
String d = buttonComponent.d();
|
|
String e = buttonComponent.e();
|
|
ButtonStyle f = buttonComponent.f();
|
|
if (buttonComponent.b()) {
|
|
actionInteractionComponentState = ActionInteractionComponentState.Disabled.INSTANCE;
|
|
}
|
|
return new ButtonMessageComponent(type, i, actionInteractionComponentState, a, d, e, f, buttonComponent.c(), buttonComponent.g());
|
|
}
|
|
}
|