19 lines
1,014 B
Java
19 lines
1,014 B
Java
package com.discord.widgets.servers;
|
|
|
|
import com.discord.models.guild.Guild;
|
|
import com.discord.models.user.MeUser;
|
|
import com.discord.utilities.permissions.PermissionUtils;
|
|
import com.discord.widgets.servers.WidgetServerSettingsEmojis;
|
|
import rx.functions.Func3;
|
|
/* compiled from: WidgetServerSettingsEmojis.kt */
|
|
public final class WidgetServerSettingsEmojis$Model$Companion$canManageEmojis$1<T1, T2, T3, R> implements Func3<Long, Guild, MeUser, WidgetServerSettingsEmojis.Model.Permission> {
|
|
public static final WidgetServerSettingsEmojis$Model$Companion$canManageEmojis$1 INSTANCE = new WidgetServerSettingsEmojis$Model$Companion$canManageEmojis$1();
|
|
|
|
public final WidgetServerSettingsEmojis.Model.Permission call(Long l, Guild guild, MeUser meUser) {
|
|
if (guild == null || l == null) {
|
|
return null;
|
|
}
|
|
return new WidgetServerSettingsEmojis.Model.Permission(PermissionUtils.canAndIsElevated(1073741824, l, meUser.getMfaEnabled(), guild.getMfaLevel()), guild);
|
|
}
|
|
}
|