23 lines
857 B
Java
23 lines
857 B
Java
package c.a.a0.b.a;
|
|
|
|
import com.discord.models.user.User;
|
|
import com.discord.widgets.chat.input.WidgetChatInputCommandsModel;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: lambda */
|
|
public final /* synthetic */ class n implements Function1 {
|
|
public final /* synthetic */ int i;
|
|
|
|
public /* synthetic */ n(int i) {
|
|
this.i = i;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public final Object invoke(Object obj) {
|
|
int i = this.i;
|
|
WidgetChatInputCommandsModel widgetChatInputCommandsModel = (WidgetChatInputCommandsModel) obj;
|
|
int i2 = WidgetChatInputCommandsModel.TYPE_USER;
|
|
User user = widgetChatInputCommandsModel.getUser();
|
|
return user == null ? Integer.valueOf(widgetChatInputCommandsModel.getType() % i) : Integer.valueOf((int) ((user.getId() >> 22) % ((long) i)));
|
|
}
|
|
}
|